Redemptions & Discount Codes
Update discount code status
PUT
Update discount code status
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, discount code, and new status
Shopify customer ID (numeric). Identifies which customer owns the discount code. Used to verify the discount code belongs to this customer before updating. Example: 67890
Example:
67890
The discount code to update. Case-insensitive. Must be a valid loyalty discount code that belongs to the specified customer. Examples: "LOYALTY15OFF", "VIP20", "WELCOME10"
Maximum string length:
100Example:
"LOYALTY15OFF"
New status for the discount code. Valid values:
- USED: Mark code as used after checkout (most common)
- SUBSCRIPTION_ACTIVE: Mark code as active for subscription renewals
- UNUSED: Reset code to unused state (use carefully)
- EXPIRED: Manually expire a code
Status transitions:
- UNUSED → USED: Normal checkout flow
- UNUSED → SUBSCRIPTION_ACTIVE: Subscription created
- SUBSCRIPTION_ACTIVE → USED: Subscription ended
- Any → EXPIRED: Manual expiration
Note: Cannot mark already USED codes as USED again.
Available options:
USED, UNUSED, REFUNDED, EXPIRED, SUBSCRIPTION_ACTIVE, USED, UNUSED, SUBSCRIPTION_ACTIVE, EXPIRED Example:
"USED"
Response
Discount code status successfully updated
Available options:
USED, UNUSED, REFUNDED, EXPIRED, SUBSCRIPTION_ACTIVE Available options:
STORE_CREDIT, DISCOUNT_CODE, POINTS