Skip to content
API referenceAPI v1admin-sdk 1.1.52Search docs⌘K
Checkout sessions · Cancel a session
API reference / Checkout sessions

Cancel a session

DELETE/api/v1/checkout/sessions/:idno app scope

Cancels a session the customer hasn't paid.

Path parameters

idstringrequired

The session_id.

Headers

Authorizationheaderrequired

Bearer with your secret key, or the merchant's OAuth token.

Returns

result Session cancelled, with data.session_id and data.status.

Errors

422The session can't be cancelled any more, or doesn't exist.