Skip to navigation

Update Invoice

View as Markdown

Updates an invoice’s metadata, line items, adjustments and incentives. Fields left out are unchanged. adjustments replaces the manual adjustments, and an empty array removes them all. Sending payment_term_id rebuilds payment_schedule from that term. Sending a due_date different from the current one replaces the term with that fixed date and clears payment_schedule.

Requires the can_modify_sales_invoice permission on the key owner’s role.

Keys: secret key only.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Path parameters

idstringRequired
Invoice ID.

Request

This endpoint expects an object.
invoice_datedatetimeOptional

Must include exactly 3 fractional-second digits, e.g. 2025-12-29T18:00:00.000Z. Timestamps with no fractional seconds, or with a different digit count (e.g. microseconds), are rejected.

exchange_ratedoubleOptional
order_idstringOptional
subjectstringOptional
due_datedatetimeOptional

Must include exactly 3 fractional-second digits, e.g. 2025-12-29T18:00:00.000Z. Timestamps with no fractional seconds, or with a different digit count (e.g. microseconds), are rejected.

payment_term_idstringOptionalformat: "uuid"

Payment term to apply. Takes precedence over due_date. The document’s due dates and any early-payment discount are worked out from the term and returned in payment_schedule.

reverse_chargebooleanOptional
sales_personnel_idstringOptionalformat: "uuid"

Sales personnel to credit for this invoice. Accepts either a ProfileSalesPersonnel id or a Contact id; if a Contact id is given and no sales-personnel record is linked to it yet, one is created automatically.

commissionobjectOptional

Per-invoice override of the workspace’s default commission terms.

itemslist of objectsOptional
Replaces the invoice's line items. Omit the field to keep the existing ones.
adjustmentslist of objectsOptional

Replaces the invoice’s manual adjustments. Send an empty array to remove them all, or omit the field to keep the existing ones. Promotion and loyalty adjustments are managed through incentives and are left in place.

incentivesobjectOptional

When sent, replaces the invoice’s promotions and loyalty redemption; send an empty object to remove them. When omitted, the existing ones are kept and recalculated if items change. Sending adjustments only replaces manual adjustments.

Response

OK
dataobject
statusboolean
messagestring

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error