API / Billing
GET
/billing/state
Get the calling tenant's billing state
Returns the subscription's health: which tier is paid for, whether a payment failed and until when it can still be fixed, and any scheduled change. A tenant who never subscribed is reported healthy with hasSubscription=false — the free tier is not a degraded state.
Authentification : clé API Bearer requise.
Exemple curl
curl -X GET https://api.sporee.fr/billing/state \
-H "Authorization: Bearer $SPORE_API_KEY"Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | get_billing_state.State |
| 401 | Unauthorized | echo.HTTPError |
| 500 | Internal Server Error | echo.HTTPError |
Source machine : openapi.json · opération getBillingState