Send an invoice by email
POST/api/v1/invoices/:id/send_by_email
Sends the invoice PDF to the specified recipient by email via Brevo.
Creates one EmailDelivery record per recipient (to + each cc). Returns the created delivery records. The email is enqueued asynchronously.
The invoice must have a PDF attached and must not be in draft state.
Authorization is based on the OAuth application's write access to the invoice's workspace.
Request
Responses
- 201
- 401
- 403
- 404
- 422
The invoice PDF was queued for delivery; the response lists the created email deliveries
The request did not include a valid OAuth 2.0 access token
The invoice's current lifecycle state does not allow sending by email (for example, a draft invoice has no PDF document yet)
No invoice exists with the given ID, or it belongs to another workspace
The email delivery could not be created; details reports the reason