beel_get_representation
Check the AEAT fiscal representation status for a company NIF, showing whether the document is generated, signed, submitted, accepted, or cancelled, including not-started states.
Instructions
Returns the state of the AEAT fiscal representation of a company (NIF): whether the document has been generated, signed and submitted, and whether AEAT accepted it or it was cancelled.
A company that never started the process is not an error: it answers 200 with the
NOT_STARTED state, so polling this endpoint is always safe.
Endpoint: GET /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. |