API / Internal

POST

/internal/tenant/plan

Assign a plan to a tenant (service-to-service)

Internal endpoint used by the Stripe webhook bridge. Authenticated via the X-Internal-Token header — NOT the public BearerAuth scheme.

Authentification : clé API Bearer requise.

Corps JSON

Tenant + plan to assign

NomTypeDescription
planstring
tenantIdstring

Exemple curl

curl -X POST https://api.sporee.fr/internal/tenant/plan \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Réponses

StatutDescriptionType
200OKdomain.TenantPlan
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError
503Service Unavailableecho.HTTPError

Source machine : openapi.json · opération setTenantPlan