Update Discount
Discounts
Update Discount
Update an existing discount code
PUT
Update Discount
Documentation Index
Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
Use this file to discover all available pages before exploring further.
Update Discount
Updates an existing discount code. Only provided fields will be updated.Request
Path Parameters
The unique discount ID to update
Body Parameters
All parameters are optional. Only provided fields will be updated.Discount code (changing code affects any saved links)
Internal title/description
Discount value
Maximum uses. Set to
null for unlimited.Limit to one use per customer
Minimum order amount in cents
Minimum quantity required
What the discount applies to
Product IDs for specific_products
Collection IDs for specific_collections
Customer eligibility setting
Specific customer IDs
Start date (ISO 8601)
End date (ISO 8601). Set to
null to remove expiration.Set to
disabled to deactivate or active to reactivateResponse
Whether the request succeeded
The updated discount object
Example Response
Notes
- The
typefield cannot be changed after creation - Changing the
codewill affect any shared links or saved customer carts - Setting
statustodisabledimmediately deactivates the discount - Usage count cannot be modified directly
Error Codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have write_discounts scope |
NOT_FOUND | Discount with the specified ID does not exist |
VALIDATION_ERROR | Invalid request body (see error details) |
DUPLICATE_CODE | A discount with this code already exists |