DELETE
/
v1
/
discounts
/
{id}
/
delete
curl --request DELETE \
  --url https://api.creem.io/v1/discounts/{id}/delete \
  --header 'x-api-key: <x-api-key>'
{
  "id": "<string>",
  "mode": "test",
  "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"
  ]
}

Headers

x-api-key
string
required

Path Parameters

id
string
required

Response

200 - application/json
Successfully deleted a discount

The response is of type object.