API Reference · Checkout Sessions

Retrieve a checkout session

Fetches a checkout session by id.

GET/v1/checkout/sessions/:id

Accepts either a secret or publishable key. The hosted widget uses this path with a publishable key to poll for session status before redirecting.

Path parameters

idstringRequired

Session id (`cs_…`).

Errors

404
resource_missing

No session exists with that id in the current livemode.