Skip to main content

Bulk Issue Sales Invoices

POST 

/api/sales-invoices/bulk/issue

Issue several invoices at once: send ids[] (up to 5,000), or all: true with filters (the list query, e.g. {"filter": {"status": "draft"}}) to act on every matching invoice. Each invoice is processed on its own; failures are listed in data.errors. Only drafts are issued.

Required scope: orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Requires orders:write and sales_invoices.issue.

With all: true, more than 500 matching invoices are processed in the background: the response is 202 Accepted with data.tracked_job_log_id (follow it through the tracked job endpoints) and data.count; results arrive when the job completes.

Request​

Responses​

OK

Response Headers
    Content-Type