Browse the manualPurchases & vendors

Import and export purchases with Excel

Import purchase documents from an Excel or CSV file, one row per line, and export purchases for your accountant or for re-import. Covers the file columns, how rows are grouped into documents and how to fix import errors.

Open in MitoniUpdated 7 October 2026
On this page

You can import many purchases at once from a spreadsheet, for example purchase history from your previous system, and export purchases to a file. The same import and export are available for purchase orders and purchase returns from their own lists.

Before you start

  • Every item in the file must exist in Mitoni.
  • Vendors must exist, unless you let the import create them.
  • Your company needs a default tax and a default currency.

Import purchases from a file

Import Purchase Documents dialog on the Upload step, with Download Excel Template and the Mapping and Preview steps highlighted

  1. Go to Purchases → Purchase Documents, open Actions and choose Import from file.
  2. On the Upload step, select Download Excel Template for a file with the right columns, fill it in, and upload it. Supported formats are .xlsx, .xls and .csv.
  3. On the Mapping step, match the columns of your file to the Mitoni fields.
  4. Under Vendor handling, tick Create Vendor if not found if the file contains vendors that don't exist in Mitoni yet.
  5. On the Preview step, check the rows and fix any errors.
  6. Select Import.

Each imported purchase gets the next Mitoni document number. Saving works as if you had entered the purchase by hand: stock, item cost and vendor balances update.

How rows become documents

The file has one row per purchase line. Rows with the same Document No. and Date form one purchase. All rows of one purchase must have the same vendor, store, currency and exchange rate.

For example, these three rows create two purchases:

Document No. Date Vendor Item Name Quantity Price
1001 2026-09-14 Van Dijk Zuivel Whole milk 1 L 24 1.09
1001 2026-09-14 Van Dijk Zuivel Oat milk 1 L 12 2.20
1002 2026-09-15 Bakkerij De Molen Croissant 60 0.95

The Document No. in the file only groups the rows; Mitoni assigns its own document numbers. A column named "Invoice No" is also recognised.

Columns in the purchase import file

The Excel template already has these columns. Document No., Date, Vendor, Quantity and Price are required, plus either SKU or Item Name.

Import file columns
Column Required What to enter
Document No. Yes Groups rows into one purchase.
Date Yes The purchase date, or date and time.
Vendor Yes The vendor's tax code or name.
SKU One of the two The item's SKU, variant SKU or barcode. When filled, only these are matched.
Item Name One of the two The item's SKU, variant SKU, barcode or name. Mitoni tries them in that order.
Quantity Yes More than 0.
Price Yes Price per unit including tax, before discount, 0 or more.
Store No A store name, which uses that store's first warehouse, or a warehouse name. Empty uses the first warehouse.
Tax No The tax rate, for example 9, 9% or "vat 9". Empty uses the default tax.
Discount % No From 0 to 100.
Currency No Empty uses your default currency.
Exchange Rate No More than 0. Empty uses 1.
Description No Saved as the line comment.

Fix import errors

The Preview step marks every row with a problem. A purchase is imported only when all of its rows are valid.

  • Select Skip Error Lines to import the valid purchases and leave out the purchases that have errors. Mitoni asks you to confirm.
  • Select Download Error File to get the rows with errors and their messages, fix them in the file and import the file again.

Errors are counted per row. Six errors can belong to four purchases if some purchases have more than one bad line.

Export purchases to a file

Export Purchase Documents dialog, with the Current View and All Rows options and the file format highlighted

  1. Go to Purchases → Purchase Documents, open Actions and choose Export to file.
  2. Choose Current View to export the purchases that match your search and dates, or All Rows to export all purchases.
  3. Choose Excel (.xlsx) or CSV (.csv) and export.

The file has one row per purchase line with the columns Document No., Date, Vendor, Store, SKU, Item, Quantity, Price, Tax, Discount %, Total and Description. Currency and Exchange Rate are added when at least one exported purchase uses another currency. The exported file can be imported again.

Troubleshooting

"Document with same Doc No, Date, and Amount already exists". The purchase was already imported. Remove those rows from the file, or skip them with Skip Error Lines.

Item "Oat milk 1L" was not found. No item has this SKU, variant SKU, barcode or name. Correct the value or create the item first. With a filled SKU column the message is SKU "…" was not found; names aren't matched in that column.

The vendor is reported as not found. The vendor's tax code or name doesn't match a vendor in Mitoni. Correct it, or tick Create Vendor if not found on the Mapping step.

Rows of one purchase report different vendors, stores, currencies or exchange rates. All rows with the same Document No. and Date must share them. Give the rows a different Document No. if they are separate purchases.

An error says there is no default tax or no default currency. Set a default tax and a default currency in your settings, or fill the Tax and Currency columns.

"No purchase documents to export". No purchases match the current search and date range. Widen the dates or choose All Rows.