iotoms Docs

Delete a discount

DELETE
/api/v1/catalog/attributes/discounts/{id}

Permanently deletes a discount by its ID. Returns 204 No Content, or 404 if the discount does not exist.

How to use it

  1. Take the discount id from List discounts.
  2. Check that no items still use it as their discountId before deleting.
  3. The discount is removed permanently and no longer appears in List discounts.

Authorization

BearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

id*integer

ID of the record.

Formatint64

Response Body

OK

Example Request
curl -X DELETE 'https://beta.iotoms.com/api/v1/catalog/attributes/discounts/0'
Example Response
Empty