beel_create_invoice_batch
Process up to 50 invoices in one batch: issue drafts or move them to a new status, with individual success/failure reported for each invoice.
Instructions
Applies one operation to a set of invoices of this company and reports, invoice by invoice, which succeeded and which failed.
Operations:
ISSUEissues the draft invoices;STATUSmoves them to thenew_statusgiven in the body.Limit: up to 50 invoices per request (
invoice_ids).Not atomic: each invoice is processed on its own, and since issuing is irreversible, the ones already issued stay issued if a later one fails.
Related: downloading PDFs, sending email and exporting are not operations of this batch — use
…/invoices/pdf-archive,…/invoices/deliveriesand…/invoices/exports.
Endpoint: POST /v1/companies/{company_id}/invoices/batches
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| 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. | |
| 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. |