Skip to main content
DELETE
/
v2
/
vendor
/
discounts
/
{discountId}
Delete Discount
curl --request DELETE \
  --url https://api.puppetvendors.com/v2/vendor/discounts/{discountId} \
  --header 'x-access-token: <api-key>'
V2 Alpha — This endpoint is part of the V2 API preview. Breaking changes may occur.

Overview

Permanently delete a discount code owned by the authenticated vendor.

Path Parameters

discountId
string
required
Discount ObjectId.

Response

200
{
  "success": true,
  "data": {
    "deleted": true
  }
}

Example

curl -X DELETE https://api.puppetvendors.com/v2/vendor/discounts/507f1f77bcf86cd799439011 \
  -H "x-access-token: YOUR_VENDOR_JWT_TOKEN"