Expires an open checkout session and cancels the associated PaymentIntent.
Use your secret API key as the username with an empty password.
Unique key to ensure idempotent requests.
255Override the API version for this request.
The Checkout Session ID.
The expired Checkout Session.
"cs_xxx"
checkout.session The mode of the Checkout Session.
payment, setup, subscription The status of the Checkout Session.
open, complete, expired The payment status of the Checkout Session.
unpaid, paid, no_payment_required The UI mode of the session.
hosted, embedded, custom Whether a customer was always created or only if required.
always, if_required Whether billing address was collected.
auto, required Unix timestamp for when the session expires.
Set of key-value pairs for storing additional information.
false
Unix timestamp.
1234567890
The URL to the hosted checkout page. Only set for hosted mode.
The client secret for embedded/custom mode.
The URL to redirect to after successful payment.
The URL to redirect to when the customer cancels.
The ID of the customer.
"cus_xxx"
The customer's email address.
Customer details collected during checkout.
The ID of the PaymentIntent for this session.
"pi_xxx"
Three-letter ISO currency code.
"usd"
Total before discounts and taxes, in smallest currency unit.
Total after discounts and taxes, in smallest currency unit.
Breakdown of the total amount.
A unique string to reference the session.