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

StatutDescriptionType
200OKget_billing_state.State
401Unauthorizedecho.HTTPError
500Internal Server Errorecho.HTTPError

Source machine : openapi.json · opération getBillingState