beel_deactivate_company
Deactivate a company in TEST or PROD. Live schedules the switch-off at the billing cycle's end; TEST applies immediately, preserving invoicing history.
Instructions
Switches the company off in the mode given by environment; the other mode is
untouched.
Sealed, not deleted: the activation's history survives. After the switch-off takes effect the NIF can neither issue nor correct invoices in that mode until it is switched on again, and in Live that sealing is what releases the NIF for another account.
When it takes effect
In Live the switch-off is scheduled, not immediate: the cycle is paid up front, so the response carries an
effective_atand the NIF keeps invoicing until then. Nothing is refunded.effective_atis the end of the current billing cycle, unless the NIF was switched on within that same cycle, in which case it is the end of the next one.TEST, andPRODunder an enterprise contract: immediate, and answer with noeffective_at.
Repeats and permissions
Repeating the call: on a mode whose switch-off is already pending it returns the same date with
already_scheduled: true; switching off a mode that was never on is a silent no-op.Permission: switching off in Live requires being the billing subject of the account.
Endpoint: DELETE /v1/companies/{company_id}/activations
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | Unique identifier (UUID) of the company being switched on — its identifier, not its NIF. It is the only source of context: the account that owns it is derived from it, and the `BeeL-Active-Company` header plays no part. A company you do not reach answers `403`, and so does a company that does not exist, so the existence of a company in another account is never disclosed. | |
| environment | Yes | Mode to switch the NIF off in. |