API / Internal
POST
/internal/tenant/billing-customer
Declare a tenant to the billing service (service-to-service)
Makes the billing service aware of an account without subscribing it to anything, for importing users that predate it. Idempotent on the address: a re-run neither duplicates nor overwrites. Distinct from assigning a plan: that grants an entitlement, this only says the tenant exists. Putting every imported account on a plan would fabricate billing history nobody asked for.
Authentification : clé API Bearer requise.
Corps JSON
Tenant + address
| Nom | Type | Description |
|---|---|---|
| string | — | |
| tenantId | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/internal/tenant/billing-customer \
-H "Authorization: Bearer $SPORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | claim_invitation.RegisterCustomerResponse |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
| 502 | Bad Gateway | echo.HTTPError |
| 503 | Service Unavailable | echo.HTTPError |
Source machine : openapi.json · opération registerBillingCustomer