Redemptions & Discount Codes
Check discount code validity
PUT
Check discount code validity
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.
Body
application/json
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
Example:
67890
The discount code to validate. Case-insensitive. This is the code the customer enters at checkout. System will check if:
- Code exists in loyalty system
- Code belongs to this customer
- Code status is UNUSED or ACTIVE
- Code has not expired Examples: "LOYALTY15OFF", "VIP20", "WELCOME10"
Maximum string length:
100Example:
"LOYALTY15OFF"
Response
Discount code is valid and reward details returned
Available options:
USED, UNUSED, REFUNDED, EXPIRED, SUBSCRIPTION_ACTIVE Available options:
STORE_CREDIT, DISCOUNT_CODE, POINTS