Cancel the Stripe subscription (at period end by default).
POST
/v1/admin/billing/cancel
const url = 'https://example.com/v1/admin/billing/cancel';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"immediately":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/admin/billing/cancel \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "immediately": true }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
immediately
Cancel right away instead of at the period end.
boolean
Example generated
{ "immediately": true}