API / Billing
DELETE
/billing/subscription
Cancel the subscription
Stops future charges. Access is NOT revoked: the period already paid for keeps entitling until it lapses, and the response carries that date. Idempotent.
Authentification : clé API Bearer requise.
Exemple curl
curl -X DELETE https://api.sporee.fr/billing/subscription \
-H "Authorization: Bearer $SPORE_API_KEY"Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | cancel_subscription.Result |
| 401 | Unauthorized | echo.HTTPError |
| 404 | no subscription | echo.HTTPError |
| 503 | billing is not configured | echo.HTTPError |
Source machine : openapi.json · opération cancelBillingSubscription