Applies a correction previewed with bill.correct.preview the way saving the bill in the app does: the bill is updated and its journal re-posted on the same dates, or on the new date_of_document (at the rate of its date when the bill takes its missing exchange rate, or of its new date for a foreign-currency bill); payments and vendor credits stay on the bill. A removed line ({id, remove: true}) leaves the bill, its totals drop by the line's own, and on a bill with payments or vendor credits the open amount drops by as much and a bill they now cover is paid (unpaid_amount and status move). Include the preview's confirmation_token with the same body and Idempotency-Key; If-Match is required. A bill that changed since the preview, a commit that differs from its preview in missing_exchange_rate, date_of_document, due_date or the payment term, or a rate that differs from the one the preview showed is refused with 412; a token that does not belong to this request is refused with bill_correct_token_invalid; the preview's refusals (bill_correct_below_paid, bill_correct_keep_a_line, bill_correct_total_not_positive, bill_totals_mismatch and the others) apply again under the locks. The bill and every line are compared after the save: if any field differs from what the preview showed, the commit is refused with bill_correct_unplanned_change and nothing is saved. Requires the bills:action OAuth scope.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
