---
title: "List commission exports"
---

> 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 commission exports

Path: Nicer API › Commerce

`GET /commerce/commission-exports`

URL: `https://api.nicer.travel/commerce/commission-exports`

The company's exports, newest first (25 by default, at most 100, keyset-paged), without download links. Advisors see the exports they requested; agency admins and finance staff all of the company's.

## Authentication

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

## Query parameters

- `cursor` (`commerce.commissionExports.list.query.cursor`; string, optional)
  - maxLength: `2048` · minLength: `1`
- `limit` (`commerce.commissionExports.list.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1`
- `status` (`commerce.commissionExports.list.query.status`; string, optional)
  - minLength: `1`

## Header parameters

- `x-nicer-company` (`commerce.commissionExports.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.commissionExports.list();
```

### Nicer CLI

```bash
nicer commerce commission-exports list --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/commission-exports';
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/commission-exports"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "columns": [
        "string"
      ],
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "downloadUrl": "http://example.com",
      "errorCode": "COMMISSION_EXPORT_TOO_LARGE",
      "expiresAt": "2019-08-24T14:15:22Z",
      "exportId": "string",
      "fileName": "string",
      "finishedAt": "2019-08-24T14:15:22Z",
      "filter": {
        "property1": null,
        "property2": null
      },
      "format": "CSV",
      "groupBy": "string",
      "presetId": "string",
      "requestedByUserId": "string",
      "rowCount": 9007199254740991,
      "sizeBytes": 9007199254740991,
      "startedAt": "2019-08-24T14:15:22Z",
      "status": "QUEUED",
      "subject": "COMMISSION_ITEMS",
      "totalsOnly": true
    }
  ],
  "nextCursor": "string"
}
```

- `items` (`commerce.commissionExports.list.response.200.items`; array of object, required)
  - `columns` (`commerce.commissionExports.list.response.200.items.columns`; array of string, required)
    - pattern: `^[A-Z][A-Z0-9_]{0,63}$`
  - `companyName` (`commerce.commissionExports.list.response.200.items.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.commissionExports.list.response.200.items.createdAt`; string, required)
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `downloadUrl` (`commerce.commissionExports.list.response.200.items.downloadUrl`; any of, required)
    - any of the following: `string`, `null`
  - `errorCode` (`commerce.commissionExports.list.response.200.items.errorCode`; any of, required)
    - any of the following:
      - `string`: one of `"COMMISSION_EXPORT_TOO_LARGE"`, `"COMMISSION_EXPORT_TIMED_OUT"`, `"COMMISSION_EXPORT_FAILED"`
      - `null`
  - `expiresAt` (`commerce.commissionExports.list.response.200.items.expiresAt`; any of, required)
    - any of the following: `string`, `null`
  - `exportId` (`commerce.commissionExports.list.response.200.items.exportId`; string, required)
    - minLength: `1`
  - `fileName` (`commerce.commissionExports.list.response.200.items.fileName`; string, required)
    - minLength: `1`
  - `finishedAt` (`commerce.commissionExports.list.response.200.items.finishedAt`; any of, required)
    - any of the following: `string`, `null`
  - `filter` (`commerce.commissionExports.list.response.200.items.filter`; map of unknown, required)
  - `format` (`commerce.commissionExports.list.response.200.items.format`; string, required)
    - one of `"CSV"`, `"XLSX"`, `"PDF"`
  - `groupBy` (`commerce.commissionExports.list.response.200.items.groupBy`; any of, required)
    - any of the following: `ExportColumn`, `null`
  - `presetId` (`commerce.commissionExports.list.response.200.items.presetId`; any of, required)
    - any of the following: `string`, `null`
  - `requestedByUserId` (`commerce.commissionExports.list.response.200.items.requestedByUserId`; string, required)
    - minLength: `1`
  - `rowCount` (`commerce.commissionExports.list.response.200.items.rowCount`; any of, required)
    - any of the following: `integer`, `null`
  - `sizeBytes` (`commerce.commissionExports.list.response.200.items.sizeBytes`; any of, required)
    - any of the following: `integer`, `null`
  - `startedAt` (`commerce.commissionExports.list.response.200.items.startedAt`; any of, required)
    - any of the following: `string`, `null`
  - `status` (`commerce.commissionExports.list.response.200.items.status`; string, required)
    - one of `"QUEUED"`, `"RUNNING"`, `"READY"`, `"FAILED"`, `"EXPIRED"`
  - `subject` (`commerce.commissionExports.list.response.200.items.subject`; string, required)
    - one of `"COMMISSION_ITEMS"`, `"PAYMENTS"`, `"REMITTANCES"`, `"STATEMENTS"`, `"SUPPLIERS"`, `"PAYEES"`, `"PAYOUTS"`, `"COMMISSION_INVOICES"`, `"EARNINGS"`, `"AGENCY"`
  - `totalsOnly` (`commerce.commissionExports.list.response.200.items.totalsOnly`; boolean, required)
- `nextCursor` (`commerce.commissionExports.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.commissionExports.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.commissionExports.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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