Bulk Update
Bulk Update
Apply the same field changes to multiple invoices by ID
POST
Bulk Update
Bulk Update
Apply the same set of field changes to many invoices at once. Only the fields exposed by the bulk-edit UI (unit_id, currency_unit_id, supplier_id, cups) can be updated; every other field on each invoice is left untouched.
Each selected invoice’s whole distributed group receives the change, so a distributed invoice never ends up with different units or supplier across facilities. Selecting more than one row of the same group updates that group exactly once.
When a change affects the emission calculation (supplier_id or unit_id), recalculation is triggered asynchronously: the affected invoices move to loading and settle once the recalculation finishes. Changing only currency_unit_id or cups updates the value as plain metadata and triggers no recalculation.
Per-invoice failures are reported in failed_ids instead of aborting the batch. Invoice IDs that do not belong to your organization are also returned in failed_ids.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
string[]
required
Array of invoice UUIDs to update (1–10,000)
object
required
Fields to apply to every selected invoice. At least one field must be provided.
Response
integer
Number of invoices successfully updated
string[]
UUIDs of successfully updated invoices
integer
Number of invoices that failed to update or were not found
string[]
UUIDs of invoices that failed to update or were not found
string
Human-readable summary message
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: No fields provided inupdate, an explicit null unit_id, or a supplier_id that does not exist
Related Endpoints
Update Invoice
Update a single invoice
Bulk Delete
Delete multiple invoices by ID