Skip to main content
DELETE
Delete Discount

Delete Discount

Permanently deletes a discount code. This action cannot be undone.

Request

Path Parameters

id
string
required
The unique discount ID to delete

Response

Returns the standard response envelope confirming deletion.
status
integer
HTTP status code
state
string
Result state, e.g. success
message
string
Human-readable confirmation message
data
object
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 Inactive instead 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 with state: "error" and a message:
StatusCondition
401Invalid or missing access token
403App doesn’t have write_discounts scope
404Discount with the specified ID does not exist