Installation Flow
Merchant initiates install
The merchant clicks “Install” on the Shopify App Store or a direct install link. This triggers
GET /shopify/auth.OAuth authorization
Shopify redirects the merchant to authorize the app. Upon approval, Shopify calls
GET /shopify/callback with an authorization code.Token exchange
The backend exchanges the authorization code for permanent access tokens and stores them with the retailer record.
Data Sync
Orders
Shopify order webhooks feed customer purchase data into the segmentation engine:orders/create- Track new customer purchasesorders/updated- Update order dataorders/cancelled- Handle cancellationsrefunds/create- Track refunds
Customers
Customer data is synced for email marketing targeting:customers/create- Create customer profilecustomers/update- Update customer metadata
Products
Product catalog sync (products/update) keeps the internal catalog in sync for email marketing product recommendations and product grid generation.
Customer SSO
Shopify customers are authenticated via Multipass:Configuration
| Variable | Description |
|---|---|
SHOPIFY_API_KEY | App API key from Shopify Partners |
SHOPIFY_API_SECRET_KEY | App secret for HMAC verification |