Actions68
- Account Actions
- Bank Account Actions
- Code List Actions
- Contact Actions
- Event Actions
- Invoice Actions
- Ledger Actions
- Order Actions
- Tax Report Actions
- Tax Report Setting Actions
- Transport Actions
- Web Hook Actions
Invoice → Update
AI-generatedSummary
Updates an existing invoice by ID via the B2Brouter API, sending a PUT request to /invoices/{id} with the update data wrapped as { invoice: {...} }.
Inputs
- environment — Select the B2Brouter API environment. Test/Staging is the default; choose Live/Production for production data.
- id (required) — The ID of the invoice to update.
- updateFieldsInputMethod — How the update payload is built. Manual Mapping uses the Update Fields collection; JSON / Expression uses a JSON string or expression; Try Auto Map uses the incoming item's JSON object as the payload.
- updateFields — Fields to update when using Manual Mapping: Number, Due Date, and Notes.
- updateFieldsJson — JSON object or expression containing the update data. Sent as { invoice: {...} }.
Output shape
array of JSON objects
Returns the B2Brouter API response for the updated invoice, normalized into an array of JSON output items. If the API returns an array, each item becomes an output item.
Examples
Example 1: After fetching an invoice, update its number, due date, and notes in one step.
Update an invoice's Number, Due Date, and Notes
Example 2: Dynamically build the update payload using n8n expressions or incoming data.
Update an invoice via JSON expression