Cancels an active subscription. The customer loses access at the end of the current billing period.
If the subscription was paid via card, the recurring billing is also cancelled.
cURL
curl --request DELETE \ --url https://api.suby.fi/api/subscription/{subscriptionId} \ --header 'X-Suby-Api-Key: <api-key>'
{ "success": true, "data": { "id": "sub_abc123", "status": "CANCELLED" } }
API key authentication
Subscription cancelled
true
Show child attributes