Skip to main content
GET
/
vendor
/
products
/
{id}
/
preview
curl 'http://localhost:9000/vendor/products/prod_01HXYZ/preview' \
  -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": "UPDATE",
        "details": { "title": "Acme T-Shirt v2" },
        "applied": false
      }
    ]
  }
}
Returns the seller’s pending change request for the product, or null when there is none.

Path parameters

id
string
required
The product’s ID.

Response

product_change
object | null
curl 'http://localhost:9000/vendor/products/prod_01HXYZ/preview' \
  -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": "UPDATE",
        "details": { "title": "Acme T-Shirt v2" },
        "applied": false
      }
    ]
  }
}