---
title: "Get a person's balances in the back office"
---

> 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 person's balances in the back office

Path: Nicer API › backoffice

`GET /backoffice/people/{userId}/balances`

URL: `https://api.nicer.travel/backoffice/people/{userId}/balances`

Returns a person's ledger balances, as an advisor (what they earn) and as a traveler (their rewards): one row per agency, kind and currency they hold an account in, with what is available, pending and owed back; an overdrawn bucket reads zero and its shortfall is owed back, as everywhere else in Nicer. The person's orders are read with GET /backoffice/orders, by advisorUserId or payerUserId. The agency is named by the x-nicer-company header and nothing else. Nicer staff who name no agency read the person's accounts in every agency's ledger; with an agency named, staff and its admins read that agency's ledger only: the person's accounts there, and nothing of other agencies. An agency admin may name only an agency they administer, and may leave the header out when they administer one. An empty list means the person holds no account in the ledgers read. Errors: 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.

## Authentication

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

## Path parameters

- `userId` (`backoffice.people.balances.list.path.userId`; string, required)

## Header parameters

- `x-nicer-company` (`backoffice.people.balances.list.header.x-nicer-company`; string, optional) — Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

## Code samples

### JavaScript SDK

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

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

await nicer.backoffice.people.balances.list({
  "userId": "string"
});
```

### Nicer CLI

```bash
nicer backoffice people balances list --user-id 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/backoffice/people/<userId>/balances' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/backoffice/people/<userId>/balances';
const options = {method: 'GET', headers: {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/backoffice/people/<userId>/balances"

headers = {"Authorization": "Bearer <token>"}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

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

- `balances` (`backoffice.people.balances.list.response.200.balances`; array of object, required) — One row per agency, kind and currency the person holds an account in, ordered by agency, then kind, then currency; empty when they hold none.
  - `availableMinor` (`backoffice.people.balances.list.response.200.balances.availableMinor`; integer, required) — What the account may pay out now, in minor units; zero when the bucket is overdrawn.
    - maximum: `9007199254740991` · minimum: `0`
  - `beneficiaryKind` (`backoffice.people.balances.list.response.200.balances.beneficiaryKind`; string, required) — The account's kind: ADVISOR for what the person earns as an advisor, TRAVELER for their traveler rewards.
    - one of `"ADVISOR"`, `"TRAVELER"`
  - `companyName` (`backoffice.people.balances.list.response.200.balances.companyName`; string, required) — The agency whose ledger holds the account.
    - minLength: `1`
  - `currency` (`backoffice.people.balances.list.response.200.balances.currency`; string, required) — The account's currency.
    - pattern: `^[A-Z]{3}$`
  - `pendingMinor` (`backoffice.people.balances.list.response.200.balances.pendingMinor`; integer, required) — What the account has earned but may not pay out yet, in minor units; zero when the bucket is overdrawn.
    - maximum: `9007199254740991` · minimum: `0`
  - `receivableMinor` (`backoffice.people.balances.list.response.200.balances.receivableMinor`; integer, required) — What the person owes back on the account, in minor units, an overdrawn bucket's shortfall included.
    - maximum: `9007199254740991` · minimum: `0`

### 400

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

#### Example

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

- `errorCode` (`backoffice.people.balances.list.response.400.errorCode`; string, required)
- `errorMessage` (`backoffice.people.balances.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

- `errorCode` (`backoffice.people.balances.list.response.401.errorCode`; string, required)
- `errorMessage` (`backoffice.people.balances.list.response.401.errorMessage`; string, required)

### 403

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

#### Example

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

- `errorCode` (`backoffice.people.balances.list.response.403.errorCode`; string, required)
- `errorMessage` (`backoffice.people.balances.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/backoffice/backoffice.people.balances.list/index.md
