---
title: "Get account balances"
---

> 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 account balances

Path: Nicer API › Commerce

`GET /commerce/finance/balances`

URL: `https://api.nicer.travel/commerce/finance/balances`

Returns the company's ledger balances by beneficiary and currency, optionally narrowed to one beneficiary or to a beneficiary kind (advisor, company, traveler or the platform). A bucket below zero is money still owed: it counts as receivable, never as a negative balance. Advisors and travelers see their own; admins anyone's of the company, and Nicer staff anyone's of the company they name in `x-nicer-company` (each staff read is audited).

## Authentication

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

## Query parameters

- `beneficiaryId` (`commerce.finance.balances.list.query.beneficiaryId`; string, optional)
  - minLength: `1`
- `beneficiaryKind` (`commerce.finance.balances.list.query.beneficiaryKind`; string, optional)
  - one of `"ADVISOR"`, `"COMPANY"`, `"NICER"`, `"TRAVELER"`

## Header parameters

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

### Nicer CLI

```bash
nicer commerce finance balances list --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "balances": [
    {
      "accountCode": "string",
      "availableMinor": 9007199254740991,
      "beneficiaryId": "string",
      "beneficiaryKind": "ADVISOR",
      "currency": "string",
      "pendingMinor": 9007199254740991,
      "receivableMinor": 9007199254740991
    }
  ]
}
```

- `balances` (`commerce.finance.balances.list.response.200.balances`; array of object, required)
  - `accountCode` (`commerce.finance.balances.list.response.200.balances.accountCode`; string, required)
    - minLength: `1`
  - `availableMinor` (`commerce.finance.balances.list.response.200.balances.availableMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `beneficiaryId` (`commerce.finance.balances.list.response.200.balances.beneficiaryId`; any of, required)
    - any of the following: `string`, `null`
  - `beneficiaryKind` (`commerce.finance.balances.list.response.200.balances.beneficiaryKind`; string, required)
    - one of `"ADVISOR"`, `"COMPANY"`, `"NICER"`, `"TRAVELER"`
  - `currency` (`commerce.finance.balances.list.response.200.balances.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `pendingMinor` (`commerce.finance.balances.list.response.200.balances.pendingMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `receivableMinor` (`commerce.finance.balances.list.response.200.balances.receivableMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`

### 400

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

#### Example

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

- `errorCode` (`commerce.finance.balances.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.finance.balances.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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