Updates only the supplied fields of an active draft purchase bill. Send If-Match from bill.show and an Idempotency-Key. line_items replaces all lines: send each existing id, quantity, unit_price, discount, discount_type, order, description, tag_dimension_id, ip_box_category, ip_box_percentage, ip_box_asset_id, account_id (the returned chart_of_account_id) or account_code, and tax_rule_id or tax_code. A description, tag_dimension_id or ip_box field left out of a line is cleared; product_id, adds_to_stock_cost and serials left out are kept. unit_price uses tax_type (gross includes VAT, net excludes it), before discount. Resending the returned prices with unchanged quantity and discount preserves the stored line amounts, including rounding; a changed price or quantity is recalculated. When currency, tax basis, line amounts, tax rules and stock classification are unchanged, valid stored header totals keep their printed rounding difference from the line sum (with an import VAT line, up to one cent). Read-only response fields such as amount and chart_of_account_id are not write fields. For an approved bill use bill.correct.preview and bill.correct. Requires the bills:write OAuth scope.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
