Bulk Unarchive Sales Invoices
POST/api/sales-invoices/bulk/unarchive
Unarchive 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.
orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Requires orders:write and sales_invoices.update.
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
- 200
- 202
- 401
- 403
- 422
- 429
OK
Response Headers
Accepted
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.