Customer-facing loyalty program APIs for storefront operations. These endpoints allow customers to manage their loyalty account, earn and redeem points, submit reviews, handle referrals, and track their rewards. All endpoints require customer authentication via JWT token.
- Enable loyalty program for customer
Storefront APIs
Request
Enrolls the authenticated customer in the loyalty program and optionally assigns them to a specific VIP tier. This endpoint activates all loyalty features for the customer, allowing them to earn and redeem points. If a VIP tier is specified, the customer is automatically placed in that tier upon enrollment. Creates necessary customer records and triggers any welcome rewards configured in the system.
- https://loyalty-admin.appstle.com/loyalty/cp/api/enroll-customer
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://loyalty-admin.appstle.com/loyalty/cp/api/enroll-customer \
-H 'Content-Type: application/json' \
-d '{
"vipTier": "string"
}'"Customer added successfully."
- https://loyalty-admin.appstle.com/loyalty/cp/api/enable-loyalty-program
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://loyalty-admin.appstle.com/loyalty/cp/api/enable-loyalty-program"Customer added successfully."
Request
Records a customer store visit and potentially awards loyalty points based on the shop's visit reward rules. This endpoint is typically called when a customer visits the storefront or specific pages. Includes rate limiting protection to prevent abuse - customers can only earn visit points up to a configured limit per day/period. The endpoint enforces a request limit (default 500) to prevent excessive API calls.
- https://loyalty-admin.appstle.com/loyalty/cp/api/customer-visit-store
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://loyalty-admin.appstle.com/loyalty/cp/api/customer-visit-store