Set a customer's minimum shelf life
Some customers only accept stock with plenty of life left: a grocery chain that wants ten days on every case of salad, or a club retailer that needs two weeks. On the customer's Shelf life page you set how many days a lot must have left before it expires to ship to that customer. Set a default for every product, and add a rule for any product that needs more or less.
SKU.io then uses that number everywhere it picks lots for the customer:
- Fulfilling an order picks the earliest-expiring lot that still has enough days left. Lots with fewer days left are never picked automatically.
- Hand picks of a lot with fewer days left are flagged. What happens next depends on your lot override policy.
- Planning doesn't count short-dated lots as stock for this customer's orders. See Plan around expiring stock.
Before you begin
- The products are lot-tracked with expiry dates. See Set up lot and expiration tracking.
- Your role can edit customers (
customers.update). Without it the page is read-only, and the Save and Add rule buttons say why when you point at them.
Steps
Set a default for every product
- Go to CRM → Customers and open the customer.
- Choose Shelf life from the customer's sections.
- Under Default minimum, type the days in Minimum days left at shipment, for example
10. Leave it blank for no minimum: any lot still in date can ship. - Click Save. SKU.io confirms Default minimum shelf life saved, and the line under the field spells out the rule.
Add a rule for one product
- Under Product rules, click Add rule.
- In Add a product rule, find the product by SKU or name.
- Enter its minimum days left, and click Add rule. SKU.io confirms Shelf life rule saved.
A product's rule replaces the default for that product. Products without a rule use the default.
The Product rules table shows each rule:
| Column | What it shows |
|---|---|
| SKU | The product. Click it to open the product's tracking settings, where its shelf life is set. |
| Name | The product's name. |
| Shelf Life | How long a lot of the product lasts from production. Read-only here. |
| Min Days Left | The customer's minimum for this product. Double-click to change it. |
| Updated | When the rule was last changed. |
If a rule's minimum is as long as the product's whole shelf life or longer, the row warns that no lot can ever qualify. Orders for that product then can't ship from stock automatically.
To remove rules, tick them and click Delete in the bar above the table. Those products use the default again.
What fulfilling looks like
When you fulfill one of the customer's orders, the Lot Allocation row shows the requirement, for example Customer needs ≥ 10 days left, next to the lot SKU.io picked. Open Edit allocation and the lot list to see why other lots were passed over:
- A lot with too few days is marked with its days left and the customer's minimum, for example 3 days left — customer needs 10.
- An expired lot is marked Expired.
If the fresh lots can't cover the order, SKU.io refuses the shipment and says how many units have enough days left. Ship fewer, pick lots by hand, or receive fresher stock.
Shipments that a sales channel, a 3PL or the API report as already shipped are never refused. If one took a lot with too few days left, SKU.io records it and adds a note to the order naming the lot. Warehouses run by a marketplace, such as Amazon FBA, pick their own stock, so the minimum doesn't apply there.
Next steps
Video transcript
Open the customer — Some buyers only take stock with plenty of life left. Open the customer, then choose Shelf life from its sections. Lots with fewer days left than you set here are never picked for its orders.
Set a default — Under Default minimum, type the days every product needs, here ten. Then click the Save button, and the line underneath spells out the rule in plain words.
Add a product rule — A product can need more than the default, so click Add rule, and a short form appears. Search for the product by typing part of its code, then pick it from the list that drops down. Enter the number of days it needs, which here is twelve, and click Add rule once more to save it. From now on, that product follows its own rule instead of the default minimum.
Fulfill an order — Here is one of that customer's orders, ready to ship. Click Fulfill, and then click the Fulfill button for all sixty units of spring mix. Lot allocation takes the earliest-expiring lot that still has at least ten days left. And the chip beside it shows the minimum this buyer needs.
Short-dated lots — To see why, click Edit allocation, then the arrow beside the lot. The spring mix lot with only three days left is marked short for this customer. The lot that expired yesterday carries an expired label instead. Neither one is picked for this order.