Download the invoice PDF
/invoices/{invoice}/downloadStreams the invoice PDF. The PDF is rendered asynchronously after create and update; if it does not exist
yet the request waits for it for up to 20 seconds and then fails with 500. Content-Length is not sent.
Authorization
bearerAuth Business token created in the app under Settings, Integrations, API. The token is scoped to exactly one business, has no expiry and is shown only once. Send it as Authorization: Bearer <token> together with Accept: application/json.
In: header
Path Parameters
The invoice ID.
Response Body
application/pdf
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/invoices/string/download""string"Replace an invoice PUT
Replaces every field of the invoice with the request body, under the same rules as create. Always resend the current invoice_number: when it is omitted the invoice is renumbered from the series counter. Items, payment options and custom fields are rewritten, totals recalculated and the PDF regenerated. Fires the invoice.updated webhook.
invoice.created Webhook
Sent when a finalized invoice is created, whether through the API, the app or a recurring invoice. The PDF is rendered asynchronously, so it may not exist yet when this event arrives; GET /invoices/{invoice}/download waits for it. Each event is attempted up to 3 times: the first delivery, then retries after 10 s and 100 s; only a 2xx response counts as success. The request times out after 10 seconds.