---
title: "List orders 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.

# List orders in the back office

Path: Nicer API › backoffice

`GET /backoffice/orders`

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

Lists orders for the back office, newest first, 50 a page (limit, at most 100), paged with nextToken; total counts every page. One list serves the orders page, a hotel (hotelReference), a trip (travelersTripId), an advisor (advisorUserId, the advisor credited with the order) and a payer (payerUserId). from and to are UTC days of the order's creation, both included; without them the list reads the last 90 days, or every date when it is narrowed by one of those four ids. status, productType, currency (UNKNOWN for orders without an amount) and entryMethod (RECORDED for every order recorded from a provider) narrow it further, and q searches the order id, provider locator, payer email, hotel reference, product name, supplier confirmation and the names of the people on the order. Lodging orders carry the property facts they were sold with. The agency is named by the x-nicer-company header and nothing else: Nicer staff who name none read every agency's orders; with an agency named, staff and its admins read that agency's. An agency admin may name only an agency they administer, and may leave the header out when they administer one. The providerKey field is answered to Nicer staff only, and the providerKey filter is staff only too. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 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, and for an admin who sends providerKey.

## Authentication

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

## Query parameters

- `advisorUserId` (`backoffice.orders.list.query.advisorUserId`; string, optional) — Only the orders credited to this advisor: the one assigned to the order, else the one who booked it or whose provider profile it came in on.
  - minLength: `1`
- `currency` (`backoffice.orders.list.query.currency`; any of, optional) — Only the orders in this currency; UNKNOWN for the orders that carry no amount.
  - example: `"USD"`
  - any of the following: `CurrencyCode`, `string`
- `entryMethod` (`backoffice.orders.list.query.entryMethod`; string, optional) — Only the orders that entered Nicer this way; RECORDED for every order recorded from a provider.
  - one of `"CHECKOUT"`, `"IMPORT"`, `"MANUAL"`, `"RECORDED"`
- `from` (`backoffice.orders.list.query.from`; string, optional) — The first UTC day of the orders' creation, included. When neither from nor to is sent, the last 90 days, unless the list is narrowed by travelersTripId, hotelReference, advisorUserId or payerUserId, which reads every date.
  - 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"`
- `hotelReference` (`backoffice.orders.list.query.hotelReference`; string, optional) — Only the orders at this property.
  - minLength: `1` · example: `"htl_s_8k2f9"`
- `limit` (`backoffice.orders.list.query.limit`; integer, optional) — How many orders a page holds, 1 to 100; 50 by default.
  - maximum: `100` · minimum: `1` · default: `50`
- `nextToken` (`backoffice.orders.list.query.nextToken`; string, optional) — The nextToken of the previous page, to read the next one.
  - minLength: `1`
- `payerUserId` (`backoffice.orders.list.query.payerUserId`; string, optional) — Only the orders this person pays for.
  - minLength: `1`
- `productType` (`backoffice.orders.list.query.productType`; string, optional) — Only the orders that sell this product.
  - one of `"PLANNING_FEE"`, `"EXTRA_PAYMENT"`, `"HOTEL"`, `"FLIGHT"`, `"INSURANCE"`, `"CAR_RENTAL"`
- `providerKey` (`backoffice.orders.list.query.providerKey`; string, optional) — Only the orders booked with this provider. Nicer staff only: an agency admin who sends it gets 403.
- `q` (`backoffice.orders.list.query.q`; string, optional) — Free text, matched case-insensitively anywhere in the order id, the provider locator, the payer email, the hotel reference, the product name (the route of a flight), the supplier confirmation or the name of any person on the order.
  - maxLength: `200` · minLength: `1` · example: `"MDE"`
- `status` (`backoffice.orders.list.query.status`; string, optional) — Only the orders in this status.
  - one of `"DRAFT"`, `"AWAITING_PAYMENT"`, `"HOLDING"`, `"HELD"`, `"PAYMENT_PROCESSING"`, `"TICKETING"`, `"BOOKED"`, `"CANCELLATION_PROCESSING"`, `"CANCELLED"`, `"EXPIRED"`, `"NEEDS_ATTENTION"`, `"FAILED"`
