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

NomTypeDescription
emailstring
tenantIdstring

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

StatutDescriptionType
200OKclaim_invitation.RegisterCustomerResponse
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError
502Bad Gatewayecho.HTTPError
503Service Unavailableecho.HTTPError

Source machine : openapi.json · opération registerBillingCustomer