Why track expiry dates by batch
If you sell food, drinks, supplements, cosmetics or pet food, the same product arrives in batches with different dates. Ship a pack that expires next week and you get a complaint, a refund or a bad review. Leave an older batch at the back of the shelf and it expires unsold, and you write it off. Knowing what expires soon also gives you time to discount or bundle it.
The rule warehouses use is FEFO, first expired, first out: pick the batch that expires first, whenever it arrived. It differs from FIFO, first in, first out, when a newer delivery has a shorter date than the stock you already have.
What Shopify does and doesn't do
Shopify counts how many units of each variant you have at each location, and sets an order's units aside as committed until it ships. That count has no batch number or expiry date, so Shopify can't tell you what expires soon or which units to pick for an order. A metafield on a product or variant can hold a date, but it isn't tied to quantities, so it can't tell two deliveries of the same product apart.
Your options
| Option | What it does | The catch |
|---|---|---|
| A spreadsheet | Lists each batch with its expiry date and quantity | Nothing updates it when orders come in or ship, and your team has to look up which batch to pick |
| A variant or product per batch | Splits stock by batch inside Shopify | Clutters your store and reports, and shoppers see each batch as an option |
| An inventory or warehouse system with lot tracking | Tracks lots, expiry dates and locations, often with barcode scanning | Usually paid, with more setup than many small stores need |
| An app such as Expiry Manager | Tracks batches and expiry dates in your Shopify admin and plans FEFO picking for each order | Batches are per variant, not per location; Expiry Manager is free |
How to track batches with Expiry Manager
- Install Expiry Manager and open Settings. Under Expiry thresholds, set the Near expiry threshold (30 days by default) and the Critical threshold (7 days by default). They apply to every batch: a batch is near expiry or critical once it has that many days left or fewer, and expired from its expiry date on.
- Open Batches and click Create batch. Select the product variant, then enter the Batch number, Received date, Expiry date and Quantity received, with optional Notes. The expiry date can't be in the past.
- When you save, the app compares the variant's batches with its stock in Shopify. If the numbers differ, an Inventory mismatch warning shows both: correct the quantity, or click Save anyway if the difference is expected, for example while you're still entering the variant's other batches.
- Home shows how many batches are expired, expiring today and expiring this week, the share of batches that are healthy, near expiry, critical and expired, and an Expiry Priority Queue with the earliest expiry first. On Batches, you can filter by health status or search by batch number.
- When an order comes in, the app reserves its units from that variant's batches, earliest expiry first. FEFO Queue lists the orders that still need picking or shipping, oldest first. View FEFO Plan shows the batch to pick for each product, Pick Slip downloads one order's plan as a CSV, and Export Pick List downloads one for every order in the queue, with each batch number, expiry date and quantity to pick.
From then on, the app keeps your batches up to date: a shipment takes its units off the batches it was planned from, cancelling an order before it ships releases its units, and a refund that restocks items puts them back. Each order also gets a Batch allocations metafield that lists its batches, so you can look them up from the order in Shopify.
Good to know before you start
- It doesn't change your Shopify inventory. Batches are the app's own records beside Shopify's stock count. You still receive, adjust and sell stock in Shopify as before, and the app shows a mismatch when a variant's batches and its count in Shopify differ.
- Clear expired stock in the app. The pick plan takes the earliest expiry first, and that includes batches already past their date while they still have units. When expired units leave the shelf, edit the batch and lower its Quantity remaining, or remove the batch once no open order uses it.
- Batches are per variant, not per location. The app compares a variant's batches with its total sellable stock across your locations, and a pick plan names the batch, not the location.
- Orders get their batches when they're placed. If a product had no batch with enough units at that moment, the order shows a Shortfall badge in the FEFO Queue, and adding a batch later doesn't change it. Orders with no tracked products stay out of the queue.
- Orders leave the queue when they're delivered. A shipped order stays in the FEFO Queue until Shopify shows it as delivered, which normally comes from the carrier's tracking.
- It works in your admin only. It has no storefront widget and sends no emails, so shoppers don't see expiry dates, and you check Home for what expires soon.
Tips for selling dated stock
- Add a batch the day stock arrives, with the date printed on the pack, so new orders are planned from the right batches.
- Set thresholds for your slowest sellers. They apply to every batch, so give yourself enough warning to discount, bundle or donate stock before it expires.
- Pick from the plan. Shopify doesn't record which units a picker took, so the app assumes each order shipped the batches its plan named. Export the pick list before each picking round.
- Look into mismatches early. On Batches, a mismatch usually means stock was adjusted in Shopify, or by another app, without a matching change to the batch.
- Check Home before you plan a sale, and put near-expiry stock in it first.
