Skip to main content
POST

Bulk approve invoices

Scope:sales:invoices.write
https://api.holded.com/api/v2/invoices/bulk/approve

Approve multiple invoices in a single request. Provide either `filter` — the server resolves and approves every matching invoice still pending approval (use for "approve all pending", optionally narrowed by date range or contact; no need to list ids) — or an explicit list of `ids` (1–100). Each invoice is approved independently: a failure on one does not block the others. Returns 204 when all succeed, 207 (with the failed ids) when some could not be approved, 422 when none could.

Request body

object
filterobject | null

Optional scoping filter for the invoices to approve. This endpoint ALREADY targets only invoices pending approval, so for "approve all pending" pass an EMPTY object `{}` — do NOT add a payment status. Narrow only by date range (start_date/end_date) and/or contact (contact_id). The server resolves and approves every matching unapproved invoice (up to 200 per call). Provide either `filter` or `ids`, not both.

start_datestring<date-time>
end_datestring<date-time>
contact_idstring
ids[]string[] | null

Explicit invoice ids to approve (alternative to `filter`, for a specific selection). Max 100.

Request

python
import requests

url = "https://api.holded.com/api/v2/invoices/bulk/approve"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "filter": {
        "start_date": "2026-05-01",
        "end_date": "2026-05-31",
        "contact_id": "string"
    },
    "ids": [
        "string"
    ]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

204All matching invoices approved successfully (or none were pending approval)
207Some invoices could not be approved, or more than the per-call limit matched the filterapplication/json
object
messagestringrequired

Human-readable summary

errors[]string[]optional

Failed document ids (with any reason produced)

success_countintegeroptional

Invoices approved (or already approved)

total_countintegeroptional

Invoices attempted in this request

truncatedbooleanoptional

Present and true when more invoices matched than the per-call limit; narrow the filter to approve the rest

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422None of the invoices could be approvedapplication/json
429Rate limit exceededapplication/json