E-commerce & Dropshipping · n8n

Alert on Expiring Stock and Enforce First-Expiry-First-Out

Cut waste on perishables — track batch expiry dates and alert your team to sell or discount stock nearing its expiry before it's lost.

difficulty Intermediatesetup 40 minresult Stock nearing expiry is flagged in time to sell or discount it, reducing costly write-offs.
  1. 1

    Schedule the Check

    Add a Schedule Trigger running daily over your batch inventory.

  2. 2

    Find Near-Expiry Batches

    Add a Code node selecting batches expiring within your risk window (e.g. 30 days).

  3. 3

    Prioritize by Expiry

    Add a step sorting flagged batches by soonest expiry to enforce first-expiry-first-out.

  4. 4

    Alert the Team

    Add a Slack node listing at-risk batches with quantities and suggested markdowns.

  5. 5

    Activate and Test

    Activate the workflow and set a test batch near expiry. Confirm it's flagged and prioritized.

Frequently asked questions

Can it auto-discount?

Yes — trigger a markdown on the storefront for batches within a tighter expiry window to move them faster.

How do I track batches?

Record a batch and expiry with each stock intake so the check always has accurate dates.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.