curl --request PUT \
--url https://loyalty-admin.appstle.com/api/external/check-discount \
--header 'Content-Type: application/json' \
--data '
{
"customerId": 67890,
"discountCode": "LOYALTY15OFF"
}
'{
"id": 12345,
"customerId": 67890,
"discountCode": "LOYALTY15OFF",
"discountType": "PERCENTAGE",
"discountValue": 15,
"status": "UNUSED",
"expiryDate": "2025-06-30T23:59:59Z",
"pointsRedeemed": 100,
"shopifyDiscountCodeId": "gid://shopify/DiscountCode/123",
"minimumPurchaseAmount": 50,
"createAt": "2025-01-15T10:30:00Z"
}Documentation Index
Fetch the complete documentation index at: https://developers.appstle.com/llms.txt
Use this file to discover all available pages before exploring further.
Request containing customer ID and discount code to validate
Shopify customer ID (numeric). Identifies which customer is attempting to use the discount code. Used to verify the discount code belongs to this customer. Example: 67890
67890
The discount code to validate. Case-insensitive. This is the code the customer enters at checkout. System will check if:
100"LOYALTY15OFF"
Discount code is valid and reward details returned
USED, UNUSED, REFUNDED, EXPIRED, SUBSCRIPTION_ACTIVE STORE_CREDIT, DISCOUNT_CODE, POINTS curl --request PUT \
--url https://loyalty-admin.appstle.com/api/external/check-discount \
--header 'Content-Type: application/json' \
--data '
{
"customerId": 67890,
"discountCode": "LOYALTY15OFF"
}
'{
"id": 12345,
"customerId": 67890,
"discountCode": "LOYALTY15OFF",
"discountType": "PERCENTAGE",
"discountValue": 15,
"status": "UNUSED",
"expiryDate": "2025-06-30T23:59:59Z",
"pointsRedeemed": 100,
"shopifyDiscountCodeId": "gid://shopify/DiscountCode/123",
"minimumPurchaseAmount": 50,
"createAt": "2025-01-15T10:30:00Z"
}