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

Path: Nicer API › backoffice

`GET /backoffice/operations`

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

Returns the five exception queues a person must clear, each at most 200 rows: unticketed (flights Nicer sold through checkout that are BOOKED with no ticket issued, newest first), staleObservations (BOOKED or HELD orders whose latest read at the provider failed, the latest failure first), uncollected (commission items still UPCOMING, DUE or OVERDUE, the largest balance owed first), unmatchedPayments (Nicer charges that SUCCEEDED on orders that never became a booking, newest first) and duplicates (one payer holding the same product on the same accepted terms on more than one BOOKED or HELD order, the most orders first). Every row names its agency and its order, so it can be opened. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's queues; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

## Authentication

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

## Header parameters

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

### Nicer CLI

```bash
nicer backoffice operations list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "duplicates": [
    {
      "bookings": 2,
      "companyName": "string",
      "currency": "string",
      "orderIds": [
        "string",
        "string"
      ],
      "payerEmail": "string",
      "productName": "BOG → MDE · MDE → BOG",
      "providerProductId": "string",
      "totalMinor": -9007199254740991
    }
  ],
  "staleObservations": [
    {
      "companyName": "string",
      "failures": 1,
      "lastObservedAt": "2019-08-24T14:15:22Z",
      "orderId": "string",
      "productName": "BOG → MDE · MDE → BOG",
      "providerLocator": "string",
      "status": "BOOKED"
    }
  ],
  "uncollected": [
    {
      "companyName": "string",
      "currency": "string",
      "dueOn": "2026-12-31",
      "expectedMinor": 9007199254740991,
      "orderId": "string",
      "paymentStatus": "UPCOMING",
      "productName": "BOG → MDE · MDE → BOG",
      "providerKey": "string",
      "providerLocator": "string",
      "receivedMinor": -9007199254740991,
      "varianceMinor": -9007199254740991
    }
  ],
  "unmatchedPayments": [
    {
      "amountMinor": 9007199254740991,
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "currency": "string",
      "orderId": "string",
      "orderStatus": "DRAFT",
      "paymentAttemptId": "string",
      "productName": "BOG → MDE · MDE → BOG"
    }
  ],
  "unticketed": [
    {
      "advisorUserId": "string",
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "currency": "string",
      "orderId": "string",
      "productName": "BOG → MDE · MDE → BOG",
      "productType": "PLANNING_FEE",
      "providerLocator": "string",
      "totalMinor": -9007199254740991
    }
  ]
}
```

