Discounts
Delete a discount.
Permanently delete a discount code. Prevent further usage of the discount.
delete/v1/discounts/{id}/delete
Path parameters
idstring required
The unique identifier of the discount to delete
Response
Successfully deleted a discount
Example response
{
"object": "discount",
"status": "active",
"name": "Holiday Sale",
"code": "HOLIDAY2024",
"type": "percentage",
"amount": 20,
"currency": "USD",
"percentage": 15,
"expiry_date": "2024-12-31T23:59:59Z",
"max_redemptions": 100,
"duration": "repeating",
"duration_in_months": 6,
"applies_to_products": [
"prod_123",
"prod_456"
],
"redeem_count": 15
}