API Reference · Checkout Sessions
Retrieve a checkout session
Fetches a checkout session by id.
GET
/v1/checkout/sessions/:idAccepts either a secret or publishable key. The hosted widget uses this path with a publishable key to poll for session status before redirecting.
Returnscheckout_session object
Path parameters
idstringRequiredSession id (`cs_…`).
Errors
404
resource_missingNo session exists with that id in the current livemode.