Skip to main content
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_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Body 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 key

403 Forbidden

Cause: The authenticated user is not a member of the organization

422 Unprocessable Entity

Cause: No fields provided in update, an explicit null unit_id, or a supplier_id that does not exist

Update Invoice

Update a single invoice

Bulk Delete

Delete multiple invoices by ID