j-riv@localhost:~$

multi-store-discount-code-generator

live

Built a multi-store Shopify service for generating and managing discount codes at scale. Supports creating and replenishing code pools across stores and exporting them for automated Klaviyo coupon campaigns.

TypeScriptShopify Admin APINode.js
cat architecture.md

Admin UI

  • Store selection
  • Code generation
  • Pool management

Remix App

  • Business logic
  • Store routing
  • Batch processing

Shopify Admin API

  • Discount creation
  • Unique codes
  • Store operations

Code Pools

  • Available codes
  • Replenishment
  • Campaign allocation

Klaviyo

  • Coupon campaigns
  • Automated flows
  • Code distribution
# Why code pools?
Pre-generating unique discount codes keeps an inventory of coupons available for automated campaigns instead of creating them during the customer flow.
# Multi-store design
Centralized tooling allows the same workflow to manage discounts across multiple Shopify stores while keeping each storefront's codes and campaigns isolated.