Skip to main content
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 with checkouts:write permissions.

Path Parameters

string
required
Unique identifier for the checkout session

Request Body

string
Optional reason for canceling the checkout (e.g., “customer_requested”, “timeout”, “inventory_unavailable”)
string
Optional custom message about the cancellation

Response

string
Unique identifier for the Checkout Session
string
Status will be canceled after successful cancellation
object
Information about the buyer
array
Line items from the canceled checkout
array
Final totals before cancellation
array
Array including cancellation message
string
ISO 8601 timestamp of when the checkout was canceled