Delete Discount
Discounts
Delete Discount
Delete a discount code
DELETE
Delete Discount
Delete Discount
Permanently deletes a discount code. This action cannot be undone.Request
Path Parameters
The unique discount ID to delete
Response
Returns the standard response envelope confirming deletion.HTTP status code
Result state, e.g.
successHuman-readable confirmation message
Not populated for this endpoint
Example Response
Notes
- Historical order records will retain the discount information for completed orders
- Consider setting the discount status to
Inactiveinstead if you need to preserve discount history - Customer carts with this discount code will no longer apply the discount at checkout
Errors
On failure the same envelope is returned withstate: "error" and a message:
| Status | Condition |
|---|---|
401 | Invalid or missing access token |
403 | App doesn’t have write_discounts scope |
404 | Discount with the specified ID does not exist |