Skip to content
Status

Create a checkout monitor session

POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/checkout_monitor

POST
/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.

Media typeapplication/json
object
nonce
string
e.g. "THE_NONCE_YOU_PASSED_TO_CHECKOUT"

The nonce passed in the checkout options

Created checkout monitor session

Media typeapplication/json
object
id
string
Example
eyJob3N0IjoiYXBwLnNodXR0bGVnbG9iYWwuY29tIiwic2Vzc2lvbiI6IjhiODU0YzY4MWQxNDBiYTEyNjNhMzU2NTQxMzkwYmFjIiwibm9uY2UiOiJUSEVfTk9OQ0VfWU9VX1BBU1NFRF9UT19DSEVDS09VVCJ9

The checkout monitor session ID

Bad request

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Unauthorised: the API key is missing or not valid

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Was this page helpful?