🎁 Appstle Loyalty API Documentation
Build powerful loyalty and rewards experiences for your Shopify store with our comprehensive, enterprise-grade REST APIs.
Server-Side Production Ready
Server-side API for managing loyalty programs, points, rewards, and customer data. Perfect for backend integrations, mobile apps, and automated workflows.
Authentication: API Key (X-API-Key header)
Use Cases:
- Backend integrations & workflows
- Mobile applications (iOS, Android)
- Admin dashboards & reporting
- Bulk operations & automation
- Third-party system integration
Storefront Production Ready
Customer-facing APIs for loyalty program self-service via Shopify App Proxy. Enable customers to earn points, redeem rewards, and manage their loyalty account directly from your storefront.
Authentication: Customer session (logged-in required)
Use Cases:
- Custom loyalty portals
- Storefront theme integration
- Customer self-service features
- Point earning & redemption
- Referral program management
The Appstle Loyalty APIs provide programmatic access to manage every aspect of your loyalty and rewards program. Whether you're building custom integrations, internal dashboards, automated workflows, or enhancing your customer experience, our APIs deliver the power and flexibility you need.
Earn and redeem points for purchases, reviews, social actions, and custom activities
✅ Building server-side integrations or workflows ✅ Managing loyalty programs from your backend ✅ Creating admin dashboards or reporting tools ✅ Automating bulk operations ✅ Integrating with other business systems ✅ Building mobile applications (iOS, Android) ✅ Any integration outside your storefront
🌍 Access: Server-side only
✅ Building custom customer-facing interfaces on your storefront ✅ Adding loyalty features to your theme ✅ Leveraging Shopify App Proxy for seamless integration ✅ Creating self-service loyalty management ✅ Customizing the customer portal experience
🌍 Access: Storefront only (via App Proxy)
Obtain your API key from your Appstle dashboard:
- 🔐 Log in to your Appstle admin panel
- ⚙️ Navigate to Settings → API Keys
- ✨ Generate a new API key or copy your existing key
- 🔒 Store it securely - treat it like a password
Test your API key by retrieving a customer's loyalty information:
curl -X GET \
"https://loyalty-admin.appstle.com/api/external/customer-loyalty?shop=your-store.myshopify.com&customer_id=12345" \
-H "X-API-Key: your-api-key-here"{
"availablePoints": 1250,
"pendingPoints": 150,
"creditedPoints": 1400,
"storeCreditBalance": 25.0,
"currentVipTier": "Gold",
"customerStatus": "ACTIVE"
}All Admin API requests require authentication using your API key. Include it in the request header:
Header-based authentication (Recommended):
X-API-Key: your-api-key-hereExample Request:
curl -H "X-API-Key: your-api-key-here" \
https://loyalty-admin.appstle.com/api/external/customer-loyalty?shop=your-store.myshopify.com&customer_id=12345Query parameter (Deprecated):
?api_key=your-api-key-hereImportant: Keep your API keys secure. Never expose them in client-side code or public repositories.
Explore our comprehensive API endpoints. Use the sidebar to navigate between:
- Admin APIs - Server-side operations for third-party integrations
- Storefront APIs - Customer-facing operations via App Proxy
Both API sections are collapsed by default - expand the one you need.
Manage customer points and transactions:
- Add Points - Manually credit points to customer accounts
- Redeem Points - Convert points to rewards and discounts
- Transaction History - Retrieve detailed point transaction logs
- Approve Pending Transactions - Approve queued point transactions
Retrieve program rules and settings:
- Point Earn Rules - Get point earning rule configurations
- Point Redeem Rules - Retrieve redemption rule options
- Top Customers - Access customer leaderboard by points
Customer loyalty data and enrollment:
- Customer Loyalty - Retrieve comprehensive loyalty dashboard data
- Enroll Customer - Enroll customers in loyalty program
- Update Birth Date - Update customer birth dates for birthday rewards
Manage discount codes and rewards:
- Check Discount - Validate discount codes before checkout
- Update Discount - Update discount code status
- Update Discount Status - Mark discount codes as used
Manage store credit balances:
- Add Credits - Add store credit to customer accounts
Customer-facing loyalty program management endpoints:
- Customer Data - Retrieve logged-in customer ID and loyalty information
- Point Earning - Earn points for store visits and social media engagement
- Point Redemption - Redeem points for rewards and discounts
- Transaction History - View point transaction history
- VIP Program - View VIP tier status and benefits
- Referral Program - Generate referral links, send invitations, track referrals
- Product Reviews - Submit reviews, retrieve product review details
- Customer Management - Update customer status, birth date, enrollment
- Account Integration - Customer authentication and metafield sync
Important: Storefront APIs must be called from your shop's domain with a logged-in customer session. These APIs will not work with API key authentication.
Browse the complete API reference in the sidebar →
All API responses follow standard HTTP status codes for easy integration and error handling:
| Status Code | Meaning |
|---|---|
200 | Success - Request completed successfully |
201 | Created - Resource created successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - API key doesn't have required permissions |
404 | Not Found - Resource doesn't exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Server Error - Something went wrong on our end |
Error Response Example:
{
"error": "Unauthorized",
"message": "Invalid API key provided",
"status": 401
}Receive real-time notifications when loyalty events occur in your Appstle account. Build reactive, event-driven integrations with automatic retries and detailed delivery logs.
Available Events:
- Point transactions (earned, redeemed, expired)
- VIP tier changes (upgraded, downgraded)
- Reward redemptions
- Customer enrollment
- Referral completions
Need help? Contact our support team at support@appstle.com
Ready to start building? Explore the complete API reference using the navigation menu →
Last updated: January 2026 | API Version: v1