> ## 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 Commission Rate

> Retrieve a commission rate by ID.

Returns a single commission rate with its rules and per-currency values.

## Path parameters

**id** `string` *required*

The commission rate's ID.

## Query parameters

**fields** `string`

Comma-separated fields to include in the response.

## Response

**commission\_rate** `object`

**properties**

**id** `string`

The commission rate's ID.

**name** `string`

The rate's display name.

**code** `string`

The rate's unique code.

**type** `string`

The rate type: `fixed` or `percentage`.

**value** `number`

The commission value.

**currency\_code** `string | null`

Currency of a fixed rate's value.

**include\_tax** `boolean`

Whether commission is calculated on tax-inclusive amounts.

**include\_shipping** `boolean`

Whether shipping is included in the commission base.

**is\_enabled** `boolean`

Whether the rate is active.

**is\_default** `boolean`

Whether this is the marketplace default rate.

**rules** `object[]`

Rules scoping the rate, each with `id`, `reference`, and `reference_id`.

**values** `object[]`

Per-currency fixed amounts, each with `id`, `currency_code`, and `amount`.

**created\_at** `string`

Creation timestamp.

**updated\_at** `string`

Last update timestamp.

```bash cURL theme={null}
curl 'http://localhost:9000/admin/commission-rates/comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y' \
  -H 'Authorization: Bearer <token>'
```

```ts JS Client theme={null}
const { commission_rate } = await client.admin.commissionRates.$id.query({
  $id: "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
})
```

```json 200 theme={null}
{
  "commission_rate": {
    "id": "comrate_01HXYZ8Q2M4N6P8R0T2V4W6X8Y",
    "name": "Default",
    "code": "default",
    "type": "percentage",
    "value": 10,
    "currency_code": null,
    "include_tax": false,
    "include_shipping": false,
    "is_enabled": true,
    "is_default": true,
    "rules": [],
    "values": []
  }
}
```


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