API referenceCheckout sessions
Retrieve a checkout session
GET methodhttps://api.anyshop.io/v1/checkout_sessions/{id}
Its status: open, paid (with its order), expired or canceled. A session paid by bank debit stays open while the bank confirms it (expires_at moves up to 14 days out), then turns paid, with order.paid, when the money clears.
Path parameters
idstring required
Returns
The checkout_session object.
Errors
Status and error.type400invalid_requestThe request is not valid;error.paramnames the field401authenticationNo API key, or it is not valid403permissionThe key does not have the scope this needs, or the store is suspended (store_suspended)404not_foundNot found in the key's store and mode409conflictConflicts with the object's state (type conflict), or an Idempotency-Key reused for another request (type idempotency, code idempotency_key_reused)429rate_limitedToo many requests; see Retry-After