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
| Nom | Type | Description |
|---|---|---|
| plan | string | — |
| tenantId | string | — |
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
| Statut | Description | Type |
|---|---|---|
| 200 | OK | domain.TenantPlan |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
| 503 | Service Unavailable | echo.HTTPError |
Source machine : openapi.json · opération setTenantPlan