Cancel a checkout session
Path parameters
Checkout session ID
Response
Checkout session cancelled
Example response
{
"session": {
"customer_id": "cus_7n42DGM5Tflk9n8mt7Fhc7",
"id": "che_7n42DGM5Tflk9n8mt7Fhc7",
"payment_methods_config": {
"account_id": "ba_7n42DGM5Tflk9n8mt7Fhc7"
},
"plan_version_id": "plv_7n42DGM5Tflk9n8mt7Fhc7",
"subscription_id": "sub_7n42DGM5Tflk9n8mt7Fhc7"
}
}Changes
Changed in 8 of the 54 revisions of this API.566
- ▲
added
OnlinePaymentMethodConfigBankTransferPaymentMethodConfigExternalPaymentMethodConfigto thesession/payment_methods_config/oneOf[PaymentMethodsConfig]/response propertyoneOflist for the response status200response-property-one-of-added
- ○
added discriminator to
session/payment_methods_config/oneOf[PaymentMethodsConfig]/response property for the response status200response-property-discriminator-added
- ○
removed
subschema #1subschema #2subschema #3from thesession/payment_methods_config/oneOf[PaymentMethodsConfig]/response propertyoneOflist for the response status200response-property-one-of-removed
- ▲
- ▲
for the
pathrequest parameterid, the type/format was changed fromstring/tostring/MeteroidIdrequest-parameter-type-changed
- ▲
added
BankAccountIdsubschema #1to thesession/payment_methods_config/oneOf[PaymentMethodsConfig]/oneOf[subschema #2]/account_idresponse propertyoneOflist for the response status200response-property-one-of-added
- ▲
the
session/payment_methods_config/oneOf[PaymentMethodsConfig]/oneOf[subschema #2]/account_idresponse's property type/format changed fromstringnull/to/for status200response-property-type-changed
- ●
added the new
TOO_MANY_REQUESTSenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
TOO_MANY_REQUESTSenum value to thecoderesponse property for the response status401response-property-enum-value-added
- ●
added the new
TOO_MANY_REQUESTSenum value to thecoderesponse property for the response status404response-property-enum-value-added
- ●
added the new
TOO_MANY_REQUESTSenum value to thecoderesponse property for the response status500response-property-enum-value-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ▲
- ●
added the new
ADDON_PURCHASEenum value to thesession/checkout_typeresponse property for the response status200response-property-enum-value-added
- ●
- ●
added the new
PLAN_CHANGEenum value to thesession/checkout_typeresponse property for the response status200response-property-enum-value-added
- ●
- ○
added the optional property
session/payment_methods_configto the response with the200statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
bearer_authwas added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 274 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