---
title: "List trips 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 trips in the back office

Path: Nicer API › backoffice

`GET /backoffice/trips`

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

Lists trips for the back office, newest first, with the fields a list shows (read the whole record with GET /backoffice/trips/{travelersTripId}). The agency is named by the x-nicer-company header and nothing else. In an agency: its trips, 50 a page (limit, at most 200), paged with nextToken. Nicer staff who name no agency get the newest trips of every agency in one page, nextToken null; this view returns at most limit trips, so it is capped, not complete. With userId: the trips that person is on, in any relationship, newest first, in one page, each with isArchived (whether they archived it); for an agency admin, only the ones in their agency. Nicer staff may name any agency or none; an agency admin may name only an agency they administer, and may leave the header out when they administer one. Errors: 400 ERROR_INVALID_QUERY for a bad limit or token; 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`

## Query parameters

- `limit` (`backoffice.trips.list.query.limit`; integer, optional) — How many trips a page holds, 1 to 200; 50 by default. Not used with userId.
  - maximum: `200` · minimum: `1` · default: `50`
- `nextToken` (`backoffice.trips.list.query.nextToken`; string, optional) — The nextToken of the previous page, to read the next one. Only an agency's list has more than one page.
  - minLength: `1`
- `userId` (`backoffice.trips.list.query.userId`; string, optional) — Lists the trips this person is on, in any relationship, instead of the agency's.
  - minLength: `1`

## Header parameters

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

### Nicer CLI

```bash
nicer backoffice trips list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "assignedAdvisorUserId": "string",
      "associatedTripItineraryId": "string",
      "associatedUserIds": [
        "string"
      ],
      "budget": "goodValue",
      "companyName": "string",
      "createdAt": "2026-11-02T15:04:05.000Z",
      "createdBy": "string",
      "createdReason": "CREATED_BY_TRAVELER",
      "deleted": true,
      "destinations": [
        {
          "address": "string",
          "amenities": [
            "string"
          ],
          "city": "string",
          "country": "string",
          "countryCode": "string",
          "description": "string",
          "distanceFromSearch": {
            "unit": "km",
            "value": 0
          },
          "features": [
            "string"
          ],
          "fullAddress": "string",
          "gate": "string",
          "iataCode": "string",
          "internovaId": "string",
          "latitude": 0,
          "longitude": 0,
          "name": "string",
          "photos": [
            {
              "key": "string",
              "name": "string",
              "url": "string"
            }
          ],
          "placeId": "string",
          "region": "string",
          "source": "string",
          "state": "string",
          "terminal": "string",
          "timeZone": "string",
          "zipCode": "string",
          "endDateTime": "string",
          "headerImageUrl": "string",
          "startDateTime": "string"
        }
      ],
      "hasActivity": true,
      "primaryTravelerUserId": "string",
      "travelers": {
        "adults": 0,
        "children": 0
      },
      "travelersTripId": "string",
      "tripEndDate": "2026-12-20",
      "tripStartDate": "2026-12-12",
      "tripTitle": "string",
      "updatedAt": "2026-11-03T09:12:44.000Z",
      "isArchived": true
    }
  ],
  "nextToken": "string"
}
```

- `items` (`backoffice.trips.list.response.200.items`; array of object, required) — The items of this page.
  - `associatedUserIds` (`backoffice.trips.list.response.200.items.associatedUserIds`; array of string, required) — The user id of every person on the trip, in any relationship.
  - `companyName` (`backoffice.trips.list.response.200.items.companyName`; string, required) — The agency the trip belongs to.
  - `createdAt` (`backoffice.trips.list.response.200.items.createdAt`; string, required) — When the trip was created, ISO 8601.
  - `createdBy` (`backoffice.trips.list.response.200.items.createdBy`; string, required) — The user id of who created the trip.
  - `destinations` (`backoffice.trips.list.response.200.items.destinations`; array of object, required) — Where the trip goes, in order, each place with its first and last day (YYYY-MM-DD).
    - `endDateTime` (`backoffice.trips.list.response.200.items.destinations.endDateTime`; string, required)
      - pattern: `^\d{4}-\d{2}-\d{2}$`
    - `startDateTime` (`backoffice.trips.list.response.200.items.destinations.startDateTime`; string, required)
      - pattern: `^\d{4}-\d{2}-\d{2}$`
    - `address` (`backoffice.trips.list.response.200.items.destinations.address`; any of, optional)
      - any of the following: `string`, `null`
    - `amenities` (`backoffice.trips.list.response.200.items.destinations.amenities`; array of string, optional)
    - `city` (`backoffice.trips.list.response.200.items.destinations.city`; any of, optional)
      - any of the following: `string`, `null`
    - `country` (`backoffice.trips.list.response.200.items.destinations.country`; string, optional)
    - `countryCode` (`backoffice.trips.list.response.200.items.destinations.countryCode`; string, optional)
    - `description` (`backoffice.trips.list.response.200.items.destinations.description`; string, optional)
    - `distanceFromSearch` (`backoffice.trips.list.response.200.items.destinations.distanceFromSearch`; object, optional)
      - `unit` (`backoffice.trips.list.response.200.items.destinations.distanceFromSearch.unit`; string, required)
        - one of `"km"`, `"mi"`
      - `value` (`backoffice.trips.list.response.200.items.destinations.distanceFromSearch.value`; number, required)
    - `features` (`backoffice.trips.list.response.200.items.destinations.features`; array of string, optional)
    - `fullAddress` (`backoffice.trips.list.response.200.items.destinations.fullAddress`; string, optional)
    - `gate` (`backoffice.trips.list.response.200.items.destinations.gate`; any of, optional)
      - any of the following: `string`, `null`
    - `iataCode` (`backoffice.trips.list.response.200.items.destinations.iataCode`; any of, optional)
      - any of the following: `string`, `null`
    - `internovaId` (`backoffice.trips.list.response.200.items.destinations.internovaId`; string, optional)
    - `latitude` (`backoffice.trips.list.response.200.items.destinations.latitude`; number, optional)
    - `longitude` (`backoffice.trips.list.response.200.items.destinations.longitude`; number, optional)
    - `name` (`backoffice.trips.list.response.200.items.destinations.name`; string, optional)
    - `photos` (`backoffice.trips.list.response.200.items.destinations.photos`; array of object, optional)
      - `name` (`backoffice.trips.list.response.200.items.destinations.photos.name`; string, required)
      - `key` (`backoffice.trips.list.response.200.items.destinations.photos.key`; string, optional)
      - `url` (`backoffice.trips.list.response.200.items.destinations.photos.url`; string, optional)
    - `placeId` (`backoffice.trips.list.response.200.items.destinations.placeId`; string, optional)
    - `region` (`backoffice.trips.list.response.200.items.destinations.region`; string, optional)
    - `source` (`backoffice.trips.list.response.200.items.destinations.source`; string, optional)
    - `state` (`backoffice.trips.list.response.200.items.destinations.state`; any of, optional)
      - any of the following: `string`, `null`
    - `terminal` (`backoffice.trips.list.response.200.items.destinations.terminal`; any of, optional)
      - any of the following: `string`, `null`
    - `timeZone` (`backoffice.trips.list.response.200.items.destinations.timeZone`; string, optional)
    - `zipCode` (`backoffice.trips.list.response.200.items.destinations.zipCode`; any of, optional)
      - any of the following: `string`, `null`
    - `headerImageUrl` (`backoffice.trips.list.response.200.items.destinations.headerImageUrl`; string, optional)
  - `primaryTravelerUserId` (`backoffice.trips.list.response.200.items.primaryTravelerUserId`; string, required) — The user id of the trip's lead traveler.
  - `travelersTripId` (`backoffice.trips.list.response.200.items.travelersTripId`; string, required) — The trip's id.
  - `tripEndDate` (`backoffice.trips.list.response.200.items.tripEndDate`; string, required) — The trip's last day.
  - `tripStartDate` (`backoffice.trips.list.response.200.items.tripStartDate`; string, required) — The trip's first day.
  - `tripTitle` (`backoffice.trips.list.response.200.items.tripTitle`; string, required) — The trip's name.
  - `updatedAt` (`backoffice.trips.list.response.200.items.updatedAt`; string, required) — When the trip last changed, ISO 8601.
  - `assignedAdvisorUserId` (`backoffice.trips.list.response.200.items.assignedAdvisorUserId`; any of, optional) — The user id of the advisor responsible for the trip; null or absent while none is assigned.
    - any of the following: `string`, `null`
  - `associatedTripItineraryId` (`backoffice.trips.list.response.200.items.associatedTripItineraryId`; any of, optional) — The trip's itinerary, once its advisor started one; null or absent before.
    - any of the following: `string`, `null`
  - `budget` (`backoffice.trips.list.response.200.items.budget`; any of, optional) — The kind of budget the traveler asked for: goodValue or luxury.
    - any of the following: `string`, `string`
  - `createdReason` (`backoffice.trips.list.response.200.items.createdReason`; string, optional) — How the trip came to be: created by the traveler, by an advisor, by a matching advisor or by a booking.
    - one of `"CREATED_BY_TRAVELER"`, `"CREATED_BY_ADVISOR"`, `"CREATED_BY_MATCHING_ADVISOR"`, `"CREATED_BY_BOOKING"`
  - `deleted` (`backoffice.trips.list.response.200.items.deleted`; boolean, optional) — True once the trip was deleted. Deleted trips are listed too.
  - `hasActivity` (`backoffice.trips.list.response.200.items.hasActivity`; boolean, optional) — True once the traveler approved a segment or an order was placed on the trip.
  - `travelers` (`backoffice.trips.list.response.200.items.travelers`; object, optional) — How many adults and children travel.
    - `adults` (`backoffice.trips.list.response.200.items.travelers.adults`; number, optional)
    - `children` (`backoffice.trips.list.response.200.items.travelers.children`; number, optional)
  - `isArchived` (`backoffice.trips.list.response.200.items.isArchived`; boolean, optional) — Whether the person named by userId archived the trip in their own list. Present only on a list read with userId.
- `nextToken` (`backoffice.trips.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`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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