Create a checkout monitor session
POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/checkout_monitor
Create a new checkout monitor session. The session ID returned can be used with the Shuttle.checkout_monitor() JavaScript function to receive real-time updates about the checkout process.
The nonce parameter must match the one passed in your checkout options. This ensures that only authorized sessions can monitor the checkout progress.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
"THE_NONCE_YOU_PASSED_TO_CHECKOUT"The nonce passed in the checkout options
Responses
Section titled “Responses”Created checkout monitor session
object
Example
eyJob3N0IjoiYXBwLnNodXR0bGVnbG9iYWwuY29tIiwic2Vzc2lvbiI6IjhiODU0YzY4MWQxNDBiYTEyNjNhMzU2NTQxMzkwYmFjIiwibm9uY2UiOiJUSEVfTk9OQ0VfWU9VX1BBU1NFRF9UT19DSEVDS09VVCJ9The checkout monitor session ID
Bad request
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Unauthorised: the API key is missing or not valid
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorised"}Was this page helpful?
What went wrong?
Thanks for telling us.