POST /v1/subscriptions/{subscriptionId}/cancel
POST
/v1/subscriptions/{subscriptionId}/cancelAuthorization
x-api-keyAPI key · headerrequiredor
AuthorizationBearer token · headerrequiredPath parameters
subscriptionIdstringrequiredmin length 1
Query parameters
environmentstringAllowed:
sandboxproductionmerchantAccountIdstringmin length 1
Header parameters
Idempotency-KeystringRequired for production-safe retries on mutating routes. Reusing a key with a different request body returns 409.
min length 1
Request body
requiredapplication/jsonenvironmentstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullmerchantAccountIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsubscriptionIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcanceledBystringrequiredAllowed:
systemoperatorcustomercanceledByRefstringrequiredmin length 1
cancelAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
200
Success
dataobjectrequiredShow propertiesHide properties
subscriptionobjectrequiredShow propertiesHide properties
subscriptionIdstringrequiredmin length 1
customerIdstringrequiredmin length 1
billingAccountIdstringrequiredmin length 1
statusstringrequiredAllowed:
draftpendingincompleteincomplete_expiredtrialingactivepast_duepausedcanceledcollectionModestringrequiredAllowed:
manualautomaticmetadataobjectrequiredcreatedAtstringrequiredmin length 1
currentPeriodStartAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcurrentPeriodEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrialEndAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcancelAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcanceledAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullendedAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltestClockIdstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullitemsobject[]requiredShow propertiesHide properties
Array of
objectsubscriptionItemIdstringrequiredmin length 1
subscriptionIdstringrequiredmin length 1
priceIdstringrequiredmin length 1
quantitynumberrequiredstartAtstringrequiredmin length 1
metadataobjectrequiredendAtstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequestIdstringrequiredmin length 1