Import bills
When a forwarder sends a statement covering many shipments, or you're moving months of rent, software, and 3PL bills from another system, import them from a spreadsheet instead of entering each one. The importer on Purchasing → Bills has three import types:
| Import type | Use it to | One row per |
|---|---|---|
| Import Bills | create bills and update existing ones, with their lines | bill line |
| Import Bill Allocations | set how much of a manual bill each product carries | allocation |
| Import Bill Payments | record payments against bills | payment |
Each imported bill is created the same way as one you type in. A row with a linked document makes a landed cost bill: it's linked to its purchase order, inbound shipment, or warehouse transfer, its cost is spread by its proration strategy, and it reaches your inventory. A row with no linked document makes an expense bill, which needs an expense account on every line. See Enter an expense bill.
If any row in the file fails validation, nothing in the file is imported. Every failing row shows its errors, the other rows say the file was refused because of them, and the preview reads "Nothing was imported. Fix the rows below and import again." Fix the file and import it again. Payments are the exception: Import Bill Payments imports each valid row on its own.
Before you begin
- You need the Bills → Import permission (
bills.import) to import bills. Without it the Import button is hidden. Importing allocations or payments, and updating bills that already exist, also needs Bills → Edit (bills.update). Roles that had the matching purchase order permissions have these. - Every company you're billed by must already exist as a service supplier (a freight forwarder, customs broker, landlord, 3PL, or similar), not as the supplier of the goods. See Create and edit a supplier.
- For landed cost bills, the purchase orders, inbound shipments, and warehouse transfers they cover must already exist. The importer finds them by number.
- Cost categories, tax rates, payment terms, currencies, nominal codes, and payment methods in your file must already exist too. The importer matches them by name and never creates them.
Import bills
-
Go to Purchasing → Bills and click Import, next to Export.
-
Under Import Type, leave Import Bills selected, and click Download Template. The template has three sheets:
- Import Here: the columns below, with sample rows built from your own suppliers and purchase orders, including one expense bill. Green headers are required for a new bill.
- Field Guide: what each column means, whether it's required, and an example.
- Reference Data: your service suppliers, bill types, link types, proration strategies,
currencies, payment terms, cost categories, tax rates, and nominal codes, spelled exactly as
the importer expects them. Suppliers are listed as
Name <email>: copy only the name intosupplier_name, and the email intosupplier_emailif you need it.

-
Fill in one row per bill line. Rows that share an invoice number and supplier become one bill, so repeat the invoice number and the bill's details (supplier, date, linked document) on every row of the same bill. Leave
link_typeandlink_referenceblank for an expense bill. -
Drop your file on the upload area, click Choose File, or paste the rows into Paste CSV/TSV data. CSV, TSV, TXT, XLSX, and XLS files all work. In an Excel file, keep dates in
YYYY-MM-DDorMM/DD/YYYYform: the importer reads the date as the cell displays it. Click Next: Map Columns. -
Check that each column maps to the right field. Columns named like the template or the bills export are matched for you. Click Next: Validate.

-
SKU.io checks every row in the background, and counts what will happen: New, Updates, Unchanged, Errors, and Warnings. Use All, Valid, Errors, and Warnings to filter the rows. The Type column shows whether each bill becomes an Expense or a Landed cost bill. Row numbers count data rows from 1; the header isn't counted.

-
If any row has an error, nothing can be imported: the banner reads "Nothing was imported. Fix the rows below and import again." Fix the rows in your file, click Back twice to return to the upload step, and upload it again. When every row is valid, click Import. The button shows how many bill lines will be imported.

