beel_cancel_representation
Cancel a company's active AEAT representation to halt invoice submission to AEAT until a new representation is generated and signed. Returns 400 if no active representation exists.
Instructions
Cancels the active AEAT representation of a company (NIF). Until a new document is generated and signed, the company can no longer submit invoices to AEAT in production; its activation and its ability to issue non-VeriFactu invoices are untouched.
A company with no active representation is rejected with 400: cancelling is a state
transition, not a delete-if-present.
Endpoint: DELETE /v1/companies/{company_id}/representation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | NIF (company) the operation acts on. 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 NIF you do not reach answers `403`, and so does a NIF that does not exist, so the existence of a NIF in another account is never disclosed. |