All guides
Importing sales from your till
Take what your till sold off stock by uploading its items-sold report, with a preview first.
After reading this guide, you'll know:
- How to export an items-sold report from your till and upload it.
- How Magpie matches each row to an item and a place, and what it does with returns.
- What the preview shows, and what happens to stock when you take the sales off.
- How to deal with rows that don't match and lines that can't be taken off.
On this page
Your till knows what sold; Magpie knows what's on the shelf. Upload the till's items-sold report for a day or a week, check the preview, and Magpie takes what sold off stock, so your counts and reorder suggestions start from the right numbers.
1 Before you start
Importing sales needs a role that can both import data and change stock. With the built-in roles, that's owners, admins and managers. You'll find it in Settings › Import: choose Sales imports at the top, or Import a file and then Import sales under Selling through a till?.
Give your items the same SKUs or barcodes as the items in your till. That's the surest way for every row to match. See Adding items.
2 Export the report from your till
Most tills have a report of items sold over a period: Square, Shopify, Lightspeed and Clover all do. Export it as a CSV or Excel (.xlsx) file for the days you want to take off stock. Comma, semicolon and tab-separated files all work.
The file needs:
- An item column. A SKU, a barcode or the item's name. Magpie looks for headings such as SKU, Variant SKU, Item code, Barcode, UPC, EAN, GTIN, Item, Item name, Product or Product name.
- A quantity column. How many sold, with a heading such as Quantity, Qty, Qty sold, Units sold, Items sold, Net quantity or Net items sold.
It can also have:
- A variation column, such as Variation, Variant or Variant title. It's used with the name to tell sizes and colours apart.
- A place column, such as Location, Store, Outlet or Shop, when one file covers several stores.
Capitals don't matter in headings, and underscores count as spaces. Other columns are ignored.
3 Upload the file
- Go to Settings › Import › Sales imports and choose Import sales.
- Choose the file in Items-sold report (.csv or .xlsx).
- In Sold at, choose the place these sales came from. It's used for every row that doesn't name its own place. Choose Use the file's Location column if every row has one.
- Choose Upload and preview.
Nothing changes yet. If the file has no quantity column, no item column, or nothing that matches, Magpie says so and you can try another file.

3.1 How rows are matched
For each row, Magpie looks for the item in this order:
- The SKU, ignoring capitals.
- The barcode. A 12-digit UPC-A and the same code as a 13-digit EAN-13 count as the same barcode.
- The exact name. With a variation, it first tries the name and variation together, so "Classic tee" with "M / Black" finds the item "Classic tee – M / Black". Variations called "Regular" or "Default Title" are ignored.
Archived items aren't matched. A place column is matched to a place by its name, or by its full path as Magpie shows it.
Rows for the same item and place are added together. Rows with no quantity, or zero, are skipped. A negative quantity is a return, and so is a number in brackets, as accounting exports show it: (2) means 2 came back.
4 Check the preview
The preview shows Items matched, Units sold (net) and Rows not matched at the top. Below is a line for each item and place, with Where, Sold (or "returned" and the amount), and On hand now.
When there isn't enough on hand to take off, On hand now says not enough: count it first. Unless your organization allows negative stock, that line won't go through. Counting the item first gets the number right; see Counting your inventory.
Not matched lists each row that couldn't be used, with its row number, what was in the file, how many sold, and why:
- No item matches: no SKU, barcode or name matched. Gift cards and services often land here, which is fine.
- No place called a name: the file's place column names a place Magpie doesn't have, or one you don't have access to.
- Choose where these were sold: the row has no place, and you didn't choose one in Sold at.
Rows that didn't match are left out when you take the sales off stock.

Tip Fix the matches before you take anything off. Give the items the till's SKUs or barcodes, upload the same file again, and use the new preview. The first preview can stay as it is; it never changes stock.
5 Take the sales off stock
Choose Take off stock and confirm. For each item and place, Magpie records one stock change:
- What sold comes off as Used or sold.
- When an item's returns outnumber its sales, the difference goes back in as Returned.
- Each change has the note "Sales:" and the file name, so you can find it in Activity.
These go through the same checks as any stock change:
- Approvals. If stock changes need approval and you can't approve them, the line waits for an approver. See Approving stock changes.
- Lots. For items tracked by lot, sales come off the lot at that place that expires first.
- Not going below zero. Unless your organization allows negative stock, a line can't take off more than is there.
Items with serial numbers aren't changed by a sales import, because Magpie needs to know which unit sold. Update those on the item's page. See Lots and serial numbers.
Sales taken off this way count as usage, so they show in the Usage and dead stock report, and What to reorder works from what's really on the shelf. See Using stock for other ways stock is used.
6 Retry lines that didn't go through
After you take sales off stock, the last column becomes Result: Done, Waiting for approval, or the reason a line didn't go through, such as not enough on hand or no lot of it at that place.
Not enough on hand usually means the item needs counting. Fix that, then choose Try again. Only the lines that didn't go through are tried again; lines that are done are never taken off twice.
7 Upload the same file again
Magpie recognizes a file it has seen before. When the same file is uploaded again after an import of it was taken off stock, the preview says You've uploaded this file before, and lines that went off stock then show Already taken off, with a link to that import. Only the rest are taken off now, so you can fix the rows that didn't match and upload the same file again without counting any sale twice. If everything that matches was already taken off, the preview says so and there's nothing to press.
A different file is a different set of sales, even if it covers the same days. Export each day or week once.
8 Past imports
Sales imports lists your last 50 imports, newest first, with the file name, how many lines, the place chosen, who uploaded it and when. Each is marked Applied or Not applied yet. Open one to see its preview or results.
Still stuck?
Email support with what you were trying to do and any message you saw.