- `to` (`backoffice.orders.list.query.to`; string, optional) — The last UTC day of the orders' creation, included; today by default. A from without a to reads up to today; a to without a from reads the 90 days before it.
  - 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"`
- `travelersTripId` (`backoffice.orders.list.query.travelersTripId`; string, optional) — Only the orders of this trip.
  - minLength: `1`

## Header parameters

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

### Nicer CLI

```bash
nicer backoffice orders list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "advisorUserId": "string",
      "bookingOrigin": "NICER",
      "committedAt": "2019-08-24T14:15:22Z",
      "companyName": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "currency": "string",
      "dueAtPropertyMinor": -9007199254740991,
      "dueLaterMinor": -9007199254740991,
      "dueNowMinor": -9007199254740991,
      "entryMethod": "CHECKOUT",
      "expiresAt": "2019-08-24T14:15:22Z",
      "fulfillmentState": "NOT_STARTED",
      "hotel": {
        "address": "string",
        "chainName": "string",
        "checkIn": "2026-12-12",
        "checkOut": "2026-12-15",
        "city": "string",
        "countryCode": "string",
        "imageUrl": "http://example.com",
        "starRating": 5
      },
      "hotelReference": "htl_s_8k2f9",
      "itineraryItemId": "string",
      "orderId": "string",
      "payerEmail": "string",
      "payerUserId": "string",
      "paymentState": "NOT_STARTED",
      "productName": "BOG → MDE · MDE → BOG",
      "productType": "PLANNING_FEE",
      "providerKey": "string",
      "providerLocator": "string",
      "reservationState": "NOT_STARTED",
      "status": "DRAFT",
      "supplierConfirmation": "string",
      "totalMinor": -9007199254740991,
      "travelDates": {
        "end": "2026-12-15",
        "start": "2026-12-12"
      },
      "travelerCount": 9007199254740991,
      "travelerNames": [
        "string"
      ],
      "travelersTripId": "string",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "nextToken": "string",
  "currencies": [
    "string"
  ],
  "exchangeRates": {
    "source": "CurrencyBeacon",
    "updatedAt": "2019-08-24T14:15:22Z",
    "rates": {
      "property1": 0,
      "property2": 0
    }
  },
  "total": 9007199254740991
}
```

