---
title: "Get a statement"
---

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

# Get a statement

Path: Nicer API › Commerce

`GET /commerce/statements/{statementId}`

URL: `https://api.nicer.travel/commerce/statements/{statementId}`

One statement with a page of its lines (100 by default, at most 500), each with the booking it was earned on, its adjustments and notes, its payout, a link to its PDF signed for minutes, and the actions the caller may run. An advisor reads only their own; another company's statement answers 404. Every staff read is audited.

## Authentication

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

## Path parameters

- `statementId` (`commerce.statements.get.path.statementId`; string, required)

## Query parameters

- `cursor` (`commerce.statements.get.query.cursor`; string, optional)
  - maxLength: `2048` · minLength: `1`
- `limit` (`commerce.statements.get.query.limit`; integer, optional)
  - maximum: `500` · minimum: `1`

## Header parameters

- `x-nicer-company` (`commerce.statements.get.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.get({
  "statementId": "string"
});
```

### Nicer CLI

```bash
nicer commerce statements get --statement-id 'string' --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "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",
  "adjustments": [
    {
      "adjustmentId": "string",
      "amountMinor": -9007199254740991,
      "carriedFromStatementId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "description": "string",
      "kind": "CREDIT",
      "quantity": 9007199254740991,
      "unitAmountMinor": 9007199254740991
    }
  ],
  "allowedActions": [
    "ADD_ADJUSTMENT"
  ],
  "attachments": [
    {
      "attachmentId": "string",
      "contentType": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "downloadUrl": "http://example.com",
      "fileName": "string",
      "label": "string",
      "sizeBytes": 9007199254740991,
      "uploadedByUserId": "string"
    }
  ],
  "lines": [
    {
      "amountMinor": -9007199254740991,
      "bucket": "PENDING",
      "clientName": "string",
      "commissionItemId": "string",
      "confirmationNumber": "string",
      "earningId": "string",
      "earningKind": "string",
      "entryType": "EARNING",
      "orderId": "string",
      "payableOn": "2019-08-24",
      "supplierName": "string",
      "travelEnd": "2019-08-24"
    }
  ],
  "nextCursor": "string",
  "notes": [
    {
      "authorUserId": "string",
      "bodyMarkdown": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "noteId": "string"
    }
  ],
  "payout": {
    "amountMinor": 9007199254740991,
    "attempts": 9007199254740991,
    "companyName": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "currency": "string",
    "failureReason": "string",
    "method": "STRIPE_CONNECT",
    "paidAt": "2019-08-24T14:15:22Z",
    "payeeId": "string",
    "payeeKind": "ADVISOR",
    "payoutId": "string",
    "payoutRunId": "string",
    "processorReference": "string",
    "statementId": "string",
    "statementNumber": "string",
    "status": "PENDING",
    "updatedAt": "2019-08-24T14:15:22Z"
  },
  "pdfUrl": "http://example.com"
}
```

- `adjustmentsMinor` (`commerce.statements.get.response.200.adjustmentsMinor`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `approvedAt` (`commerce.statements.get.response.200.approvedAt`; any of, required)
  - any of the following: `string`, `null`
- `approvedByUserId` (`commerce.statements.get.response.200.approvedByUserId`; any of, required)
  - any of the following: `string`, `null`
- `closedAt` (`commerce.statements.get.response.200.closedAt`; any of, required)
  - any of the following: `string`, `null`
- `companyName` (`commerce.statements.get.response.200.companyName`; string, required)
  - minLength: `1`
- `createdAt` (`commerce.statements.get.response.200.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.get.response.200.currency`; string, required)
  - pattern: `^[A-Z]{3}$`
- `cycleOn` (`commerce.statements.get.response.200.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.get.response.200.earningsMinor`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `lineCount` (`commerce.statements.get.response.200.lineCount`; integer, required)
  - maximum: `9007199254740991` · minimum: `0`
- `number` (`commerce.statements.get.response.200.number`; string, required)
  - minLength: `1`
- `paidAt` (`commerce.statements.get.response.200.paidAt`; any of, required)
  - any of the following: `string`, `null`
- `payeeId` (`commerce.statements.get.response.200.payeeId`; string, required)
  - minLength: `1`
- `payeeKind` (`commerce.statements.get.response.200.payeeKind`; string, required)
  - one of `"ADVISOR"`, `"COMPANY"`
- `periodEnd` (`commerce.statements.get.response.200.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.get.response.200.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.get.response.200.statementId`; string, required)
  - minLength: `1`
- `status` (`commerce.statements.get.response.200.status`; string, required)
  - one of `"OPEN"`, `"PENDING_APPROVAL"`, `"APPROVED"`, `"PAID"`, `"VOID"`
- `totalMinor` (`commerce.statements.get.response.200.totalMinor`; integer, required)
  - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `updatedAt` (`commerce.statements.get.response.200.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.get.response.200.version`; integer, required)
  - maximum: `9007199254740991`
- `voidReason` (`commerce.statements.get.response.200.voidReason`; any of, required)
  - any of the following: `string`, `null`
- `adjustments` (`commerce.statements.get.response.200.adjustments`; array of object, required)
  - `adjustmentId` (`commerce.statements.get.response.200.adjustments.adjustmentId`; string, required)
    - minLength: `1`
  - `amountMinor` (`commerce.statements.get.response.200.adjustments.amountMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `carriedFromStatementId` (`commerce.statements.get.response.200.adjustments.carriedFromStatementId`; any of, required)
    - any of the following: `string`, `null`
  - `createdAt` (`commerce.statements.get.response.200.adjustments.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))$`
  - `createdByUserId` (`commerce.statements.get.response.200.adjustments.createdByUserId`; any of, required)
    - any of the following: `string`, `null`
  - `description` (`commerce.statements.get.response.200.adjustments.description`; string, required)
    - maxLength: `500` · minLength: `1`
  - `kind` (`commerce.statements.get.response.200.adjustments.kind`; string, required)
    - one of `"CREDIT"`, `"DEBIT"`
  - `quantity` (`commerce.statements.get.response.200.adjustments.quantity`; integer, required)
    - maximum: `9007199254740991`
  - `unitAmountMinor` (`commerce.statements.get.response.200.adjustments.unitAmountMinor`; integer, required)
    - maximum: `9007199254740991`
- `allowedActions` (`commerce.statements.get.response.200.allowedActions`; array of string, required)
  - one of `"ADD_ADJUSTMENT"`, `"REMOVE_ADJUSTMENT"`, `"ADD_NOTE"`, `"CLOSE"`, `"APPROVE"`, `"REOPEN"`, `"VOID"`, `"RECOMPUTE"`, `"MARK_PAID"`, `"ADD_ATTACHMENT"`
- `attachments` (`commerce.statements.get.response.200.attachments`; array of object, required)
  - `attachmentId` (`commerce.statements.get.response.200.attachments.attachmentId`; string, required)
    - minLength: `1`
  - `contentType` (`commerce.statements.get.response.200.attachments.contentType`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.statements.get.response.200.attachments.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.statements.get.response.200.attachments.downloadUrl`; string, required)
    - format: `uri`
  - `fileName` (`commerce.statements.get.response.200.attachments.fileName`; string, required)
    - minLength: `1`
  - `label` (`commerce.statements.get.response.200.attachments.label`; any of, required)
    - any of the following: `string`, `null`
  - `sizeBytes` (`commerce.statements.get.response.200.attachments.sizeBytes`; integer, required)
    - maximum: `9007199254740991`
  - `uploadedByUserId` (`commerce.statements.get.response.200.attachments.uploadedByUserId`; string, required)
    - minLength: `1`
- `lines` (`commerce.statements.get.response.200.lines`; array of object, required)
  - `amountMinor` (`commerce.statements.get.response.200.lines.amountMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `bucket` (`commerce.statements.get.response.200.lines.bucket`; string, required)
    - one of `"PENDING"`, `"AVAILABLE"`
  - `clientName` (`commerce.statements.get.response.200.lines.clientName`; any of, required)
    - any of the following: `string`, `null`
  - `commissionItemId` (`commerce.statements.get.response.200.lines.commissionItemId`; any of, required)
    - any of the following: `string`, `null`
  - `confirmationNumber` (`commerce.statements.get.response.200.lines.confirmationNumber`; any of, required)
    - any of the following: `string`, `null`
  - `earningId` (`commerce.statements.get.response.200.lines.earningId`; string, required)
    - minLength: `1`
  - `earningKind` (`commerce.statements.get.response.200.lines.earningKind`; string, required)
    - minLength: `1`
  - `entryType` (`commerce.statements.get.response.200.lines.entryType`; string, required)
    - one of `"EARNING"`, `"REVERSAL"`, `"CLAWBACK"`
  - `orderId` (`commerce.statements.get.response.200.lines.orderId`; any of, required)
    - any of the following: `string`, `null`
  - `payableOn` (`commerce.statements.get.response.200.lines.payableOn`; 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])))$`
  - `supplierName` (`commerce.statements.get.response.200.lines.supplierName`; any of, required)
    - any of the following: `string`, `null`
  - `travelEnd` (`commerce.statements.get.response.200.lines.travelEnd`; any of, required)
    - any of the following: `string`, `null`
- `nextCursor` (`commerce.statements.get.response.200.nextCursor`; any of, required)
  - any of the following: `string`, `null`
- `notes` (`commerce.statements.get.response.200.notes`; array of object, required)
  - `authorUserId` (`commerce.statements.get.response.200.notes.authorUserId`; string, required)
    - minLength: `1`
  - `bodyMarkdown` (`commerce.statements.get.response.200.notes.bodyMarkdown`; string, required)
    - minLength: `1`
  - `createdAt` (`commerce.statements.get.response.200.notes.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))$`
  - `noteId` (`commerce.statements.get.response.200.notes.noteId`; string, required)
    - minLength: `1`
- `payout` (`commerce.statements.get.response.200.payout`; any of, required)
  - any of the following:
    - `Payout`
      - `amountMinor` (`Payout.amountMinor`; integer, required)
        - maximum: `9007199254740991`
      - `attempts` (`Payout.attempts`; integer, required)
        - maximum: `9007199254740991` · minimum: `0`
      - `companyName` (`Payout.companyName`; string, required)
        - minLength: `1`
      - `createdAt` (`Payout.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` (`Payout.currency`; string, required)
        - pattern: `^[A-Z]{3}$`
      - `failureReason` (`Payout.failureReason`; any of, required)
        - any of the following: `string`, `null`
      - `method` (`Payout.method`; string, required)
        - one of `"STRIPE_CONNECT"`, `"CHECK"`, `"MANUAL"`
      - `paidAt` (`Payout.paidAt`; any of, required)
        - any of the following: `string`, `null`
      - `payeeId` (`Payout.payeeId`; string, required)
        - minLength: `1`
      - `payeeKind` (`Payout.payeeKind`; string, required)
        - one of `"ADVISOR"`, `"COMPANY"`
      - `payoutId` (`Payout.payoutId`; string, required)
        - minLength: `1`
      - `payoutRunId` (`Payout.payoutRunId`; string, required)
        - minLength: `1`
      - `processorReference` (`Payout.processorReference`; any of, required)
        - any of the following: `string`, `null`
      - `statementId` (`Payout.statementId`; string, required)
        - minLength: `1`
      - `statementNumber` (`Payout.statementNumber`; string, required)
        - minLength: `1`
      - `status` (`Payout.status`; string, required)
        - one of `"PENDING"`, `"PAID"`, `"FAILED"`, `"CANCELLED"`
      - `updatedAt` (`Payout.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))$`
    - `null`
- `pdfUrl` (`commerce.statements.get.response.200.pdfUrl`; 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.get.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.statements.get.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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