Delete a discount
DELETE
Permanently deletes a discount by its ID. Returns 204 No Content, or 404 if the discount does not exist.
How to use it
- Take the discount id from List discounts.
- Check that no items still use it as their discountId before deleting.
- The discount is removed permanently and no longer appears in List discounts.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64Example Request
curl -X DELETE 'https://beta.iotoms.com/api/v1/catalog/attributes/discounts/0'Example Response
Empty