---
title: "Get provider performance 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 provider performance in the back office

Path: Nicer API › backoffice

`GET /backoffice/providers`

URL: `https://api.nicer.travel/backoffice/providers`

Returns how each provider performed in a period (UTC days, from and to included, the last 90 days by default): the orders created in it by provider, product and currency, whatever their status (value sold, bookings, cancellations, and failures: FAILED or NEEDS_ATTENTION); the calls made to providers in it by provider and operation (how many, succeeded, failed or declined, and the average time); and the commission items on its orders by provider, payment status and currency (expected and received). Sold means BOOKED. Every amount is in its row's own currency, never converted. range is the period read, after the defaults. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's; with none, every agency's. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad day or a from after to; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

## Authentication

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

## Query parameters

- `from` (`backoffice.providers.list.query.from`; string, optional) — The period's first UTC day, included; 90 days before to by default.
  - 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])))$` · example: `"2026-08-12"`
- `to` (`backoffice.providers.list.query.to`; string, optional) — The period's last UTC day, included; today by default.
  - 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])))$` · example: `"2026-11-10"`

## Header parameters

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

### Nicer CLI

```bash
nicer backoffice providers list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "commissions": [
    {
      "count": 9007199254740991,
      "currency": "string",
      "expectedMinor": -9007199254740991,
      "providerKey": "string",
      "receivedMinor": -9007199254740991,
      "status": "UPCOMING"
    }
  ],
  "operations": [
    {
      "avgSeconds": 0,
      "failed": 9007199254740991,
      "kind": "REVALIDATE",
      "operations": 9007199254740991,
      "providerKey": "string",
      "succeeded": 9007199254740991
    }
  ],
  "range": {
    "from": "2026-08-12",
    "to": "2026-11-10"
  },
  "sales": [
    {
      "bookings": 9007199254740991,
      "cancelled": 9007199254740991,
      "currency": "string",
      "failed": 9007199254740991,
      "productType": "PLANNING_FEE",
      "providerKey": "string",
      "soldMinor": -9007199254740991
    }
  ]
}
```

- `commissions` (`backoffice.providers.list.response.200.commissions`; array of object, required) — Commission by provider. One row per provider, payment status and currency, by provider, then status.
  - `count` (`backoffice.providers.list.response.200.commissions.count`; integer, required) — How many commission items.
    - maximum: `9007199254740991` · minimum: `0`
  - `currency` (`backoffice.providers.list.response.200.commissions.currency`; string, required) — The commission's currency.
    - pattern: `^[A-Z]{3}$`
  - `expectedMinor` (`backoffice.providers.list.response.200.commissions.expectedMinor`; integer, required) — The commission expected on the items, in minor units.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `providerKey` (`backoffice.providers.list.response.200.commissions.providerKey`; string, required) — The provider the orders were booked with.
  - `receivedMinor` (`backoffice.providers.list.response.200.commissions.receivedMinor`; integer, required) — The commission received on the items, net of reversals, in minor units.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `status` (`backoffice.providers.list.response.200.commissions.status`; string, required) — Where the items' money stands. Every status is counted, closed ones included.
    - one of `"UPCOMING"`, `"DUE"`, `"OVERDUE"`, `"PAID"`, `"CANCELLED"`, `"NOT_COMMISSIONABLE"`
- `operations` (`backoffice.providers.list.response.200.operations`; array of object, required) — Provider calls made in the period. One row per provider and operation, the most calls first.
  - `avgSeconds` (`backoffice.providers.list.response.200.operations.avgSeconds`; any of, required) — The average seconds a call took, over the calls that both started and finished; null when none did.
    - any of the following: `number`, `null`
  - `failed` (`backoffice.providers.list.response.200.operations.failed`; integer, required) — How many ended FAILED or DECLINED.
    - maximum: `9007199254740991` · minimum: `0`
  - `kind` (`backoffice.providers.list.response.200.operations.kind`; string, required) — What the calls asked the provider to do.
    - one of `"REVALIDATE"`, `"INITIATE"`, `"HOLD"`, `"RESERVE"`, `"CONFIRM"`, `"FULFILL"`, `"BOOK"`, `"TICKET"`, `"RETRIEVE"`, `"RECONCILE"`, `"CANCEL"`, `"VOID"`, `"REFUND"`
  - `operations` (`backoffice.providers.list.response.200.operations.operations`; integer, required) — How many calls. succeeded and failed do not add up to it: the rest are PENDING, RUNNING, UNKNOWN or CANCELLED.
    - maximum: `9007199254740991` · minimum: `0`
  - `providerKey` (`backoffice.providers.list.response.200.operations.providerKey`; string, required) — The provider called.
  - `succeeded` (`backoffice.providers.list.response.200.operations.succeeded`; integer, required) — How many SUCCEEDED.
    - maximum: `9007199254740991` · minimum: `0`
- `range` (`backoffice.providers.list.response.200.range`; object, required) — The UTC days a report covers, both included, after the defaults were applied.
  - `from` (`backoffice.providers.list.response.200.range.from`; string, required) — The period's first UTC day, included.
    - 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])))$`
  - `to` (`backoffice.providers.list.response.200.range.to`; string, required) — The period's last UTC day, included.
    - 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])))$`
- `sales` (`backoffice.providers.list.response.200.sales`; array of object, required) — Orders created in the period. One row per provider, product and currency, the most sold first.
  - `bookings` (`backoffice.providers.list.response.200.sales.bookings`; integer, required) — How many of the orders are BOOKED.
    - maximum: `9007199254740991` · minimum: `0`
  - `cancelled` (`backoffice.providers.list.response.200.sales.cancelled`; integer, required) — How many are CANCELLED.
    - maximum: `9007199254740991` · minimum: `0`
  - `currency` (`backoffice.providers.list.response.200.sales.currency`; any of, required) — The orders' currency; null for the orders that carry no amount.
    - any of the following: `CurrencyCode`, `null`
  - `failed` (`backoffice.providers.list.response.200.sales.failed`; integer, required) — How many are FAILED or NEEDS_ATTENTION.
    - maximum: `9007199254740991` · minimum: `0`
  - `productType` (`backoffice.providers.list.response.200.sales.productType`; string, required) — What the orders sell.
    - one of `"PLANNING_FEE"`, `"EXTRA_PAYMENT"`, `"HOTEL"`, `"FLIGHT"`, `"INSURANCE"`, `"CAR_RENTAL"`
  - `providerKey` (`backoffice.providers.list.response.200.sales.providerKey`; string, required) — The provider the orders were booked with.
  - `soldMinor` (`backoffice.providers.list.response.200.sales.soldMinor`; integer, required) — The total of the BOOKED orders, in minor units; 0 when none is booked.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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