Skip to main content
DELETE
/
vendor
/
products
/
{id}
curl -X DELETE 'http://localhost:9000/vendor/products/prod_01HXYZ' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>'
{
  "product_change": {
    "id": "prodch_01HXYZ",
    "product_id": "prod_01HXYZ",
    "status": "pending",
    "actions": [
      {
        "id": "prodchact_01HXYZ",
        "action": "PRODUCT_DELETE",
        "applied": false
      }
    ]
  }
}
Does not delete the product directly — it stages a pending PRODUCT_DELETE change request that an operator confirms or declines.
The endpoint responds with 202 Accepted and a product_change record; the product remains until the change is confirmed.

Path parameters

id
string
required
The product’s ID.

Response

product_change
object
curl -X DELETE 'http://localhost:9000/vendor/products/prod_01HXYZ' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>'
{
  "product_change": {
    "id": "prodch_01HXYZ",
    "product_id": "prod_01HXYZ",
    "status": "pending",
    "actions": [
      {
        "id": "prodchact_01HXYZ",
        "action": "PRODUCT_DELETE",
        "applied": false
      }
    ]
  }
}