Subscriptions
Cancel a subscription
Cancels the subscription; no further invoices are created. Invoices already sent stay payable. Rate limit: 60 per minute per API key, shared with the other endpoints that have this limit.
DELETE
bearerAuthheader
AuthorizationBearer <token>A live API key, sk_live_ followed by 32 base58 characters.
id*stringSubscription id (starts with sub_).
The subscription, now with status canceled.
application/json- response
id*stringobject*stringstatus*stringValue in
"active""canceled"customer_email*stringamount*stringcurrency*CurrencyValue in
"USD""EUR""INR"interval*stringValue in
"week""month"description*string|nullnext_invoice_at*stringFormat
date-timecreated_at*stringFormat
date-timecurl -X DELETE 'https://example.com/api/v1/subscriptions/string'Example Response
{ "id": "sub_2mQ8vT4kW9xL3pN7rB5s", "object": "subscription", "status": "active", "customer_email": "string", "amount": "string", "currency": "USD", "interval": "week", "description": "string", "next_invoice_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z"}