Subscriptions
Cancel a subscription
Changed onCancel 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
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
}
}Changes
- info
added the media type
application/jsonfor the response with the status
- info