---
title: "List advisors with commission bookings"
---

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

# List advisors with commission bookings

Path: Nicer API › Commerce

`GET /commerce/commissions/advisors`

URL: `https://api.nicer.travel/commerce/commissions/advisors`

Distinct advisor user IDs with at least one booking in the requested commission view, across all dates. Use these IDs to filter the advisor roster. Access follows the commission list: advisors see only their own ID, and receivables require an admin. IDs are ordered ascending, with 25 per page by default and 100 at most.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `cursor` (`commerce.commissions.advisors.list.query.cursor`; string, optional)
  - maxLength: `2048` · minLength: `1`
- `limit` (`commerce.commissions.advisors.list.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1`
- `view` (`commerce.commissions.advisors.list.query.view`; string, optional)
  - one of `"BOOKINGS"`, `"RECEIVABLES"`

## Header parameters

- `x-nicer-company` (`commerce.commissions.advisors.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.commerce.commissions.advisors.list();
```

### Nicer CLI

```bash
nicer commerce commissions advisors list --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/commerce/commissions/advisors \
  --header 'Authorization: Bearer <token>' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/commissions/advisors';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': 'string', Authorization: 'Bearer <token>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/commerce/commissions/advisors"

headers = {
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    "string"
  ],
  "nextCursor": "string"
}
```

- `items` (`commerce.commissions.advisors.list.response.200.items`; array of string, required)
  - minLength: `1`
- `nextCursor` (`commerce.commissions.advisors.list.response.200.nextCursor`; any of, required)
  - any of the following: `string`, `null`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.commissions.advisors.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.advisors.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.commissions.advisors.list.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.advisors.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.commissions.advisors.list.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.commissions.advisors.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Commerce/commerce.commissions.advisors.list/index.md
