How to cancel an active Stripe subscription for the logged user
POST https://mburger.cloud/api/subscriptions/cancel
curl https://mburger.cloud/api/subscriptions/cancel -X POST -H "Accept: application/json" -H "X-MBurger-Token: <token>" -H "X-MBurger-Version: 3" -H "Authorization: Bearer <JWT>" -d '<data>'
Name
Type
Required
Description
subscription
string
Yes
Subscription identifier from the Stripe dashboard.
When successful, a HTTP 200 and JSON like this is returned:
{ "status_code": 0 }
Last updated 4 years ago