Skip to main content
DELETE
/
api
/
v1
/
discounts
/
{id}
.json
Delete Discount
curl --request DELETE \
  --url https://api.launchmystore.io/api/v1/discounts/{id}.json \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "id": "<string>",
    "deleted": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Delete Discount

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

Request

curl -X DELETE "https://api.launchmystore.io/api/v1/discounts/disc_abc123.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Path Parameters

id
string
required
The unique discount ID to delete

Response

success
boolean
Whether the request succeeded
data
object
Confirmation object

Example Response

{
  "success": true,
  "data": {
    "id": "disc_abc123",
    "deleted": true
  }
}

Notes

  • Historical order records will retain the discount information for completed orders
  • Consider setting status: "disabled" instead if you need to preserve discount history
  • Customer carts with this discount code will no longer apply the discount at checkout

Error Codes

CodeDescription
UNAUTHORIZEDInvalid or missing access token
FORBIDDENApp doesn’t have write_discounts scope
NOT_FOUNDDiscount with the specified ID does not exist