Send an invoice (post to books, optionally email)
Posts the invoice issue journal idempotently, then optionally emails the customer. API-key external email delivery requires confirmed=true; a short-lived previewToken from /invoices/{id}/preview is optional for direct sends and, when supplied, binds the exact recipient/options/email/PDF that are delivered. Session/mobile callers retain the legacy email body. An email failure never rolls back the posting: the response reports emailDelivered=false with emailError, and resending replays the posting as a no-op. Pass Idempotency-Key so a retried request cannot email the customer twice.
Request
- Base URL: https://ledgerhq.pro/api/v1
- URL: https://ledgerhq.pro/api/v1/invoices/{id}/send
- Auth: one of:
- HTTP bearer and API key in header x-organization-id
- HTTP bearer and API key in header x-organization-id
Path parameters
Invoice UUID
Headers
Stable retry key for this posting request within the LedgerHQ organization.
Request body
Response
Posted invoice with email delivery status
Changes
No recorded changes to this operation across all 5 revisions of this API.