Skip to main content

Resolve Provider Bill Invoice Total

POST 

/api/accounting/provider-bills/review/:remoteId/totals

Decide what to do when the uploaded invoice's total differs from the provider bill's. The provider's amount stays either way.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Request fields:

  • resolution (required) - keep_flag keeps the file and flags the bill; discard treats it as the wrong file, so its details are not used.
  • connection_id (optional, integer).

Review fields: id, connection_id, remote_type, remote_id, status (pending, classified, committed, ignored, failed), classification (bill, purchase_invoice, ignored, or null), billable_type / billable_id (the SKU.io document once brought in), supplier_id, purchase_order_id, ignore_reason, provider_status, amount_due, total, currency_code, document_state (from_provider, uploaded, none), change_state (none, changed, voided - whether the provider bill changed after it was brought in), placeholder_number (true when the provider bill had no number and SKU.io gave it one), invoice_details (what was read from an uploaded invoice), error (why bringing it in failed), decided_at, refreshed_at. invoice_details.total_resolution holds the choice.

Returns 422 when the bill has no uploaded invoice or resolution is invalid. Returns 404 when the tenant has no Xero or QuickBooks connection.

Authentication: Requires Bearer token. Scope: purchase-orders (read/write). The user must hold the Review provider bills permission (bills.review_provider).

Request​

Responses​

OK

Response Headers
    Content-Type