Skip to main content

billing

The billing service: the tenants of its workspaces and their entitlements (docs/architecture.md §10, §12)

📄️putBillingTenant

Creates the tenant of a workspace of the billing service, with the id the billing service gave it, as createTenant creates one: its controller shard, data key, team `excubio` and invited first admins, and with the entitlement given (putBillingEntitlement); without one as createTenant makes one: under evaluation delivery, without limits. A repeat for the same id and account answers the tenant as it is, `200`, and changes nothing; an id of another account or of a tenant a vendor operator created is refused. Fields the cloud doesn't use are ignored. Audited in the tenant's audit and the installation's (`platform_audit`) with the billing service as actor.

📄️putBillingEntitlement

The billing service's entitlement of its tenant, whole (BillingEntitlement, docs/architecture.md §12 Plans). Applied only when `version` is above the version applied last; an older or equal one answers `applied: false` and changes nothing, so pushes that arrive out of order or twice are harmless. Its status sets the tenant's state, its account the tenant's account; the limits reach the tenant's hubs on installations through pollInstallation, calls and the synthetic cadence reach Watch with the next push, and a change of the delivery mode applies the rules of docs/on-call.md §4 (from `evaluation`, verified numbers become unverified). `422` is final; the billing service doesn't send it again.