beel_send_invoice
Send invoices via email with automatic PDF attachment. If no recipient is provided, it uses the customer's configured email addresses.
Instructions
Sends the invoice by email, attaching its PDF by default. When no recipient is given, the addresses configured on the customer are used.
Endpoint: POST /v1/companies/{company_id}/invoices/{invoice_id}/send
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| 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. | |
| invoice_id | Yes | Invoice ID | |
| 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. |