Subscriptions
Cancel a subscription
Cancel a subscription either immediately or at the end of the current billing period. When set to "period_end", the subscription remains active until the current period expires.
post/api/subscriptions/{id}/cancel
Path parameters
idstring required
Subscription ID
Request body
Response
Subscription canceled or scheduled for cancellation
Example response
{
"id": "clx1234567890",
"externalId": "ext_sub_123",
"customerId": "clxcust123",
"planId": "clxplan123",
"status": "ACTIVE",
"currency": "USD",
"billingTiming": "IN_ARREARS",
"customer": {
"id": "clx1234567890",
"name": "Jane Doe",
"email": "jane@example.com"
},
"plan": {
"id": "clxplan123",
"name": "Premium Monthly",
"billingInterval": "MONTHLY"
}
}