- `items` (`backoffice.orders.list.response.200.items`; array of object, required) — The items of this page.
  - `advisorUserId` (`backoffice.orders.list.response.200.items.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`
  - `bookingOrigin` (`backoffice.orders.list.response.200.items.bookingOrigin`; string, required) — NICER when the booking was made through Nicer, EXTERNAL when it was made elsewhere and recorded, UNKNOWN when the provider did not say.
    - one of `"NICER"`, `"EXTERNAL"`, `"UNKNOWN"`
  - `committedAt` (`backoffice.orders.list.response.200.items.committedAt`; any of, required) — When the order left DRAFT and became a booking; null before.
    - any of the following: `string`, `null`
  - `companyName` (`backoffice.orders.list.response.200.items.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `createdAt` (`backoffice.orders.list.response.200.items.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))$`
  - `createdByUserId` (`backoffice.orders.list.response.200.items.createdByUserId`; any of, required) — The user id of who created the order, when one did.
    - any of the following: `string`, `null`
  - `currency` (`backoffice.orders.list.response.200.items.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`
  - `dueAtPropertyMinor` (`backoffice.orders.list.response.200.items.dueAtPropertyMinor`; any of, required) — The part of the total paid at the property, in minor units; null for an order recorded from a provider.
    - any of the following: `integer`, `null`
  - `dueLaterMinor` (`backoffice.orders.list.response.200.items.dueLaterMinor`; any of, required) — The part of the total charged later, in minor units; null for an order recorded from a provider.
    - any of the following: `integer`, `null`
  - `dueNowMinor` (`backoffice.orders.list.response.200.items.dueNowMinor`; any of, required) — The part of the total charged at checkout, in minor units; null for an order recorded from a provider.
    - any of the following: `integer`, `null`
  - `entryMethod` (`backoffice.orders.list.response.200.items.entryMethod`; string, required) — CHECKOUT when Nicer sold the order, and every amount is present; IMPORT or MANUAL when it was recorded from a provider.
    - one of `"CHECKOUT"`, `"IMPORT"`, `"MANUAL"`
  - `expiresAt` (`backoffice.orders.list.response.200.items.expiresAt`; any of, required) — When an unpaid checkout lapses; null for an order recorded from a provider.
    - any of the following: `string`, `null`
  - `fulfillmentState` (`backoffice.orders.list.response.200.items.fulfillmentState`; string, required) — Where the order's documents (tickets, confirmations, policies, vouchers) stand.
    - one of `"NOT_STARTED"`, `"PENDING_ISSUANCE"`, `"PARTIALLY_ISSUED"`, `"ISSUED"`, `"FAILED"`, `"UNKNOWN"`
  - `hotelReference` (`backoffice.orders.list.response.200.items.hotelReference`; any of, required) — Nicer's reference for the property of a lodging order; null for other products.
    - any of the following: `string`, `null`
  - `itineraryItemId` (`backoffice.orders.list.response.200.items.itineraryItemId`; any of, required) — The itinerary item the order was booked from, if any.
    - any of the following: `string`, `null`
  - `orderId` (`backoffice.orders.list.response.200.items.orderId`; string, required) — The order's id.
    - minLength: `1`
  - `payerEmail` (`backoffice.orders.list.response.200.items.payerEmail`; any of, required) — The payer's email, lower-cased, when the order has one.
    - any of the following: `string`, `null`
  - `payerUserId` (`backoffice.orders.list.response.200.items.payerUserId`; any of, required) — The payer's user id, when the payer has an account.
    - any of the following: `string`, `null`
  - `paymentState` (`backoffice.orders.list.response.200.items.paymentState`; string, required) — Where the traveler's payment stands.
    - one of `"NOT_STARTED"`, `"AWAITING_METHOD"`, `"REQUIRES_ACTION"`, `"PROCESSING"`, `"AUTHORIZED"`, `"SUCCEEDED"`, `"DECLINED"`, `"CANCELLED"`, `"PARTIALLY_REFUNDED"`, `"REFUNDED"`, `"UNKNOWN"`
  - `productName` (`backoffice.orders.list.response.200.items.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.orders.list.response.200.items.productType`; string, required) — What the order sells.
    - one of `"PLANNING_FEE"`, `"EXTRA_PAYMENT"`, `"HOTEL"`, `"FLIGHT"`, `"INSURANCE"`, `"CAR_RENTAL"`
  - `providerLocator` (`backoffice.orders.list.response.200.items.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`
  - `reservationState` (`backoffice.orders.list.response.200.items.reservationState`; string, required) — Where the reservation at the provider stands.
    - one of `"NOT_STARTED"`, `"HOLDING"`, `"HELD"`, `"CONFIRMED"`, `"CANCELLATION_PROCESSING"`, `"CANCELLED"`, `"EXPIRED"`, `"UNKNOWN"`
  - `status` (`backoffice.orders.list.response.200.items.status`; string, required) — The order's overall status.
    - one of `"DRAFT"`, `"AWAITING_PAYMENT"`, `"HOLDING"`, `"HELD"`, `"PAYMENT_PROCESSING"`, `"TICKETING"`, `"BOOKED"`, `"CANCELLATION_PROCESSING"`, `"CANCELLED"`, `"EXPIRED"`, `"NEEDS_ATTENTION"`, `"FAILED"`
  - `supplierConfirmation` (`backoffice.orders.list.response.200.items.supplierConfirmation`; any of, required) — The supplier's own confirmation, as recorded from the provider; null when none was recorded.
    - any of the following: `string`, `null`
  - `totalMinor` (`backoffice.orders.list.response.200.items.totalMinor`; any of, required) — The order's total, in minor units; null when the order carries no amount.
    - any of the following: `integer`, `null`
  - `travelDates` (`backoffice.orders.list.response.200.items.travelDates`; object, required) — The first and last travel moment: the recorded service's dates, else the hotel's check-in and check-out, else the first departure and last arrival of a flight. A day (YYYY-MM-DD) or an ISO 8601 date-time; null when unknown.
    - `end` (`backoffice.orders.list.response.200.items.travelDates.end`; any of, required)
      - any of the following: `string`, `null`
    - `start` (`backoffice.orders.list.response.200.items.travelDates.start`; any of, required)
      - any of the following: `string`, `null`
  - `travelerCount` (`backoffice.orders.list.response.200.items.travelerCount`; integer, required) — How many participants of the order travel (role TRAVELER).
    - maximum: `9007199254740991` · minimum: `0`
  - `travelerNames` (`backoffice.orders.list.response.200.items.travelerNames`; array of string, required) — The names of the order's travelers (role TRAVELER), in the order's slot order. A traveler without a name is left out.
    - minLength: `1`
  - `travelersTripId` (`backoffice.orders.list.response.200.items.travelersTripId`; any of, required) — The trip the order belongs to, if any.
    - any of the following: `string`, `null`
  - `updatedAt` (`backoffice.orders.list.response.200.items.updatedAt`; string, required) — When the order last changed.
    - 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))$`
  - `hotel` (`backoffice.orders.list.response.200.items.hotel`; object, optional) — The property facts sold with the order. Present on lodging (HOTEL) orders only.
    - `address` (`backoffice.orders.list.response.200.items.hotel.address`; any of, required) — The property's address, as sold.
      - any of the following: `string`, `null`
    - `chainName` (`backoffice.orders.list.response.200.items.hotel.chainName`; any of, required) — The hotel chain, when the property belongs to one.
      - any of the following: `string`, `null`
    - `checkIn` (`backoffice.orders.list.response.200.items.hotel.checkIn`; any of, required) — The check-in day.
      - any of the following: `string`, `null`
    - `checkOut` (`backoffice.orders.list.response.200.items.hotel.checkOut`; any of, required) — The check-out day.
      - any of the following: `string`, `null`
    - `city` (`backoffice.orders.list.response.200.items.hotel.city`; any of, required) — The property's city.
      - any of the following: `string`, `null`
    - `countryCode` (`backoffice.orders.list.response.200.items.hotel.countryCode`; any of, required) — The property's country, ISO 3166-1 alpha-2.
      - any of the following: `CountryCode`, `null`
    - `imageUrl` (`backoffice.orders.list.response.200.items.hotel.imageUrl`; any of, required) — The property's first photo.
      - any of the following: `string`, `null`
    - `starRating` (`backoffice.orders.list.response.200.items.hotel.starRating`; any of, required) — The property's star rating, 0 to 5.
      - any of the following: `number`, `null`
  - `providerKey` (`backoffice.orders.list.response.200.items.providerKey`; string, optional) — The provider the order was booked with. Nicer staff only: left out for an agency admin.
- `nextToken` (`backoffice.orders.list.response.200.nextToken`; any of, required) — Send it back as nextToken to read the next page; null on the last page.
  - any of the following: `string`, `null`
- `currencies` (`backoffice.orders.list.response.200.currencies`; array of string, required) — Every currency the agency's orders use (every agency's for the whole platform), whatever the other filters: the choices of the currency filter.
  - pattern: `^[A-Z]{3}$`
- `exchangeRates` (`backoffice.orders.list.response.200.exchangeRates`; any of, required) — The latest stored reference exchange rates, to show amounts in another currency; null when they cannot be read. Never the rate a payment used.
  - any of the following:
    - `ExchangeRateSnapshot`
      - `source` (`ExchangeRateSnapshot.source`; string, required)
      - `updatedAt` (`ExchangeRateSnapshot.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))$`
      - `rates` (`ExchangeRateSnapshot.rates`; map of number, required)
    - `null`
- `total` (`backoffice.orders.list.response.200.total`; integer, required) — How many orders match the filters, across every page: the same from one page to the next.
  - maximum: `9007199254740991` · minimum: `0`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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