- `duplicates` (`backoffice.operations.list.response.200.duplicates`; array of object, required) — Possible duplicates, the most orders first. At most 200.
  - `bookings` (`backoffice.operations.list.response.200.duplicates.bookings`; integer, required) — How many orders hold the product.
    - maximum: `9007199254740991` · minimum: `2`
  - `companyName` (`backoffice.operations.list.response.200.duplicates.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `currency` (`backoffice.operations.list.response.200.duplicates.currency`; any of, required) — The orders' currency; null when they carry no amount.
    - any of the following: `CurrencyCode`, `null`
  - `orderIds` (`backoffice.operations.list.response.200.duplicates.orderIds`; array of string, required) — The orders that hold the product, oldest first.
    - minLength: `1`
  - `payerEmail` (`backoffice.operations.list.response.200.duplicates.payerEmail`; string, required) — The payer's email, lower-cased: the same on every order. Personal data.
    - minLength: `1`
  - `productName` (`backoffice.operations.list.response.200.duplicates.productName`; any of, required) — The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.
    - any of the following: `string`, `null`
  - `providerProductId` (`backoffice.operations.list.response.200.duplicates.providerProductId`; any of, required) — The provider's id for the product the orders hold; null when it gave none.
    - any of the following: `string`, `null`
  - `totalMinor` (`backoffice.operations.list.response.200.duplicates.totalMinor`; any of, required) — The orders' totals added up, in minor units; null when none carries an amount.
    - any of the following: `integer`, `null`
- `staleObservations` (`backoffice.operations.list.response.200.staleObservations`; array of object, required) — Reservations the provider stopped confirming, the latest failure first. At most 200.
  - `companyName` (`backoffice.operations.list.response.200.staleObservations.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `failures` (`backoffice.operations.list.response.200.staleObservations.failures`; integer, required) — How many reads of the reservation have failed in a row, counting back from the latest.
    - maximum: `9007199254740991` · minimum: `1`
  - `lastObservedAt` (`backoffice.operations.list.response.200.staleObservations.lastObservedAt`; string, required) — When the reservation monitor last tried to read the reservation, and failed.
    - 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))$`
  - `orderId` (`backoffice.operations.list.response.200.staleObservations.orderId`; string, required) — The order's id.
    - minLength: `1`
  - `productName` (`backoffice.operations.list.response.200.staleObservations.productName`; any of, required) — The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.
    - any of the following: `string`, `null`
  - `providerLocator` (`backoffice.operations.list.response.200.staleObservations.providerLocator`; any of, required) — The booking's locator at the provider (the Booking ID of a flight), once it exists.
    - any of the following: `string`, `null`
  - `status` (`backoffice.operations.list.response.200.staleObservations.status`; string, required) — The order's status: BOOKED or HELD.
    - one of `"BOOKED"`, `"HELD"`
- `uncollected` (`backoffice.operations.list.response.200.uncollected`; array of object, required) — Commission not collected, the largest balance still owed first. At most 200.
  - `companyName` (`backoffice.operations.list.response.200.uncollected.companyName`; string, required) — The agency whose booking earns the commission.
    - minLength: `1`
  - `currency` (`backoffice.operations.list.response.200.uncollected.currency`; string, required) — The commission's currency.
    - pattern: `^[A-Z]{3}$`
  - `dueOn` (`backoffice.operations.list.response.200.uncollected.dueOn`; string, required) — The day the commission is due.
    - 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])))$`
  - `expectedMinor` (`backoffice.operations.list.response.200.uncollected.expectedMinor`; integer, required) — The commission expected, in minor units.
    - maximum: `9007199254740991` · minimum: `0`
  - `orderId` (`backoffice.operations.list.response.200.uncollected.orderId`; string, required) — The order the commission is earned on.
    - minLength: `1`
  - `paymentStatus` (`backoffice.operations.list.response.200.uncollected.paymentStatus`; string, required) — Where the item's money stands: UPCOMING before travel ends, DUE or OVERDUE after. Nothing arrived yet: any payment makes an item PAID and takes it off this queue.
    - one of `"UPCOMING"`, `"DUE"`, `"OVERDUE"`
  - `productName` (`backoffice.operations.list.response.200.uncollected.productName`; any of, required) — The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.
    - any of the following: `string`, `null`
  - `providerKey` (`backoffice.operations.list.response.200.uncollected.providerKey`; string, required) — The provider the order was booked with.
  - `providerLocator` (`backoffice.operations.list.response.200.uncollected.providerLocator`; any of, required) — The booking's locator as the commission item records it; null when it records none.
    - any of the following: `string`, `null`
  - `receivedMinor` (`backoffice.operations.list.response.200.uncollected.receivedMinor`; integer, required) — The commission received so far, net of reversals, in minor units; below zero after a clawback.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `varianceMinor` (`backoffice.operations.list.response.200.uncollected.varianceMinor`; integer, required) — Received minus expected, in minor units: negative while money is still owed.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `unmatchedPayments` (`backoffice.operations.list.response.200.unmatchedPayments`; array of object, required) — Charges whose trip never happened, the newest first. At most 200.
  - `amountMinor` (`backoffice.operations.list.response.200.unmatchedPayments.amountMinor`; integer, required) — The amount captured, in minor units.
    - maximum: `9007199254740991` · minimum: `0`
  - `companyName` (`backoffice.operations.list.response.200.unmatchedPayments.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `createdAt` (`backoffice.operations.list.response.200.unmatchedPayments.createdAt`; string, required) — When the charge was made.
    - 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` (`backoffice.operations.list.response.200.unmatchedPayments.currency`; string, required) — The charge's currency.
    - pattern: `^[A-Z]{3}$`
  - `orderId` (`backoffice.operations.list.response.200.unmatchedPayments.orderId`; string, required) — The order the charge was made for.
    - minLength: `1`
  - `orderStatus` (`backoffice.operations.list.response.200.unmatchedPayments.orderStatus`; string, required) — The order's status: one that never became a booking (FAILED, NEEDS_ATTENTION, EXPIRED or DRAFT).
    - one of `"DRAFT"`, `"EXPIRED"`, `"FAILED"`, `"NEEDS_ATTENTION"`
  - `paymentAttemptId` (`backoffice.operations.list.response.200.unmatchedPayments.paymentAttemptId`; string, required) — The payment attempt that captured the money.
    - minLength: `1`
  - `productName` (`backoffice.operations.list.response.200.unmatchedPayments.productName`; any of, required) — The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.
    - any of the following: `string`, `null`
- `unticketed` (`backoffice.operations.list.response.200.unticketed`; array of object, required) — Flights booked but not ticketed, the newest first. At most 200.
  - `advisorUserId` (`backoffice.operations.list.response.200.unticketed.advisorUserId`; any of, required) — The advisor credited with the order: the one assigned to it, else the one who booked it or whose provider profile it came in on; null when no advisor is credited.
    - any of the following: `string`, `null`
  - `companyName` (`backoffice.operations.list.response.200.unticketed.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `createdAt` (`backoffice.operations.list.response.200.unticketed.createdAt`; string, required) — When the order was created.
    - 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` (`backoffice.operations.list.response.200.unticketed.currency`; any of, required) — The currency of every amount on the row; null when the order carries no amount.
    - any of the following: `CurrencyCode`, `null`
  - `orderId` (`backoffice.operations.list.response.200.unticketed.orderId`; string, required) — The order's id.
    - minLength: `1`
  - `productName` (`backoffice.operations.list.response.200.unticketed.productName`; any of, required) — The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.
    - any of the following: `string`, `null`
  - `productType` (`backoffice.operations.list.response.200.unticketed.productType`; string, required) — What the order sells.
    - one of `"PLANNING_FEE"`, `"EXTRA_PAYMENT"`, `"HOTEL"`, `"FLIGHT"`, `"INSURANCE"`, `"CAR_RENTAL"`
  - `providerLocator` (`backoffice.operations.list.response.200.unticketed.providerLocator`; any of, required) — The booking's locator at the provider (the Booking ID of a flight), once it exists.
    - any of the following: `string`, `null`
  - `totalMinor` (`backoffice.operations.list.response.200.unticketed.totalMinor`; any of, required) — The order's total, in minor units; null when the order carries no amount.
    - any of the following: `integer`, `null`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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