Skip to main content
MaxInvent

Answer

How do I sell short-dated food on ClearanceFood from my stock system?

Last updated By MaxInvent Editorial Team
Short answer

Record stock in batches with expiry dates so short-dated lines are flagged, list only what you can sell with its best-before date, and let ClearanceFood's order events update orders without moving them backwards. In MaxInvent, a ClearanceFood listing is capped at its linked batches' remaining quantity, or at free stock when no batches are linked, orders arrive from ClearanceFood's webhooks, and a scheduled order check imports outstanding orders a webhook missed.

  • Record batches with expiry dates so the nearest best-before date is known
  • Set the window in which a product counts as short-dated
  • List only what you can sell, with the best-before date
  • Let payment, cancellation and dispatch events update the order without reversing it

Start from the batch, not the product

A short-dated line is a batch problem. Two cases of the same product can carry best-before dates months apart, so the date that matters is the nearest one on stock you still hold. Record goods in with a batch and an expiry date, and the system can tell you which products are inside your clearance window before they become waste.

In MaxInvent, a product is flagged as short-dated when its nearest batch with stock left expires inside the window you set, 60 days unless you change it. A clearance discount on the batch is optional. Products with no batch expiry dates are never flagged, so the flag is only as good as the dates recorded at goods in.

List the quantity you can sell

Clearance stock is often the same stock your trade customers, reps and other marketplaces can see. A ClearanceFood listing made from the MaxInvent listing screen carries the best-before date you give it. When it is linked to batches, it is created with no more than those batches' remaining quantity; that figure does not take off stock already allocated to other orders, so check the quantity before you create it. With no batches linked, it is capped at the product's free stock. A ClearanceFood listing has a fixed total, so a create with nothing to list is refused rather than listed at zero.

Orders, events and the order check

  1. ClearanceFood sends order, payment, cancellation, dispatch and delivery events to MaxInvent by webhook.
  2. Each event is applied without moving an order backwards: a parcel that has gone out is not cancelled or reopened, and a cancelled order is not marked as shipped.
  3. An event that arrives before its order is kept and applied once the order is imported, so an early cancellation does not leave stock held for an order that no longer exists.
  4. A scheduled order check reads ClearanceFood's outstanding orders (pending, and paid or ready but not yet shipped), imports any a webhook missed and fills in buyer, address and lines an earlier import left blank.
  5. Orders from either route hold stock in the same way, and payment is checked again for each order before a label is bought.

What to check before you rely on it

Create one test listing for a product with a known batch and best-before date, and confirm the quantity is what you can actually sell, not what is on the shelf. Place a test order, then cancel it, and check that the stock comes back and the order does not move to dispatched. Finally, compare the order list with ClearanceFood's own record for a day or two before you stop checking by hand.

For the wider marketplace picture, see marketplace integration, and for recent changes, see what's new in MaxInvent.

FAQ

More questions, answered

What counts as short-dated in MaxInvent?+

A product is flagged as short-dated when its nearest batch with stock left expires inside the window you set, which is 60 days unless you change it. Products with no batch expiry dates are not flagged. A clearance discount on the batch is optional; without one the product is flagged but its price is unchanged.

How much stock does a new ClearanceFood listing get?+

When you create a listing from the listing screen linked to batches, it gets no more than those batches' remaining quantity, which does not take off stock already allocated to other orders, so check the figure first. With no batches linked, it is capped at the product's free stock. A ClearanceFood listing carries a fixed total, so a create with nothing to list is refused rather than listed at zero.

How do ClearanceFood orders reach MaxInvent?+

From ClearanceFood's webhooks. Payment, cancellation, dispatch and delivery events are applied without moving an order backwards, and an event that arrives before its order is kept and applied once the order is imported. A scheduled order check reads ClearanceFood's outstanding orders (pending, and paid or ready but not yet shipped), imports any a webhook missed and fills in buyer, address and lines an earlier import left blank.

Does a ClearanceFood order hold stock?+

Yes. Orders imported by webhook and by the scheduled check hold stock in the same way, so the other channels see the reduced figure on their next update. Payment is checked again for each order before a label is bought.

Can a late cancellation reopen an order that has already gone?+

No. Events never move an order backwards: a parcel that has been dispatched is not reopened by a later event, and a cancelled order is not marked as shipped. A cancellation for a parcel that has already gone out is left for a person to reconcile, because releasing its stock would count goods that have physically left.

Evaluating MaxInvent?

We'll walk through the relevant workflows using suitable representative data for the channels you run.

Chat
MaxInvent
Talk to a real human.
UK-based team · typically reply within one business day.
Prefer a form?Book a demo·Contact form