Promo Engine

Promotion automation for Shopify · Admin GraphQL API

Enter a promotion once. It runs, ends and cleans up by itself.

Promo Engine turns each promotion into one record — schedule, products, benefit, storefront message — and keeps the store in line with it. Sale prices, automatic discounts, badges and banners go on at the start and come off at the end, and regular prices come back exactly as they were.

  • Shopify Admin GraphQL 2026-10
  • Store time zone and DST
  • No double discounts
  • Exact undo from a ledger
  • Unit-tested engine

How it works

Next.js 16 · TypeScript · a framework-free promotion engine with unit tests (node:test) · Shopify Admin GraphQL 2026-10 · Tailwind CSS 4 · Vercel.

No workflow per campaign

A campaign is a record: schedule, who, benefit, storefront messaging. One reconciler computes the state the store should be in right now and emits only the calls needed to get there. New campaign = new record, not new automation.

Regular prices are always safe

Sale prices are computed from the price book, never from the live price, so markdowns cannot compound. Every call is written to a ledger with the values it overwrote; ending or undoing a run restores them exactly.

No double discounts

Each product gets at most one price benefit: highest priority wins, the rest are skipped and reported. Marked-down products are left out of automatic discounts, and discounts are created with combinesWith off for product discounts.

Store time, DST included

Schedules are wall-clock rules in America/Los_Angeles — fixed dates, “4th Thursday of November +1”, weekly rotations. The clock change on Nov 1 does not shift starts or ends; windows are also written to Shopify so a missed sync can't leave a sale running.

Plugs into your store

SandboxYour store
StoreSeastone Jewelry in your browser, plus a connected Shopify store on the Live store pageYour Shopify store through the Admin GraphQL API 2026-10
TriggerRun sync button; a daily scheduled sync on the connected storeShopify Flow “Run code” or a scheduled worker every few minutes
Storefrontshop.sepia.software: a headless storefront on the Storefront API reading prices, tags and the promo metaobjects, with a preview mode fed by this consoleYour theme (Liquid sections reading promo_campaign and promo_banner) or your headless storefront
Ledger and alertsIn your browser, and in a metaobject on the connected storeMetaobject or Postgres, alerts to Slack or email
ScaleOne productVariantsBulkUpdate per productBatching under API cost limits, retries with idempotency keys

Rolling it out on your store

  1. Audit what exists: Flow workflows, metaobjects, Liquid bindings, discount nodes, apps touching prices.
  2. Agree the campaign model and the price book, then dry-run the engine read-only against your store.
  3. Switch on one campaign type at a time, with the ledger and readiness alerts from day one.
  4. Hand over: a manager-facing form, a runbook and the test suite.
Get Promo Engine for your store