-
The import runs in the background, and you can follow it in the job tray. It checks the file again and writes every bill together, so if a row fails while it's written, every row is rolled back and the import says which row failed. When it finishes, the dialog says how many bills were created, updated, and unchanged, and the bills list refreshes.
Bill columns
Repeat these on every row of a bill. On an update, a blank cell keeps the bill's current value.
| Column | Required for a new bill? | Format | Notes |
|---|---|---|---|
id | No | A bill ID number | Leave blank for new bills. When filled in, that exact bill is updated (and its invoice number can be changed). |
invoice_number | Yes, unless id is filled in | Text | The supplier's invoice number. Rows with the same number and supplier form one bill. If that supplier already has a bill with this number, it's updated; otherwise a new bill is created. Invoice numbers are unique per supplier: two suppliers can both use INV-1001. When two suppliers' bills share the number, fill in supplier_name or id so the importer knows which one. |
invoice_date | Yes | YYYY-MM-DD, MM/DD/YYYY, M/D/YYYY, YYYY/MM/DD, or MM-DD-YYYY | A date in a locked accounting period is refused. A date more than a day ahead is a warning, not an error. |
supplier_name | Yes | A service supplier's name | Matched without regard to capitals. Must be a service supplier, never a goods supplier. |
supplier_email | No | Email address | Use it instead of the name, or when two suppliers share a name. If two suppliers share the email too, add the exact name as well. |
link_type | Landed cost bills only | Purchase Order, Warehouse Transfer, or Inbound Shipment | What the bill's cost lands on. Leave it and link_reference blank for an expense bill (No purchase document and Expense also mean an expense bill). An import can't move an existing bill to a different document, or turn an expense bill into a landed cost bill. |
link_reference | Landed cost bills only | A document number | The purchase order, warehouse transfer, or inbound shipment number, for example PO-1001. Blank on a new bill makes an expense bill. |
currency_code | No | A currency code, for example EUR | Blank uses your default currency on a new bill. |
currency_rate | No | A number greater than 0 | Blank uses the currency's current rate. Re-supplying a bill's existing currency without a rate keeps the bill's original rate. Changing an existing bill's currency always takes the new currency's current rate. |
payment_term | No | A payment term name, for example Net 30 | Sets the due date. Blank uses the supplier's default term. |
proration_strategy | No | category_default, cost_based, revenue_based, weight_based, volume_based, quantity_based, specific_line, duty_estimate_based, customs_entry_based, or manual (the on-screen names, like By cost, work too) | Landed cost bills only; ignored on an expense bill. How the cost is spread over the document's lines. Blank on a new bill is category_default: each line splits by its cost category's Allocate by. specific_line splits the cost equally across every line. For manual, set the amounts with Import Bill Allocations. Until you do, the bill stays unallocated, and validation warns you. |
kind (shown as Type) | No | Expense or Landed cost | Optional: the type follows from the linked document. When you fill it in, it must agree, or the row fails with an error saying what to change. |
Line columns
| Column | Required? | Format | Notes |
|---|---|---|---|
line_description | Yes | Text | Must be unique within the bill (capitals don't count as different). On an update, lines are matched to the bill's existing lines by description. |
line_quantity | No | A whole number of 1 or more | Blank is 1. |
line_amount | Yes | A number of 0 or more | The unit amount in the bill's currency, rounded to the cent. $, commas, and spaces are ignored. A credit belongs in Vendor Credits, not as a negative amount. |
line_cost_category | No | A cost category name, for example Freight | See Manage cost categories. |
line_tax_rate | No | A tax rate name | |
line_nominal_code | Expense bills: Yes | A code, or a code and name, for example 6200 Software | On an expense bill every line needs an expense account (a cost category with a default account also counts). Inventory, goods-received, purchase clearing, and accounts payable accounts are refused: "Inventory is not an expense account. To add cost to stock, enter this as a landed cost bill on the purchase order." On a landed cost bill, blank lets the account be chosen automatically when the bill posts. On a landed cost bill line that goes into stock cost, a profit and loss or stock account is refused for that row, for example "5100 Freight and Shipping is a profit and loss account, so this line can't also go into stock cost." Leave it blank, or use a cost category with Capitalise into stock off. A line you already chose Expense it for in the editor stays expensed while the file keeps its account. See Repair landed cost on a profit and loss account. |
On an update, the lines in your file become the bill's complete set of lines: a line that's no longer in the file is removed, and validation warns you which ones. A row with only bill columns and no line columns updates the bill's details and leaves its lines alone. On an existing line, a blank cost category, tax rate, or nominal code keeps the line's current value.
Import bill allocations
Allocations are for landed cost bills only: a file that names an existing expense bill is refused with "Expense bills aren't allocated to purchase lines." This import is all or nothing too.
A bill with the manual proration strategy carries exactly the amounts you give each product on
its purchase order, inbound shipment, or warehouse transfer. To set them for many bills at once,
click Import, choose Import Bill Allocations under Import Type, then upload, validate,
and import the same way.

| Column | Required? | Format | Notes |
|---|---|---|---|
id | No | A bill ID number | Picks the exact bill. Otherwise the bill is found by invoice number. |
invoice_number | Yes | Text | The bill must already exist. Import it first with Import Bills. When two suppliers have a bill with this number, use id: this import has no supplier column. |
allocation_sku | Yes, unless allocation_line_id is filled in | A SKU on the bill's linked document | For an inbound shipment, a SKU on one of its purchase order lines. |
allocation_line_id | Only when the SKU is on more than one line | A document line ID | Picks the exact line. It wins over allocation_sku. |
allocation_amount | Yes | A number of 0 or more | How much of the bill's subtotal (before tax) that line carries. |
- The rows for a bill replace all of its allocations, and make it a manual bill. Validation warns you when a bill is switching from another proration strategy.
- All of a bill's allocations together can't be more than its subtotal. If they're less, the rest stays unallocated and validation warns you.
- Two rows for the same document line are added together.

Import bill payments
To record many payments at once, for example from a remittance file, click Import and choose Import Bill Payments under Import Type.

| Column | Required? | Format | Notes |
|---|---|---|---|
id | No | A bill ID number | Picks the exact bill. Otherwise the bill is found by invoice number. |
invoice_number | Yes | Text | The bill being paid. When two suppliers have a bill with this number, use id. |
payment_date | No | YYYY-MM-DD, MM/DD/YYYY, or YYYY/MM/DD | Blank is today. |
amount | Yes | A number greater than 0 | In the bill's currency. |
payment_method | Yes | A payment method name | Must already exist, for example Wire Transfer. |
reference | No | Text | Your payment reference. |
- A row with the same bill, payment method, and reference as an existing payment updates that payment instead of adding another. Keep the reference filled in, and you can import the same remittance file twice without paying a bill twice. Without a reference, every import adds a new payment, and validation warns you.
- A payment can't be more than what's still owed on the bill. This is checked across the whole file, so two rows for the same bill can't overpay it together. A bill that's already paid in full can't take another payment.
- The bill's paid status updates as each payment is recorded.
- Payments import row by row: a failing row is listed and the others are still recorded.
- A bill brought in from Xero or QuickBooks can't take an imported payment. Its payments are recorded there.

Edit bills in Google Sheets
Click Sheets on the Bills page to open your bills in Google Sheets, one row per bill. Edit the invoice number, date, supplier, linked document, currency, FX rate, or proration strategy, then choose Pull & review to bring the changes back. They go through Import Bills, so you check them on the Validate step before anything is saved. Totals and statuses in the sheet are there for reference and aren't imported, and a pull never changes a bill's lines. See Open a list in Google Sheets for connecting your Google Account and the other push and pull options.
Edit bills in bulk with an export
- On Purchasing → Bills, click Export and choose Bills with Line Items. For
bills with the
manualproration strategy, the export adds one row per allocation, using the Allocation SKU, Allocation Line ID, and Allocation Amount columns. - Edit the file. To remove a line from a bill, delete its row.
- Import it with Import Bills. Its ID column makes each row update its own bill, and an unchanged bill is left exactly as it was. To update manual allocations, import the same file again with Import Bill Allocations: it reads the allocation columns and ignores the rest. An export that includes expense bills can't go through Import Bill Allocations; filter the list to Landed cost before you export.
What gets blocked
Validation stops a bill from importing, and says why, when:
- The bill is dated in a locked accounting period, or its new date would be.
- The bill has payments, and the imported total would be less than what's already been paid.
- The file would move an existing bill to a different purchase order, transfer, or shipment, or change it between expense and landed cost ("Delete this bill and enter it on the purchase document.").
- The bill is booked in Xero or QuickBooks and the file would change it: "This bill is booked in Xero. Change it there: SKU.io keeps a read-only copy." Re-importing it unchanged is fine.
- Cost is already tracked from the bill, and the file would lower a line below what's tracked, remove a tracked line, or change its currency.
- Two groups of rows in the file would end up as the same bill or the same invoice number.
- You can't edit bills (you don't have the Bills → Edit permission).
- The file looks like a duplicate: another bill from the same supplier has the same invoice number once spaces, punctuation, and leading zeros are ignored, or two groups of rows in the file would become the same bill.
Because the import is all or nothing, any one of these stops the whole file.
The importer checks again when it writes each bill, so a change someone makes after you validate is never overwritten by stale data. If a bill changed in the meantime, its blank cells keep the newer values.
Next steps
- Enter an expense bill: enter one bill by hand or from its invoice.
- Record landed cost bills: upload one freight or duty invoice and allocate it.
- Add landed costs: how each proration strategy splits a bill.
- Manage cost categories: the categories your bill lines are sorted into.
- Open a list in Google Sheets: push a list to a sheet and pull your edits back.
Video transcript
To bring in many bills at once, open Orders in the sidebar, and then choose Bills. Click Import, which sits next to Export at the top of the list. Import Bills creates and updates bills, one row for each bill line. Download Template gives you every column, a field guide, and your own suppliers and accounts. For an expense bill, leave the linked document columns blank, and give every line an expense account. Choose your file, and click Next to map its columns. Columns named like the template are matched for you, so click Next again to validate the file. A bill import is all or nothing, so one bad row stops the file. One line uses an inventory account, so nothing in this file can be imported. Every row says why, and the rows that were fine point to the row that failed. The Import button stays off until the whole file is valid. Fix the line in your file, with an expense account in its place. Then go back, and upload the corrected file the same way. Now every row is valid, and the Type column shows each one becomes an expense bill. Click Import, and the bills are written together in the background. You can follow the import in the job tray while it runs. When it finishes, the dialog counts the bills it created, and the list refreshes on its own.