Skip to main content
POST
/
checkout
/
v3
/
cancel
Cancel Checkout Session
curl --request POST \
  --url https://api.appcharge.com/checkout/v3/cancel \
  --header 'Authorization: <authorization>'
{
  "isOrderCancelled": true
}
When a checkout session is canceled, it becomes unavailable for further payments.
Note: Canceling a checkout session doesn’t affect the associated order. You can monitor the order status using the Order Events, or view the list of orders in the Publisher Dashboard.

Headers

Authorization
string
required

Authorization header in the format: Bearer ${checkoutSessionToken}.

The checkout session token is retrieved from the Create Checkout Session API and serves as the checkout session ID.

Example:

"Bearer ba5af26a21ec497cb1551821c630d9f9"

Response

Result.

isOrderCancelled
boolean

Whether the checkout session is no longer available, and can't accept further payments. Note: This property only reflects the cancellation of the session, not the order. To track order status, listen for Order Events, or view the list of orders in the Publisher Dashboard.