beel_create_invoice_batch
Issue or update status for up to 50 invoices in one batch, with per-invoice success/failure reporting. Simplifies bulk invoice management by processing each transaction in its own atomic operation.
Instructions
Applies one operation — ISSUE or STATUS — to up to 50 invoices of this company and
reports, invoice by invoice, which succeeded and which failed.
Not atomic: each invoice is processed in its own transaction, and since issuing is
irreversible, the ones already issued stay issued if a later one fails. Downloading PDFs,
sending email and exporting are not operations of this batch: use pdf-archive,
deliveries and exports.
Endpoint: POST /v1/companies/{company_id}/invoices/batches
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| 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. |