Custom POS integration framework
Check whether your POS can connect to LoyaltyLion, with what each use case needs from your POS, your server and our API
On this page
- Purpose
- Assessment Approach
- Common Use Cases & Requirements
- 1. Display Customer Points Balance
- 2. Display Available Rewards
- 3. Redeem Voucher/Discount Rewards
- 4. Award Points for In-Store Purchases
- 5. Display Claimed Rewards (Already Redeemed)
- Universal Technical Requirements
- All POS integrations require:
- Backend Infrastructure
- Appendix A: Backend Integration (non-Shopify)
- Critical Concept: Where Customer Records Live
- Integration Requirements
Purpose
This document helps merchants assess whether a custom POS solution can integrate with LoyaltyLion's loyalty program. It outlines the technical prerequisites needed for common use cases, allowing merchants to self-qualify their POS capabilities.
Assessment Approach
For each desired use case below:
-
Review the "POS System Requirements"
-
Confirm your POS vendor supports these capabilities
-
Verify you have (or can build) the backend integration components
-
Check the LoyaltyLion API prerequisites
Common Use Cases & Requirements
1. Display Customer Points Balance
Business Value: Allow store associates to inform customers of their current points balance at checkout.
POS System Requirements:
-
Ability to capture customer identifier (email, customer ID) at the POS terminal
-
Ability to render custom dynamic text/numbers on the terminal display
-
Network connectivity to make external API calls
Backend/Integration Requirements:
-
Backend server to call the LoyaltyLion Headless API. It holds your API token, or signs customer session tokens, so the POS never needs your credentials
-
Ability to map customer identifier to Shopify
merchant_id -
Optional: Caching layer to reduce API calls for repeated lookups
LoyaltyLion API Prerequisites:
-
Initialize Session endpoint (channel=pos), which needs the customer’s email address as well as their ID. A customer with no email address cannot be looked up this way
-
Returns points_approved field
Potential Blockers:
-
POS has locked-down UI with no custom display capabilities
-
POS cannot make external network requests
-
No ability to build/host middleware server
2. Display Available Rewards
Business Value: Show customers which rewards they can currently redeem based on their points balance.
POS System Requirements:
-
Ability to capture customer identifier
-
Ability to render a list/menu of items (reward names, points costs)
-
Ability to indicate which items are available vs. unavailable (e.g., different colors, enabled/disabled state)
-
Network connectivity
Backend/Integration Requirements:
-
Middleware to call LoyaltyLion Headless API
-
Logic to parse
available_rewardsarray and filter bycan_redeemproperty -
Optional: Handle reward stock availability
LoyaltyLion API Prerequisites:
-
Initialize Session endpoint
-
Returns an
available_rewardsarray, with acan_redeemflag in each reward’scontext
Potential Blockers:
-
POS can only display static text, not dynamic lists
-
No way to distinguish available vs unavailable items in UI
-
POS UI has item count limits (e.g., "can only show 5 items")
3. Redeem Voucher/Discount Rewards
Business Value: Allow customers to apply loyalty rewards as discounts at POS checkout.
POS System Requirements:
-
All requirements from Display Available Rewards above
-
Ability to accept staff/customer selection of a reward
-
Ability to apply a discount code or percentage to the current transaction
-
Network connectivity
Backend/Integration Requirements:
-
Backend server to call Redeem Reward endpoint, which is one endpoint for every reward type
-
Ability to apply discount to cart (either via a voucher code or manual discount application)
Potential Blockers:
-
POS discount system doesn't accept external codes / has no way to apply an arbitrary discount to the cart
-
No mechanism for staff to trigger reward redemption
-
POS discount UI is not accessible from custom integration
4. Award Points for In-Store Purchases
Business Value: Customers earn loyalty points on POS purchases.
POS System Requirements:
- None specific (orders flow through Shopify or are sent to LoyaltyLion via API)
Backend/Integration Requirements:
-
POS must sync orders to Shopify OR merchant is willing to send all POS orders to LoyaltyLion via our Admin API
-
Consistent customer identification between POS and Shopify/LoyaltyLion
- Send the same
customer_id(the Shopify customer ID) andcustomer_emailthe customer has in Shopify. In the Admin API orders endpoint,merchant_idis the order’s own ID, not the customer’s
- Send the same
Potential Blockers:
-
POS system has no way to sync orders to Shopify AND merchant is unable/unwilling to build a custom sync to send POS orders to LoyaltyLion Admin API
-
If syncing to Shopify:
- Orders sync to Shopify but without customer attribution
5. Display Claimed Rewards (Already Redeemed)
Business Value: Show store associates which rewards customer has already claimed but not yet used.
POS System Requirements:
-
Ability to capture customer identifier
-
Ability to render a list of items (reward names, codes/SKUs)
-
Network connectivity
Backend/Integration Requirements:
-
Middleware to call Initialize Session endpoint
-
Logic to parse
claimed_rewardsarray -
Optional: Display format for voucher codes vs product rewards
LoyaltyLion API Prerequisites:
-
Initialize Session endpoint
-
Returns a
claimed_rewardsarray of the customer’s 20 most recently claimed rewards
Potential Blockers:
- Same as Display Available Rewards
Universal Technical Requirements

