Cancel Checkout
Cancel an existing checkout session
POST
This endpoint cancels an active checkout session. Once canceled, the checkout cannot be completed or updated. This is useful when a customer abandons their cart or decides not to proceed with the purchase.
Authentication
This endpoint requires a valid API key withcheckouts:write permissions.
Path Parameters
Unique identifier for the checkout session
Request Body
Optional reason for canceling the checkout (e.g., “customer_requested”, “timeout”, “inventory_unavailable”)
Optional custom message about the cancellation
Response
Unique identifier for the Checkout Session
Status will be
canceled after successful cancellationInformation about the buyer
Line items from the canceled checkout
Final totals before cancellation
Array including cancellation message
ISO 8601 timestamp of when the checkout was canceled