> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mercurjs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview Product Change

> Retrieve the seller's pending change request for a product.

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`

**properties**

**id** `string`

The change request's ID.

**product\_id** `string`

ID of the product the change targets.

**status** `string`

Always `pending` for this endpoint.

**created\_by** `string`

ID of the seller that staged the change.

**actions** `object[]`

Staged operations, each with `id`, `action`, `details`, `ordering`, and `applied`.

**internal\_note** `string`

Internal note attached to the change.

**external\_note** `string`

Note from the operator, e.g. a revision request.

```bash cURL theme={null}
curl 'http://localhost:9000/vendor/products/prod_01HXYZ/preview' \
  -H 'Authorization: Bearer <token>' \
  -H 'x-seller-id: <seller_id>'
```

```ts JS Client theme={null}
const { product_change } = await client.vendor.products.$id.preview.query({
  $id: "prod_01HXYZ",
})
```

```json 200 theme={null}
{
  "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
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.