Skip to main content

Delete a discount code

Delete a discount code for a partner by its unique ID or alphanumeric code. This will also disable the code in your connected discount provider (Stripe, Shopify, or custom via disccount.deleted webhook).
1 min read
delete/discount-codes/{idOrCode}
Request example
Response
delete/discount-codes/{idOrCode}
Tip

You can identify the discount code by its unique ID (e.g. dcode_...) or by the alphanumeric code (e.g. STEVEN10OFF).

Authorization

Authorizationstringheaderrequired#
Default authentication mechanism

Path parameters

idOrCodestringrequired#
The unique ID (e.g. dcode_...) or alphanumeric code (e.g. ABC123) of the discount code to delete.

Responses

application/json
The deleted discount code unique ID (e.g. dcode_...).
idstringrequired#
The unique ID of the discount code.