Skip to navigation

Get checkout session

Get one customer’s checkout session by ID, for example the {CHECKOUT_SESSION_ID} they returned with

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

idstringRequired

Response

200
idstring
The checkout session's ID
checkoutIdstring or null
The checkout the customer opened, or null for a session created without one
statusenum

open until the customer pays, processing while the payment goes through (including 3D Secure), completed once paid, expired if it ran out of time first, canceled if it was canceled.

Allowed values:
customerIdstring
The customer paying
externalCustomerIdstring or null
Your ID for that customer, if it has one
clientReferenceIdstring or null

The client_reference_id you added to the checkout URL for this customer, if any

selectedProductobject or null
The product and plan this customer chose, or null before they choose
orderIdstring or null
The order this payment created, once completed
invoiceIdstring or null
The paid invoice, once completed
createdAtdatetime
completedAtdatetime or null
expiresAtdatetime

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error