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.
👥 Storefront APIs
/- Generate customer referral URL
Update customer loyalty status
Update customer birth date
Sync customer metafield data
Submit product review
Send customer referral email
Redeem customer loyalty points
Enroll customer in loyalty program
Enable loyalty program for customer
Track customer store visit
Claim social media reward points
Accept referral offer (GET)
Accept referral offer (POST)
Get customer point transaction history
Get logged-in customer ID
Get customer referral history
Get customer loyalty information
Get product reviews by product ID
Generate customer referra...
Storefront APIs
Download OpenAPI description
Languages
Servers
https://loyalty-admin.appstle.com
Request
Creates and stores a short referral URL for the authenticated customer to share with potential referrals. The referral link is typically generated once and then can be shared via email, social media, or other channels. When new customers use this link, both the referrer and referee may receive rewards.
- https://loyalty-admin.appstle.com/loyalty/cp/api/add-customer-referral-url
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://loyalty-admin.appstle.com/loyalty/cp/api/add-customer-referral-urlRequest
Accepts a referral offer using the referral token and email address via query parameters. This is a convenience endpoint that provides the same functionality as the POST version but via GET request. Useful for simple referral link implementations where query parameters are easier to construct. Creates a new customer referral record and may generate a welcome discount code for the referee.
- https://loyalty-admin.appstle.com/loyalty/cp/api/referral-rules/accept-offer
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://loyalty-admin.appstle.com/loyalty/cp/api/referral-rules/accept-offer?token=abc123referraltoken&email=newcustomer%40example.com'Response
application/json
{ "id": 12345, "message": "Referral accepted successfully", "discountCode": "WELCOME20", "status": "SUCCESS" }