Skip to main content

Keep Provider Bill Header Change

POST 

/api/accounting/provider-bills/review/:remoteId/header-change/resolve

The provider changed the supplier or currency of a bill already brought into SKU.io (listed in the scan's header_changes). SKU.io never remaps it silently; this keeps the SKU.io record as it is and clears the flag (the provider's current header becomes the new baseline). To use the provider's new supplier or currency instead, delete the SKU.io copy: its provider bill returns to the wizard to be brought in again. A new number is copied onto the SKU.io record by the nightly refresh and needs no action. Nothing is written to Xero or QuickBooks.

Required scope: purchase-orders:write

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

Request fields:

  • connection_id (optional, integer).

Returns the review (same fields as Resolve Provider Bill Invoice Total, plus provider_header: committed (number, contact_id, contact_name, currency) and changes). A currency change is the exception: SKU.io's copy can't take the provider's amounts in another currency, so the nightly refresh holds every amount, payment and balance while the currencies differ, and the currency flag stays after this call (any supplier change it carried clears). Delete the SKU.io copy and bring the bill in again, or wait for the provider to change back. Returns 422 when the bill has no change to resolve, or its only change is a currency SKU.io's copy is not in.

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