Skip to main content

updateOrderFinancial

Updates an existing accounting document (invoice / sales receipt): document type / date, the line items, and the discount, shipping cost, and sales tax amounts. Every field is optional — only the supplied fields are changed.

The discount may be a fixed AMOUNT or a PERCENT of the line subtotal (shipping and tax are excluded from the subtotal). If the document has already been sent to QuickBooks, the downstream projector re-enqueues the appropriate update-invoice / update-sales-receipt job so the external record stays in sync.

Permissions

  • Requires accounting:update_order_financial permission.
updateOrderFinancial(
input: UpdateOrderFinancialInput!
): OrderFinancialDocument!

Arguments

updateOrderFinancial.input ● UpdateOrderFinancialInput! non-null input common

Parameters for UpdateOrderFinancial

Type

OrderFinancialDocument object orders

An order's accounting document (invoice / sales receipt). If no document has been persisted yet, a draft is derived from the order and id is null.