> ## 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.

# List Order Changes

> Retrieve the change history of an order.

Returns all order changes (edits, returns, exchanges, claims) recorded for the order, with their actions.

## Path parameters

**id** `string` *required*

The order's ID.

## Query parameters

**fields** `string`

Comma-separated list of fields to include, prefix with `+`/`-` to add or remove from defaults.

## Response

**order\_changes** `object[]`

**properties**

**id** `string`

The order change's ID.

**order\_id** `string`

ID of the order the change belongs to.

**version** `number`

Order version the change targets.

**change\_type** `string`

Type of change, e.g. `edit`, `return`, `exchange`, `claim`.

**status** `string`

The change's status, e.g. `pending`, `confirmed`, `canceled`.

**created\_by** `string`

ID of the actor who created the change.

**confirmed\_by** `string`

ID of the actor who confirmed the change.

**canceled\_by** `string`

ID of the actor who canceled the change.

**actions** `object[]`

The individual actions that make up the change.

**created\_at** `string`

Creation timestamp.

**updated\_at** `string`

Last update timestamp.

**confirmed\_at** `string`

Confirmation timestamp.

**canceled\_at** `string`

Cancellation timestamp.

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

```ts JS Client theme={null}
const { order_changes } = await client.vendor.orders.$id.changes.query({
  $id: "order_01HXYZABCDEF",
})
```

```json 200 theme={null}
{
  "order_changes": [
    {
      "id": "ordch_01HXYZABCDEF",
      "order_id": "order_01HXYZABCDEF",
      "version": 2,
      "change_type": "return",
      "status": "confirmed",
      "created_by": "sel_01HXYZABCDEF",
      "actions": [
        {
          "id": "ordchact_01HXYZABCDEF",
          "action": "RETURN_ITEM",
          "details": { "quantity": 1 }
        }
      ],
      "created_at": "2026-06-02T10:00:00.000Z",
      "confirmed_at": "2026-06-02T11:00:00.000Z"
    }
  ]
}
```


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