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

# Retrieve Order Group

> Retrieve one of the authenticated customer's order groups by ID.

Returns a single order group with its per-seller child orders; order groups belonging to another customer return a `404`.

> [!NOTE]
>
> Customer authentication is required (`Authorization: Bearer <customer_token>` or a session cookie).

## Path parameters

**id** `string` *required*

The order group's ID.

## Query parameters

**fields** `string`

Comma-separated fields to include; only fields from the route's allowed list are accepted.

## Response

**order\_group** `object`

**properties**

**id** `string`

The order group's ID.

**customer\_id** `string`

ID of the purchasing customer.

**seller\_count** `number`

Number of per-seller orders in the group.

**total** `number`

Combined total across all child orders.

**orders** `object[]`

Child orders, each with `seller_id`, its `seller`, and its `items` (including each item's `variant_id`, `variant_title`, `product_title`, and `product_handle`).

**created\_at** `string`

Creation timestamp.

**updated\_at** `string`

Last update timestamp.

```bash cURL theme={null}
curl 'http://localhost:9000/store/order-groups/og_01JB2KE7NP' \
  -H 'x-publishable-api-key: pk_01JB2K3XYZ' \
  -H 'Authorization: Bearer <customer_token>'
```

```ts JS Client theme={null}
const { order_group } = await client.store.orderGroups.$id.query({ $id: "og_01JB2KE7NP" })
```

```json 200 theme={null}
{
  "order_group": {
    "id": "og_01JB2KE7NP",
    "customer_id": "cus_01JB2KE8QR",
    "seller_count": 2,
    "total": 9900,
    "orders": [
      {
        "id": "order_01JB2KH1WX",
        "seller_id": "sel_01JB2K8A1B",
        "items": [{ "id": "ordli_01JB2KH2YZ", "title": "M", "quantity": 1 }]
      },
      {
        "id": "order_01JB2KH3AB",
        "seller_id": "sel_01JB2KF9ST",
        "items": [{ "id": "ordli_01JB2KH4CD", "title": "One Size", "quantity": 1 }]
      }
    ],
    "created_at": "2026-05-01T10:05:00.000Z",
    "updated_at": "2026-05-01T10:05:00.000Z"
  }
}
```


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