beel_get_representation
Check the AEAT fiscal representation status of a company to determine if its document has been generated, submitted, accepted, or cancelled.
Instructions
Returns the state of the AEAT fiscal representation of a company: whether the document has been generated, signed and submitted, and whether AEAT accepted it or it was cancelled.
status:NOT_STARTED,PDF_GENERATED,SUBMITTED,ACTIVE,ERRORorCANCELLED.Never started: not an error. The endpoint answers
200withNOT_STARTED, so polling it is always safe.
Endpoint: GET /v1/companies/{company_id}/representation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | Unique identifier (UUID) of the company the operation acts 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. |