All POS integrations require:
Authentication & Security
-
Secure server environment to store LoyaltyLion API credentials
-
Middleware/proxy to handle authentication (POS cannot securely store tokens)
-
HTTPS for all API communications
Customer Identification
-
Consistent customer identifier across all channels (email or Shopify customer ID)
-
POS must use the Shopify customer ID in every LoyaltyLion API call. The Headless API calls it
merchant_id; the Admin API’s orders endpoints call itcustomer_id, because theremerchant_idis the order’s own ID- Email is technically OK but is vulnerable to typos, etc
Backend Infrastructure
-
Server to proxy requests between POS and LoyaltyLion APIs
-
Error handling for API failures (network, timeouts, invalid responses)
-
Optional but recommended: Request caching to improve performance
Appendix A: Backend Integration (non-Shopify)
Refer to this appendix when you have:
-
Custom POS integrated with an ERP system (NetSuite, SAP, Dynamics, Acumatica, etc.)
-
POS orders stored only in the ERP
-
No synchronization of POS orders to Shopify
This scenario requires using LoyaltyLion's Admin API instead of relying on automatic Shopify order sync.
Critical Concept: Where Customer Records Live
Your ERP is the "golden source" for customer identity, NOT LoyaltyLion.
LoyaltyLion does not create or manage customer accounts. Your ERP/POS system is responsible for:
-
Creating customer accounts
-
Managing customer authentication
-
Maintaining the definitive customer record
LoyaltyLion simply tracks loyalty data (points, rewards, tier status) linked to your customer IDs.
Integration Requirements
1. Backend Middleware Server (Critical)
You MUST build and maintain a secure backend server to:
-
Store LoyaltyLion API credentials
-
Proxy requests between POS/ERP and LoyaltyLion APIs
-
Handle authentication and token signing
2. Consistent Customer Identity
You must use a single, unchanging customer identifier across all systems. This is typically:
-
The ERP's internal customer database ID
-
Or a unique customer number from your system
Common failure mode: Using email in some places and customer ID in others breaks the integration.
3. Customer Enrollment Process
When a customer creates an account in your POS/ERP:
-
Your system creates the customer account (you own this)
-
You send a
$signupactivity to LoyaltyLion via Admin API -
LoyaltyLion creates the customer's loyalty record and enrolls them
-
Customer can now earn and spend points
4. Order Tracking via Admin API
For every POS transaction, you must POST order data to LoyaltyLion's Admin API:
-
Order total, shipping, amount paid and payment status
-
Customer ID and email address (the ID must match the signup event)
-
Any discount codes used, which marks the matching LoyaltyLion vouchers as used
-
Order date
Send refunds and cancellations by updating the order with Update Order.
5. Voucher/Discount Code Requirements
If you require redemption, then your POS must:
-
Support applying external discount codes at checkout
-
Allow bulk creation of discount codes for each reward type. We suggest 500 or more, so you do not run out
-
Add these codes to the reward in LoyaltyLion, on its Import codes tab, before rewards can be redeemed