Skip to main content

Fetch Provider Bill Files

POST 

/api/accounting/provider-bills/review/fetch-attachments

Download the files attached to the chosen bills in Xero or QuickBooks and keep them with the review in SKU.io. Reads from the provider only; Nothing is written to Xero or QuickBooks.

Required scope: purchase-orders:write

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

Runs in the background. The response carries tracked_job_log_id; poll GET /api/tracked-job-logs/{trackedJobLog} for progress and the result.

Request fields:

  • remote_ids (required, array of 1-500 strings, each max 191) - the provider bill IDs.
  • connection_id (optional, integer).

Returns 422 when remote_ids is missing or too long. 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