DELETE
/
products
/
{productId}
curl --request DELETE \
  --url https://connect.withvayu.com/products/{productId} \
  --header 'Authorization: Bearer <token>'
{
  "product": {
    "name": "<string>",
    "eventName": "<string>",
    "aggregationMethod": {
      "operator": "Count",
      "field": "<string>",
      "instanceKey": "<string>"
    },
    "filter": {
      "conditions": [
        {
          "criterions": [
            {
              "field": "<string>",
              "operator": "Equals",
              "value": "<string>"
            }
          ]
        }
      ]
    },
    "pricing": {
      "pricingModel": "PerUnit",
      "priceConfiguration": {
        "price": 1,
        "chunkSize": 1
      }
    },
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

productId
string
required

Response

200
application/json
RequestSuccess
product
object
required