---
title: "List statements"
---

> 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 statements

Path: Nicer API › Commerce

`GET /commerce/statements`

URL: `https://api.nicer.travel/commerce/statements`

The company's payee statements, newest cycle first (25 by default, at most 100, keyset-paged by cycle date): number, payee, cycle date and period, status, earnings, adjustments and total. Advisors see their own; agency admins every payee of the company; finance staff any company, audited.

## Authentication

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

## Query parameters

- `currency` (`commerce.statements.list.query.currency`; string, optional)
  - pattern: `^[A-Z]{3}$`
- `cursor` (`commerce.statements.list.query.cursor`; string, optional)
  - maxLength: `2048` · minLength: `1`
- `from` (`commerce.statements.list.query.from`; string, optional)
  - format: `date` · 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])))$`
- `limit` (`commerce.statements.list.query.limit`; integer, optional)
  - maximum: `100` · minimum: `1`
- `payeeId` (`commerce.statements.list.query.payeeId`; string, optional)
  - maxLength: `255` · minLength: `1`
- `payeeKind` (`commerce.statements.list.query.payeeKind`; string, optional)
  - one of `"ADVISOR"`, `"COMPANY"`
- `status` (`commerce.statements.list.query.status`; string, optional)
  - minLength: `1`
- `to` (`commerce.statements.list.query.to`; string, optional)
  - format: `date` · 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])))$`

## Header parameters

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

### Nicer CLI

```bash
nicer commerce statements list --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "adjustmentsMinor": -9007199254740991,
      "approvedAt": "2019-08-24T14:15:22Z",
      "approvedByUserId": "string",
      "closedAt": "2019-08-24T14:15:22Z",
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "currency": "string",
      "cycleOn": "2019-08-24",
      "earningsMinor": -9007199254740991,
      "lineCount": 9007199254740991,
      "number": "string",
      "paidAt": "2019-08-24T14:15:22Z",
      "payeeId": "string",
      "payeeKind": "ADVISOR",
      "periodEnd": "2019-08-24",
      "periodStart": "2019-08-24",
      "statementId": "string",
      "status": "OPEN",
      "totalMinor": -9007199254740991,
      "updatedAt": "2019-08-24T14:15:22Z",
      "version": 9007199254740991,
      "voidReason": "string"
    }
  ],
  "nextCursor": "string"
}
```

- `items` (`commerce.statements.list.response.200.items`; array of object, required)
  - `adjustmentsMinor` (`commerce.statements.list.response.200.items.adjustmentsMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `approvedAt` (`commerce.statements.list.response.200.items.approvedAt`; any of, required)
    - any of the following: `string`, `null`
  - `approvedByUserId` (`commerce.statements.list.response.200.items.approvedByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `closedAt` (`commerce.statements.list.response.200.items.closedAt`; any of, required)
    - any of the following: `string`, `null`
  - `companyName` (`commerce.statements.list.response.200.items.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.statements.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))$`
  - `currency` (`commerce.statements.list.response.200.items.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `cycleOn` (`commerce.statements.list.response.200.items.cycleOn`; string, required)
    - format: `date` · 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])))$`
  - `earningsMinor` (`commerce.statements.list.response.200.items.earningsMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `lineCount` (`commerce.statements.list.response.200.items.lineCount`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `number` (`commerce.statements.list.response.200.items.number`; string, required)
    - minLength: `1`
  - `paidAt` (`commerce.statements.list.response.200.items.paidAt`; any of, required)
    - any of the following: `string`, `null`
  - `payeeId` (`commerce.statements.list.response.200.items.payeeId`; string, required)
    - minLength: `1`
  - `payeeKind` (`commerce.statements.list.response.200.items.payeeKind`; string, required)
    - one of `"ADVISOR"`, `"COMPANY"`
  - `periodEnd` (`commerce.statements.list.response.200.items.periodEnd`; string, required)
    - format: `date` · 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])))$`
  - `periodStart` (`commerce.statements.list.response.200.items.periodStart`; string, required)
    - format: `date` · 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])))$`
  - `statementId` (`commerce.statements.list.response.200.items.statementId`; string, required)
    - minLength: `1`
  - `status` (`commerce.statements.list.response.200.items.status`; string, required)
    - one of `"OPEN"`, `"PENDING_APPROVAL"`, `"APPROVED"`, `"PAID"`, `"VOID"`
  - `totalMinor` (`commerce.statements.list.response.200.items.totalMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `updatedAt` (`commerce.statements.list.response.200.items.updatedAt`; 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))$`
  - `version` (`commerce.statements.list.response.200.items.version`; integer, required)
    - maximum: `9007199254740991`
  - `voidReason` (`commerce.statements.list.response.200.items.voidReason`; any of, required)
    - any of the following: `string`, `null`
- `nextCursor` (`commerce.statements.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.statements.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.statements.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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