Skip to main content
POST
/
vendor
/
products
/
{id}
/
cancel
curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/cancel' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{}'
{
  "product_change": {
    "id": "prodch_01HXYZ",
    "product_id": "prod_01HXYZ",
    "status": "canceled",
    "canceled_by": "sel_01HXYZ",
    "canceled_at": "2026-07-03T12:00:00.000Z"
  }
}
Cancels the product’s pending change request; responds 404 when no pending change exists.

Path parameters

id
string
required
The product’s ID.

Body parameters

internal_note
string
Optional note recorded with the cancellation.

Response

product_change
object
curl -X POST 'http://localhost:9000/vendor/products/prod_01HXYZ/cancel' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>' \
  -H 'Content-Type: application/json' \
  -d '{}'
{
  "product_change": {
    "id": "prodch_01HXYZ",
    "product_id": "prod_01HXYZ",
    "status": "canceled",
    "canceled_by": "sel_01HXYZ",
    "canceled_at": "2026-07-03T12:00:00.000Z"
  }
}