beel_generate_representation
Generate an unsigned AEAT representation PDF for a company (NIF) to enable digital signing and submission. Validates fiscal identity completeness and rejects existing active representations.
Instructions
Generates the unsigned AEAT representation PDF of a company (NIF), which is then
downloaded from GET /v1/companies/{company_id}/representation/document, signed digitally
and returned through POST /v1/companies/{company_id}/representation/submit.
The fiscal identity of the company must be complete before the document can be produced;
an incomplete one is rejected with 400 naming what is missing. A company that already
holds an active representation is rejected too: cancel it first.
Endpoint: POST /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. | |
| idempotency_key | No | Optional idempotency key for this operation. Omit it and one is derived from the request itself, which makes a blind retry safe but also collapses a SECOND, deliberately identical operation into the first for 24 hours. Set it — to an order id, or anything unique per intended operation — whenever you mean to create something that may look identical to what you just created. |