Returns all active point earning campaigns and rules that the customer can participate in. This shows customers how they can earn more points.
Common Earning Methods:
Response includes:
Use Cases:
Authentication: Customer must be logged in via Shopify customer session
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/loyalty-integration/earn-options[
{
"name": "Purchase Rewards",
"description": "Earn 5 points for every $1 spent",
"pointsAmount": 5,
"action": "Make a purchase"
},
{
"name": "Refer a Friend",
"description": "Earn 500 points when your friend makes their first purchase",
"pointsAmount": 500,
"action": "Share referral link"
}
]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.
Customer ID (optional, auto-detected from session)
Earning options retrieved successfully
curl --request GET \
--url https://www.myshop.com/apps/subscriptions/cp/api/loyalty-integration/earn-options[
{
"name": "Purchase Rewards",
"description": "Earn 5 points for every $1 spent",
"pointsAmount": 5,
"action": "Make a purchase"
},
{
"name": "Refer a Friend",
"description": "Earn 500 points when your friend makes their first purchase",
"pointsAmount": 500,
"action": "Share referral link"
}
]