Coupon and discount engine
Keepface's coupon engine generates per-customer or bulk codes with locking redemption logic (race-safe), an audit ledger, and a public POST endpoint for checkout integration.
Coupons are the discount-code half of the reward stack, alongside KPC and gift cards in your referral/NPS playbook.
Issue a coupon
Coupons → New or Bulk for a CSV-driven batch. Each coupon has:
- Code, auto-generated or set manually
- Discount, percent off or fixed amount
- Scope, applies to all products, a category, or specific SKUs
- Limits, total uses, per-customer uses, expiry date
- Customer binding, bound to a specific customer (single-use, anti-fraud) or open
Redemption
Your storefront calls POST /api/v2/marketplace/coupons/redeem with the code + order details. The engine uses a row lock so two parallel orders can’t both burn the last use of a limited code.
Redemptions log to Coupons → Redemptions with timestamp, order ID, customer, and the order value.
Integration
- Shopify, pre-built discount-class integration; we mint native Shopify codes via Admin API
- WooCommerce + custom, call the redeem endpoint from your checkout flow