← back to promokit
YagnoTech · promokit

The headless promotions engine for any cart.

Percent, amount, BOGO, threshold gifts, coupon codes, stacking rules — evaluated deterministically against any cart in one API call. Cents-exact, every time.

Open dashboard → Start free trial

Quickstart

# 1. Sign up (14-day free trial, no card)
curl -X POST /api/auth/signup -H "Content-Type: application/json" \
  -d '{"email":"you@store.com","password":"s3cure-pass","companyName":"My Store"}'

# 2. Create an API key (JWT from step 1)
curl -X POST /api/keys -H "Authorization: Bearer <jwt>"

# 3. Evaluate a cart
curl -X POST /v1/evaluate -H "Authorization: Bearer sk_pk_..." \
  -H "Content-Type: application/json" \
  -d '{"cart":{"currency":"CAD","codes":["SUMMER20"],
       "lines":[{"id":"1","sku":"latte","qty":2,"unitPrice":450,"tags":["drinks"]}]}}'

API reference

EndpointWhat it does
POST /api/auth/signup · loginDashboard auth → JWT (7d)
POST/GET/DELETE /api/keysManage API keys (sk_pk_…, shown once)
GET /api/usageCurrent-month metering vs plan limits
POST /api/billing/checkout · portalSubscribe / manage plan (Stripe)
POST/GET/PATCH/DELETE /v1/campaignsCampaign CRUD + /pause, /activate, /stats
POST /v1/coupons/generateMint up to 500 codes per call (custom patterns)
GET /v1/couponsList codes with uses, filter by campaign
POST /v1/evaluatePrice a cart — dry run, consumes nothing
POST /v1/redeemCommit at checkout — idempotent, consumes uses atomically

Campaign types

TypeBehaviour
percent_off% off matched lines, largest-remainder cents distribution — line discounts always sum exactly
amount_offFixed cents off matched subtotal, distributed proportionally
free_item_on_thresholdSpend ≥ X ⇒ free item (discounted if in cart, reward line if not)
bogoBuy N of X, get M of Y free — cheapest matching units

Every campaign supports targeting (all | skus | tags), schedule windows, code requirements, stacking flags, priority, and total/per-customer usage limits.

Pricing (CAD/month)

Starter

$39/mo
  • 10,000 evaluations/mo
  • 5 active campaigns

Growth

$99/mo
  • 100,000 evaluations/mo
  • 25 active campaigns

Scale

$249/mo
  • 1,000,000 evaluations/mo
  • Unlimited campaigns

Every account starts with a 14-day free trial. No card required.

© YagnoTech Inc · promokit · GET /api/health for status