Updates an inbox document (a supplier invoice or receipt read from a file) before it is converted to a bill: the vendor, dates, currency, number, description and lines. line_items replaces every line: send each line you keep with its id. Each line names its account by account_id (the chart-of-accounts id from the chart of accounts list: use it when the account has no code) or by account_code, and its tax rule by tax_code; when both account fields are sent they must name the same account. An account_id that is not an active expense, cost of sales or asset account of the company, or that is a control account (accounts receivable, accounts payable, VAT, a bank account's ledger), is refused with 422 document_extraction_line_account_unavailable, naming the line in error.fields, and nothing is saved; a line sent with its id may keep the account it already has (its chart_of_account_id). Converting the document (documentExtraction.convertToBill) gives each bill line its inbox line's account. Requires If-Match with the document ETag and an Idempotency-Key. Requires the document-extractions:write OAuth scope.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
