Cancel a checkout session before payment processing starts or contract is created.
Common use cases:
Behavior & restrictions:
Related endpoints:
Errors include not-open sessions, disallowed payment status, and invalid status transitions.
Documentation Index
Fetch the complete documentation index at: https://docs2.zenskar.com/llms.txt
Use this file to discover all available pages before exploring further.
Schema for cancelling a checkout session
This schema defines the parameters for cancelling a checkout session, including an optional reason for the cancellation and additional metadata.
Standard categorization of the cancellation reason
customer_requested, payment_failed, expired, duplicate, fraudulent, other Detailed explanation for why the checkout session is being cancelled. This will be stored for audit purposes.
500External reference ID related to this cancellation (e.g., support ticket number)
Checkout session successfully cancelled
Schema for checkout session cancellation response
This schema defines the response format for a cancelled checkout session, including updated status information and any relevant session data.
Current status of the payment after cancellation (typically 'not_started')
not_started, pending, paid, failed, no_payment_required Updated status of the checkout session (should be 'cancelled')
open, processing, completed, closed, cancelled Associated contract data if a contract was already created
URL to redirect the customer to after cancellation (if applicable)
Price estimates that were calculated for this checkout session
Timestamp when the checkout session was cancelled
Details about the cancellation including reason and reference information