Replace an invoice
/invoices/{invoice}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.
Autorizacija
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.
Vieta: header
Kelio parametrai
The invoice ID.
Užklausos turinys
application/json
TypeScript tipai
Naudokite request body tipą TypeScript kode.
Body of POST /invoices and PUT /invoices/{invoice}. On update every field is replaced with what you send;
always resend invoice_number or the invoice is renumbered.
Atsakymo turinys
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/invoices/string" \ -H "Content-Type: application/json" \ -d '{ "type": "vat_invoice", "invoice_date": "2026-09-12", "series": "SF", "currency": "EUR", "buyer": { "type": "company" }, "seller": {}, "products": [ { "name": "Consulting", "units": "h", "quantity": 2 } ] }'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "business_id": "f59fcbb7-848d-4242-af07-a8bb7e3ab37c", "invoice_type": "regular_invoice", "series": "string", "invoice_number": "string", "invoice_date": "2019-08-24", "pay_until_date": "2019-08-24", "language": "en", "subtotal": 0, "vat": 0, "total_incl_vat": 0, "currency": "string", "payment_status": "not_paid", "notes": "string", "share_link": "http://example.com", "seller": { "business_type": "small_partnership", "first_name": "string", "last_name": "string", "company_name": "string", "company_code": "string", "individual_activity_id": "string", "vat_code": "string", "address": "string", "email": "string", "phone": "string", "custom_fields": [ { "label": "string", "value": "string" } ] }, "buyer": { "type": "company", "first_name": "string", "last_name": "string", "company_name": "string", "company_code": "string", "individual_activity_id": "string", "vat_code": "string", "address": "string", "email": "string", "phone": "string" }, "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "price": 0, "vat_percentage": 0, "quantity": 0, "units": "string" } ], "payment_options": [ { "type": "bank", "bank_account": "string", "bank_name": "string", "routing_or_sort_number": "string", "swift_bic_code": "string", "fields": [ { "label": "string", "value": "string" } ] } ], "created_at": 0, "updated_at": 0 }}Delete an invoice DELETE
Deletes the invoice together with its PDF, items, payment options and e-mail logs, and recalculates the series counter. Fires the invoice.deleted webhook.
Download the invoice PDF GET
Streams 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.