Bills
List Bills
List bills, paginated, across every kind: expense bills (no purchase document) and landed cost bills linked to a purchase order, warehouse transfer or inbound shipment. Each bill comes with computed totals, allocation status, accounting state, cost tracking and source.
Export Bills
Export bills (expense and landed cost) as XLSX or CSV. The response is a binary file download, not JSON.
Download Bill Import Template
Download the landed cost bill import template as an XLSX file. Import the filled-in file through the data-import endpoints with `entity_type=bills` (see Upload Data Import); allocations and payments import as `bill_allocations` and `bill_payments`. The response is a binary file download, not JSON.
Get Bill
Get a bill with its supplier, lines, allocations, ledger entries and related purchase document data.
Update Bill
Update a bill's header data and, for a landed cost bill, its allocations. Lines are changed with **Update Bill Lines**.
Delete Bill
Delete a bill.
Get Bill Line Items
Lean lines + allocations payload for the expandable row in the landed cost bills list view.
Get Bill Payees
Lists the distinct suppliers actually referenced by existing bills, ordered by name (may include grandfathered goods suppliers on migrated bills). Backs the Supplier filter on the bills list page.
Get Eligible Bill Payees
Lists all suppliers eligible to be billed: non-archived, service-type suppliers, ordered by name. Backs the payee picker on the landed-cost and cost-entry create/edit forms (where new bills are created).
Create Bill
Create a bill. This is the endpoint for an **expense bill** (a bill with no purchase document: software, rent, advertising, professional fees) and for any API client creating a landed cost bill linked to a purchase order, warehouse transfer or inbound shipment.
Bulk Delete Bills
Bulk delete landed cost bills by explicit IDs or by list filters ('all filtered' scope).
Update Bill Lines
Batch updates the lines of a bill. Replaces existing lines with the provided collection.
Save Bill with Lines
Save a bill's header and its lines together, in one database transaction under the bill lock. The bill editor's Save uses it: if any part is refused, nothing is written, so a failed save never leaves a new supplier, currency or date over the old lines.
Get Available Lines for Manual Allocation
Returns purchase order and warehouse transfer lines that are available for manual cost allocation to this bill. Includes pre-calculated allocation amounts.
Generate Accounting Transaction
Generates (or regenerates) the accounting posting for a landed-cost bill. On tenants using the v2 ledger, this synchronously rebuilds the bill's ledger journal entry; on legacy tenants it creates the accounting transaction. Safe to call repeatedly — an existing entry is superseded, not duplicated.
Create Cost Entries from Bill Lines
Create one cost entry per selected bill line, each tracking a chosen amount of that line for profitability analysis. This is the `scope: 'lines'` mode; send `scope: 'entire'` (no `line_allocations`) to track everything the bill still has available as a single entry.
Get Bill Profitability Summary
Get a profitability-tracking summary for a bill: how much of its net amount is tracked as cost entries or as order cost lines, how much remains untracked, and the cost entries created from the bill.
Get Bill Lines Availability
List every line on a bill with how much of it is tracked as cost entries or order cost lines and how much can still be tracked, plus bill-level totals. Net of tax, in the bill's currency.
Get Bill Line Availability
Get the tracking availability for a single bill line. Net of tax, in the bill's currency.
List Bill Payments
Lists all payments recorded against a landed-cost bill (supplier payments applied to the bill). Payments two-way sync with the connected accounting provider.
Add Bill Payment
Records a payment against a landed-cost bill and recalculates the bill's paid status. The payment is pushed to the connected accounting provider (Xero / QuickBooks Online).
Update Bill Payment
Updates an existing bill payment and recalculates the bill's paid status. The change is re-synced to the connected accounting provider.
Delete Bill Payment
Deletes a bill payment and recalculates the bill's paid status. The corresponding provider payment is voided/removed on the connected accounting provider.
Submit Bill Payment Request
Raise a payment request for a landed-cost bill's outstanding balance under the bill payment approval policy. It routes to the approvers of the matching tier; when you could approve every step yourself it completes in the same call. A bill that already has an approved amount can be submitted again for an increase — the earlier approval keeps covering what it authorized.
Approve Bill Payment Request
Record your approval of a landed-cost bill's pending payment request. When no request is pending and you may approve its first step, a request is raised and approved in one call. On a multi-step policy a decision that only satisfied your step returns `approval_message` naming who it waits on next.
Reject Bill Payment Request
Reject a landed-cost bill's pending payment request. The bill stays unpayable under the policy until a new request is approved; it can be submitted again.
Withdraw Bill Payment Request
Withdraw a landed-cost bill's pending payment request. Only the requester or an administrator may withdraw, and only before anyone has approved part of it. A bill with an earlier approved amount returns to approved for that amount; otherwise it goes back to not requested.
Get Bill Activity Log
Paginated audit history for a bill — who changed what and when, including field-level before/after values.
List Bill Notes
Paginated notes attached to a bill, newest first.
Add Bill Note
Adds a note to a bill.
Toggle Bill Note Pin
Pins or unpins a bill note (toggles its pinned state).
Delete Bill Note
Deletes a bill note.
Sync Bill Tags
Replaces the full set of tags on a bill with the provided list.
List Bill Documents
List every file kept with a bill, newest first: invoices read by OCR for it and documents attached to it (uploads, the invoice file kept with a bill entered by hand). A document made from one of the bill's own scans is listed once, as the scan.
Reset Bill Due Date to Term
Discards a manually-overridden due date on a landed-cost bill and re-derives it from the bill's effective payment term (its own term, else the linked purchase order's term, else the supplier default). The response's `due_date_source` returns to `derived` (or `none` when no term is resolvable).
Get Bill Invoice Reading Status
Get whether invoice reading (OCR) is switched on for the workspace, and the confidence threshold below which a read value is flagged for review.
Upload Bill Invoice for Reading
Upload a vendor invoice to be read into a draft expense bill (a bill with no purchase order, warehouse transfer or inbound shipment). Reading runs in the background; the response returns the extraction to poll.
Upload Bill Invoice File
Store a vendor invoice file without reading it, for a bill you enter by hand (for example when invoice reading is switched off). The file is kept unlinked; once the bill is saved, attach it with **Link Document to Bill**.
Suggest Bill Line Accounts
Suggest an expense account (nominal code) for each line of a bill being entered, with the reason for each suggestion. Writes nothing.
Link Document to Bill
Attach a stored document (for example one uploaded with **Upload Bill Invoice File**, or returned by **Create Document from Invoice Extraction**) to a saved bill, so the file is kept with it and appears in **List Bill Documents**. No body.
Create Document from Invoice Extraction
Get the original file of an invoice extraction as a document, creating the document the first time. Use it when the reader failed and you want to enter the bill by hand with the same file attached: save the bill, then call **Link Document to Bill**. No body. Calling it again returns the same document.
Check Bill for Duplicates
Check a bill, before or after it is saved, against the supplier's other bills and purchase invoices and against the unlinked bills in the connected accounting system (Xero / QuickBooks Online) for the provider contacts mapped to that supplier. Writes nothing.
Record Bill Duplicate Decision
Record a person's answer for a pair of documents the duplicate check flagged, so the pair is never flagged again (in either order).
Link Bill to Provider Bill
Link a bill to the bill already in the connected accounting system that it duplicates. The provider's bill becomes this bill's record there, any pending send of the bill is closed, and nothing is sent to the provider, now or later, unless the bill is edited in SKU.io afterwards. A paid provider bill is linked read-only.
Preview Bill Posting
Preview what saving a bill would do to the books: the journal lines it would post, the day it would post on, and whether it would be sent to the connected accounting system. Writes nothing.
Get Provider Bill Review Summary
Get how many bills in Xero or QuickBooks over the last 12 months SKU.io does not know about yet. Cached for up to 10 minutes. Returns `data: null` when the tenant has no Xero or QuickBooks connection.
List Provider Bills to Review
Find the bills already in Xero or QuickBooks that are not in SKU.io yet, over a date range. Reads SKU.io's local copy of the provider's bills; Nothing is written to Xero or QuickBooks.
Bulk Classify Provider Bills
Save the same decision for several provider bills at once, for example every bill from one contact. Nothing is created yet; classified bills are brought in by **Bring Provider Bills into SKU.io**. Nothing is written to Xero or QuickBooks.
Fetch Provider Bill Files
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.
Bring Provider Bills into SKU.io
Bring every classified provider bill on the connection into SKU.io: expense bills become SKU.io bills and purchase invoices are created on their purchase orders. Each one is marked as already booked in the provider and linked to it, with its payment status and files carried over. Nothing is written to Xero or QuickBooks.
Load Older Provider Bills
Load bills from an older date range into SKU.io's local copy of the provider's bills, so **List Provider Bills to Review** can see them. Use it when the list returns `coverage.incomplete: true`. Reads from the provider only; Nothing is written to Xero or QuickBooks.
List Unmatched Provider Bill Invoices
List the invoice files uploaded without choosing a bill that have not been matched to one yet. Each call first tries to match every file whose read has finished to the one open provider bill with the same supplier and invoice number (or, without a number, the same supplier and total); matched files move to that bill and drop out of this list.
Upload Provider Bill Invoices
Upload one or more invoice files without choosing a bill. With invoice reading on, each file is read and then matched to its provider bill by supplier, number and total (see **List Unmatched Provider Bill Invoices**). Returns the files still unmatched. Nothing is written to Xero or QuickBooks.
Get Provider Bill
Get one provider bill with its lines, its saved decision, its files and a comparison against the uploaded invoice.
Classify Provider Bill
Save a decision for one provider bill: an expense bill, a purchase invoice on a purchase order, or ignored. Nothing is created yet; classified bills are brought in by **Bring Provider Bills into SKU.io**. Nothing is written to Xero or QuickBooks.
Upload Provider Bill Invoice
Attach the real invoice file to one provider bill. With invoice reading on, the file is queued to be read and compared with the provider bill (see **Get Provider Bill**); with it off the file is only attached. Nothing is written to Xero or QuickBooks.
Restore Provider Bill
Bring an ignored or failed provider bill back to undecided. If its contact was set to always ignore, that is switched off too.
Resolve Provider Bill Invoice Total
Decide what to do when the uploaded invoice's total differs from the provider bill's. The provider's amount stays either way.
List Purchase Orders for a Provider Bill Supplier
The purchase orders a goods supplier's provider bill can become a purchase invoice on: the supplier's received, not-yet-invoiced purchase orders. The wizard loads these when a person matches a contact to a supplier, and for the per-bill purchase order picker.
Mark Provider Bill Not a Duplicate
'Not a duplicate': the provider bill is not the SKU.io bill or purchase invoice it was matched to (its `possible_match`). The answer is remembered as a duplicate decision for the pair, so the scan lists the bill with the bills to bring in and bringing it in is not refused for that document. Nothing is written to Xero or QuickBooks.
Keep Provider Bill Header Change
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.