This guide walks you through the three steps needed to make your first Appstle Loyalty API calls: getting a key, reading a customer’s loyalty data, and adding points. By the end you will have a working integration you can build on.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.
Prerequisites
- An active Appstle Loyalty subscription on your Shopify store
- Access to the Appstle admin panel
- A Shopify customer ID to test with (find one in your Shopify admin under Customers)
Step 1 — Get your API key
Step 2 — Retrieve customer loyalty data
CallGET /api/external/customer-loyalty with your store domain and a Shopify customer ID. Replace 12345 with a real customer ID from your store.
| Field | Description |
|---|---|
availablePoints | Points the customer can redeem right now |
pendingPoints | Points earned but not yet approved |
creditedPoints | Total lifetime points ever credited |
storeCreditBalance | Monetary store credit balance |
currentVipTier | Active VIP tier name, or empty string if none |
customerStatus | ACTIVE or INACTIVE |
Step 3 — Add points to the customer
CallPOST /api/external/add-points to credit points. Include a note so the transaction is clearly labeled in the customer’s history.
GET /api/external/customer-loyalty again and you will see availablePoints increased by 100.
What to build next
Full integration guide
Every endpoint: point management, customer enrollment, rewards, store credits, and program configuration.
Webhooks
Receive real-time notifications for points earned, VIP tier changes, and referral completions.
Shopify Flow
Trigger loyalty actions from any Shopify Flow workflow without writing API code.