beel_get_invoice_schedule
Check an invoice's scheduled generation date and mode to verify its current scheduling before making changes. Returns 404 if not scheduled.
Instructions
Returns the date and generation mode currently scheduled for this invoice. An invoice with
no scheduling answers 404, since the sub-resource does not exist yet. To move only the
date, read the current generation_mode here and send it back on the PUT.
Endpoint: GET /v1/companies/{company_id}/invoices/{invoice_id}/schedule
⚠️ Fiscal guardrails — read before calling:
When an invoice can still be changed, and what to do once it cannot. (resource: beel://guardrails/invoice-state-machine)
Choosing wrong here misreports to AEAT. The 30-second decision. (resource: beel://guardrails/cancel-vs-rectify)
For the exhaustive rules and worked examples, call beel_docs_search.
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. | |
| invoice_id | Yes | Invoice ID |