This guide covers everything you need to build a production-ready integration with Appstle Loyalty. It walks through authentication, every major endpoint category, and common integration patterns for the most popular tool types (CRMs, email platforms, review apps).Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Base URL
All Admin API endpoints share the same base:/api/external/.
Authentication
- Merchant API key
- Partner integration (recommended)
- Legacy X-App-Key
Direct integrations pass the merchant’s API key in the
X-API-Key header. Merchants create keys under Settings → API Key Management in the Appstle admin. Each key is scoped to a single store, and up to 10 active keys are allowed per store.Direct API access requires an active API plan. Contact support@appstle.com for details.
Point management
Look up a customer’s loyalty data
Retrieve a complete loyalty profile by Shopify customer ID or email.Add points
Credit points to a customer’s account. Include anote so the transaction is labeled clearly in the customer’s history.
Redeem points for a reward
Convert a customer’s points into a discount code using a configured redemption rule.pointRedeemRuleId values, call GET /api/external/point-redeem-rules (see Program configuration below).
Get transaction history
Retrieve a customer’s full point transaction log.Approve pending transactions
For programs where points require approval before becoming available, use this endpoint to move pending points to available.Customer management
Enroll a customer
Add a customer to the loyalty program. Call this before attempting to add points to a customer who has not yet joined.Update a customer’s birthday
Set a date of birth to enable birthday reward automation. Date format isYYYY-MM-DD.
Get top customers
Retrieve your highest-value loyalty members ranked by points.Rewards and discounts
Check a discount code
Validate a loyalty discount code before applying it at checkout. Returns whether the code is valid, unused, and which customer it belongs to.Mark a discount as used
After a customer applies a reward code at checkout, mark it as used to prevent reuse.Store credits
Add store credits
Credit a monetary amount to a customer’s store credit balance. Credits are applied at checkout and are separate from loyalty points.Program configuration
Get point earn rules
Retrieve all active point earn rules for your store. Use the returnedid values when calling add-points with a specific rule.
Get point redeem rules
Retrieve all active redemption options. Use the returnedid values as pointRedeemRuleId when redeeming points.
Rate limits
If you receive a429 Too Many Requests response, implement exponential backoff before retrying. Do not retry immediately.
Common integration patterns
Review platform (Judge.me, Okendo, Yotpo)
Review platform (Judge.me, Okendo, Yotpo)
- Customer submits a review on your platform.
- Your platform calls
POST /api/external/add-pointsto credit points. - Optionally, use the Shopify Flow
reward-points-for-reviewsaction for a no-code setup that does not require API calls.
CRM or helpdesk (Gorgias, Zendesk)
CRM or helpdesk (Gorgias, Zendesk)
- Call
GET /api/external/customer-loyaltyby customer email or ID to display loyalty status alongside the ticket. - Call
POST /api/external/add-pointsorPOST /api/external/add-creditsto issue goodwill adjustments. - Call
GET /api/external/point-transaction-history/{customer_id}to show recent activity in context.
Email or SMS platform (Klaviyo, Omnisend)
Email or SMS platform (Klaviyo, Omnisend)
- Use webhooks to receive real-time point and tier events for trigger-based campaigns.
- Call
GET /api/external/customer-loyaltyto enrich customer profiles with points balance, VIP tier, and referral link. - Segment customers by
currentVipTieroravailablePointsrange for targeted sends.
Webhooks and Shopify Flow
For real-time event notifications, see the Webhooks guide. For no-code automation without managing webhook infrastructure, see the Shopify Flow guide.Becoming a partner
If your product integrates with loyalty programs, Appstle offers a formal partner program:- Zero-friction merchant onboarding via the Partner Integration Framework
- Scoped API tokens per merchant — no manual key exchange
- Merchants are never charged for partner API usage
- Technical support, co-marketing opportunities, and directory listing