Browse the manualSales & customers

Import and export sales

Load past sales from an Excel or CSV file, for example when you move to Mitoni from another system, and export sales to a spreadsheet for your accountant.

Open in MitoniUpdated 7 October 2026
On this page

You can import many sales at once from a spreadsheet and export the sales list to Excel or CSV. Imported sales change stock and customer balances like any other sale. For the order to import your data in, see Bring your existing data into Mitoni from Excel.

Sales list with the Actions menu open, with Import from file and Export to file highlighted

Before you start

  • Every item in the file must exist under Items, with a unit. You match items by SKU, variant SKU, barcode or name.
  • Every customer must exist under Sales → Customers, unless you let the import create missing customers.
  • When a row leaves Tax or Store empty, Mitoni uses your default tax (or the first active tax) under Settings → Taxes, and the first store with a warehouse under Settings → Stores & Locations.

Prepare the file

Put one sale line per row. Rows with the same Document No. and Date become one sale. Mitoni gives each imported sale its own next number, for example SAL-00043; the Document No. in your file is used only to group the rows.

Column Required Description
Document No. Yes Groups rows into one sale. Not kept as the sale's number.
Date Yes Date, or date and time, of the sale.
Customer Yes Customer name or Tax Code. All rows of one sale must have the same customer.
Store No Store or warehouse name. A store name uses that store's first warehouse. Empty uses the first store.
SKU SKU or Item Name The item's SKU, variant SKU or barcode.
Item Name SKU or Item Name The item's name, SKU, variant SKU or barcode.
Quantity Yes Greater than 0.
Price Yes Price per unit including VAT. 0 or more.
Tax No The tax rate, for example 9, 9% or VAT 9%. It must match an active tax. Empty uses your default tax.
Discount % No From 0 to 100.
Description No Saved as the note on that line, not as the sale's description.

Example: two rows with Document No. 1001, Date 2026-09-30, Customer "Brouwer Kantoor", one for 10 Croissant at 2.40 and one for 10 Flat White at 3.90, create one sale of €63.00.

Import sales

  1. Go to Sales → Sales and choose Actions → Import from file.
  2. Upload your Excel or CSV file.
  3. Match the columns in your file to the Mitoni fields.
  4. Optional: under Customer handling, select Create Customer if not found to add missing customers.
  5. Review the preview. Rows with problems show an error; you can download the rows with errors as an Excel file to fix them.
  6. Start the import. If some rows have errors, Mitoni asks "Would you like to skip error lines and proceed with import?" Confirm to import only the valid rows.

The imported sales appear in Sales → Sales. Set the Period to the dates in your file to see them.

Imported sales have no sale point and no payments. Each one adds its total to the customer's balance until you record a payment. See Take payment for a sale.

Important: Imported sales write off stock and record cost at their dates. Import opening stock and purchases first if you want stock and profit reports to be right. See Enter opening stock.

Export sales

Export Sales Documents window, with the Current View and All Rows options (2), the Excel and CSV formats (3) and the Export button (4) highlighted

  1. Go to Sales → Sales and choose Actions → Export to file.
  2. Choose the scope:
    • Current View — the sales in the current period and search.
    • All Rows — all sales, without filters.
  3. Choose Excel (.xlsx) or CSV (.csv).
  4. Click Export.

The file has one row per sale line with Document No., Date, Customer, Store, SKU, Item, Quantity, Price, Tax, Discount %, Total and Description. Its columns match the import fields, so you can map them directly when you import the file.

Troubleshooting

"Customer "Brouwer Kantoor" was not found". Add the customer under Sales → Customers, check the spelling, or select Create Customer if not found.

"SKU "CR-01" was not found" or "Item "Croissant" was not found". Check the SKU or name against Items.

"Item "Croissant" does not have a unit". Set a unit on the item under Items.

"All rows in the same sale must resolve to the same Customer". Rows with the same document number and date have different customers. Give each sale its own document number.

"All rows in the same sale must resolve to the same Store/Warehouse". Use one store per sale.

"Default tax is not configured". No active tax exists. Add one under Settings → Taxes, or fill in the Tax column.

"Default Store/Warehouse is not configured". No store with a warehouse exists. Add one under Settings → Stores & Locations, or fill in the Store column.

"Tax "…" was not found". Enter the rate of an active tax under Settings → Taxes, for example 9%, not the tax's name.

"Store or Warehouse "…" was not found". Check the spelling against Settings → Stores & Locations.

"Document with same Doc No, Date, and Amount already exists". A sale with the same number, date and amount already exists, so the rows may have been imported before. Check the Sales list and remove those rows if they're duplicates.

"Discount % must be between 0 and 100". Enter the discount as a percentage, for example 10 for 10%.

"No sales documents to export". There are no sales in the current view. Change the Period or choose All Rows.