All guides
Lots, expiry dates and serial numbers
Track stock by batch with expiry dates and use the oldest first, or track each unit by its own serial number from receiving to counting.
After reading this guide, you'll know:
- How to turn on lot or serial number tracking, and for which items.
- How lots get their numbers and expiry dates, and how first-to-expire works.
- When Magpie warns you about expiring stock.
- How serial numbers move through receiving, moves, picking, check-outs and counts.
On this page
Some stock needs more than a number. Food, chemicals and medicine come in batches that expire, so you track lots. Tools, machines and rebuilt parts are each worth tracking on their own, so you track serial numbers. An item uses one or the other, or neither.
1 Turn on tracking
Both are optional features. Owners and admins turn them on in Settings › General under Features: Lots & expiry dates and Serial numbers.
Then choose the items. On the item form, open More details and, under Tracking, tick one:
- Track serial numbers: each unit has its own serial number and history.
- Track lots and expiry dates: stock is recorded per batch so you know what expires first.
An item can't track both. Tracking can't be changed once stock has been recorded for the item, so set it when you add the item, before any stock goes in.
Note A tracked item's stock always needs its lot or serial numbers. That's why the quick ways of changing many numbers at once, like typing stock into the size grid, skip tracked items.
2 Lots and expiry dates
A lot is a batch of an item with its own number and, usually, an expiry date: Oat milk, lot B14, expires December 8. Stock is kept per lot at each place, so you always know which batch is where.
2.1 Lots arrive with stock
Lots are made as stock comes in:
- Update stock › Added: type the Lot number and its Expires date. A number the item already has adds to that lot; a new number starts a new lot with that date. See Updating stock.
- Receiving a purchase order: each lot-tracked line has Lot number and Expiry date. Leave the number blank and the order's reference is used. If the lot exists with a different expiry date, Magpie stops and says so rather than changing it. See Purchase orders.
- Starting stock on Add item: goes into a lot named Initial, with no expiry date. Edit it to give it one.
- Counting: a lot found on the shelf that isn't on the count can be added with Another lot here, with its expiry date. Its stock arrives when the count is finished. See Counting your inventory.
Lot numbers match whatever their case, so b14 and B14 are the same lot.
2.2 See and edit lots
The item page has a Lots box with the first ten lots, first to expire first, and each one's expiry date. An expired one says Expired in red. Where it is lists each place's stock lot by lot.
Manage opens the Lots page: every lot, its Expires date and how many are In stock across your places. People who can edit items can click a lot number to change its number, expiry date or notes, or click Add lot to set one up before the stock arrives. Adding a lot here doesn't add stock.

2.3 First to expire, first out
Wherever you take stock out, Magpie puts the lot that expires first at the front, so the oldest stock goes first. Lots with no expiry date come after the ones with dates.
| Where | What happens |
|---|---|
| Update stock › Removed or Set to | Choose the Lot from the lots at that place, listed first to expire first, with how many are in each. |
| Move stock | The Lot list starts on the first to expire at the place you're moving from. The lot keeps its number at the new place. |
| Using stock and logging waste | Which lot? starts on the first to expire there. A kit takes the lot that expires first automatically. |
| Pick lists | When a list is made Ready to pick, each lot-tracked line is split by lot, first to expire first. Expired lots are skipped, and so is stock other open lists will take. The picker can switch a line to the lot that's actually on the shelf. |
| Check-outs | The Lot list starts on the first to expire at the place it's leaving. The check-out remembers the lot, and it goes back into that lot when it's checked in. |
| Importing sales | Each sale comes out of the lot that expires first at that place. |
| Counts | Each lot with stock at a place gets its own line when the count starts, so each batch is counted separately. A scan of an item with several lots there asks which lot it is, and Another lot here adds a lot that turns up. |
See Using stock, Moving stock, Pick lists, Check-outs, Importing sales and Counting your inventory.
2.4 Expiry warnings
Once a day, Magpie looks for lots with stock that expire soon. Each one raises an alert saying the lot expires on its date, or has expired once the date has passed, with how many are where. People who can edit items or manage purchasing are told in the app and by email, unless they've changed Expiring stock in their notification settings. See Notifications and alerts.
How far ahead to warn is Warn about expiring lots (days ahead) in Settings › General under Stock rules: 30 days to start with, anything from 1 to 365.
Frontline staff on the crew screens also see Use these first on their Home screen: lots at their places that expire in the next 3 days, soonest first. For one that's expired or expires today, Throw out goes straight to logging it as waste. See Crew screens.
3 Serial numbers
A serialized item's stock is a set of units, each with its own serial number, status and history. One unit is always a quantity of 1.
3.1 Add serial numbers
Units come into stock with their serial numbers:
- Update stock › Added: type the Serial numbers, one per line. New ones are added to the item. There's no Set to for serialized items.
- Receiving a purchase order: each serialized line needs one serial number per unit arriving, typed one per line or added with Scan. A serial number that's not in stock or lost comes back into stock, like a rebuilt part returning. One that's already in stock or checked out is refused.
To record a unit before it arrives, open Serial numbers from the item page (Manage) and click Register serial. It's listed as Not in stock until it's added with Update stock or receiving. Registering is for people who can edit items.
On Add item, the starting quantity isn't used for a serialized item. Add its units afterwards.
3.2 The Serial numbers page
Manage on the item page opens Serial numbers: every unit with its Status, Location, Condition and Maintenance due.
| Status | Means |
|---|---|
| In stock | At a place, shown in Location. |
| Checked out | Lent to a person or job. |
| Not in stock | Taken out of stock (sold, used or thrown out, say), or registered but not yet added. |
| Lost | Removed as lost, missing at a count, or not coming back from a check-out. |
Statuses change only as stock moves. People who can edit items can click a serial number to record its Condition (New, Good, Fair, Poor or Damaged), Acquired on, Warranty expires, Next maintenance, Maintenance every (days) and notes. The serial number itself can't be changed.
On its Next maintenance date, Magpie raises a Maintenance due alert for that unit, and the date shows in red on the page. After the work is done, set the next date. Maintenance every (days) is a reminder of how often; it doesn't change the date by itself.

3.3 Serial numbers in everyday work
Wherever a serialized item moves, you say which units:
- Removing: on Update stock › Removed, tick the serial numbers in stock at that place. Removing with the reason Lost marks them Lost; other reasons mark them Not in stock.
- Moving: on Move stock, tick the serial numbers to move. See Moving stock.
- Picking: scan each unit's serial number or choose it from the Serial list of units at that place. A unit can't be on two open pick lists, and typed quantities aren't accepted for these lines. See Pick lists.
- Check-outs: choose the Serial number on the unit you're lending. It shows as Checked out until it's checked in, or Lost if it's recorded as Lost or not coming back. See Check-outs.
- Counts: scan each unit's serial number. Each unit counts once, however often it's scanned. When you use the count, units in stock there that weren't scanned are marked Lost, and scanned units that weren't in stock come back in. If someone typed a number instead, finishing the count stops and asks you to scan the serial numbers or keep the expected number. See Counting your inventory.
Scanning a serial number anywhere else finds its item, and the item list's search finds an item by any of its serial numbers. Serialized items can't be part of a kit, and sales imports skip them.
Each unit's movements are in the item's history, with its serial number beside each change. See Adding and editing items.
Still stuck?
Email support with what you were trying to do and any message you saw.