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

Path: Nicer API › backoffice

`GET /backoffice/health`

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

Returns how the platform stands right now, not over a period: every order by current status and currency, whatever its date; the orders of the last 30 days that are NEEDS_ATTENTION or FAILED, as the order list has them (newest first, at most 200); the events Commerce has not yet published; the provider calls of the last 7 days by provider, operation and outcome; Nicer's own charges of the last 7 days by UTC day, status and currency; and how many BOOKED or HELD reservations are overdue for their next check. 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: 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.health.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.health.list();
```

### Nicer CLI

```bash
nicer backoffice health list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "attention": [
    {
      "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"
    }
  ],
  "outbox": {
    "failing": 9007199254740991,
    "maxAttempts": 9007199254740991,
    "oldestAvailableAt": "2019-08-24T14:15:22Z",
    "pending": 9007199254740991
  },
  "overdueChecks": 9007199254740991,
  "payments": [
    {
      "amountMinor": -9007199254740991,
      "attempts": 9007199254740991,
      "currency": "string",
      "day": "2026-11-10",
      "status": "REQUIRES_ACTION"
    }
  ],
  "providerOutcomes": [
    {
      "avgSeconds": 0,
      "kind": "REVALIDATE",
      "operations": 9007199254740991,
      "providerKey": "string",
      "status": "PENDING"
    }
  ],
  "statuses": [
    {
      "currency": "string",
      "orders": 9007199254740991,
      "status": "DRAFT",
      "totalMinor": -9007199254740991
    }
  ]
}
```

- `attention` (`backoffice.health.list.response.200.attention`; array of object, required) — The orders created in the last 30 days that are NEEDS_ATTENTION or FAILED, the states a person must clear; newest first, at most 200.
  - `advisorUserId` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.committedAt`; any of, required) — When the order left DRAFT and became a booking; null before.
    - any of the following: `string`, `null`
  - `companyName` (`backoffice.health.list.response.200.attention.companyName`; string, required) — The agency the order belongs to.
    - minLength: `1`
  - `createdAt` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.createdByUserId`; any of, required) — The user id of who created the order, when one did.
    - any of the following: `string`, `null`
  - `currency` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.itineraryItemId`; any of, required) — The itinerary item the order was booked from, if any.
    - any of the following: `string`, `null`
  - `orderId` (`backoffice.health.list.response.200.attention.orderId`; string, required) — The order's id.
    - minLength: `1`
  - `payerEmail` (`backoffice.health.list.response.200.attention.payerEmail`; any of, required) — The payer's email, lower-cased, when the order has one.
    - any of the following: `string`, `null`
  - `payerUserId` (`backoffice.health.list.response.200.attention.payerUserId`; any of, required) — The payer's user id, when the payer has an account.
    - any of the following: `string`, `null`
  - `paymentState` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.productType`; string, required) — What the order sells.
    - one of `"PLANNING_FEE"`, `"EXTRA_PAYMENT"`, `"HOTEL"`, `"FLIGHT"`, `"INSURANCE"`, `"CAR_RENTAL"`
  - `providerLocator` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.reservationState`; string, required) — Where the reservation at the provider stands.
    - one of `"NOT_STARTED"`, `"HOLDING"`, `"HELD"`, `"CONFIRMED"`, `"CANCELLATION_PROCESSING"`, `"CANCELLED"`, `"EXPIRED"`, `"UNKNOWN"`
  - `status` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.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.health.list.response.200.attention.travelDates.end`; any of, required)
      - any of the following: `string`, `null`
    - `start` (`backoffice.health.list.response.200.attention.travelDates.start`; any of, required)
      - any of the following: `string`, `null`
  - `travelerCount` (`backoffice.health.list.response.200.attention.travelerCount`; integer, required) — How many participants of the order travel (role TRAVELER).
    - maximum: `9007199254740991` · minimum: `0`
  - `travelerNames` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.travelersTripId`; any of, required) — The trip the order belongs to, if any.
    - any of the following: `string`, `null`
  - `updatedAt` (`backoffice.health.list.response.200.attention.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.health.list.response.200.attention.hotel`; object, optional) — The property facts sold with the order. Present on lodging (HOTEL) orders only.
    - `address` (`backoffice.health.list.response.200.attention.hotel.address`; any of, required) — The property's address, as sold.
      - any of the following: `string`, `null`
    - `chainName` (`backoffice.health.list.response.200.attention.hotel.chainName`; any of, required) — The hotel chain, when the property belongs to one.
      - any of the following: `string`, `null`
    - `checkIn` (`backoffice.health.list.response.200.attention.hotel.checkIn`; any of, required) — The check-in day.
      - any of the following: `string`, `null`
    - `checkOut` (`backoffice.health.list.response.200.attention.hotel.checkOut`; any of, required) — The check-out day.
      - any of the following: `string`, `null`
    - `city` (`backoffice.health.list.response.200.attention.hotel.city`; any of, required) — The property's city.
      - any of the following: `string`, `null`
    - `countryCode` (`backoffice.health.list.response.200.attention.hotel.countryCode`; any of, required) — The property's country, ISO 3166-1 alpha-2.
      - any of the following: `CountryCode`, `null`
    - `imageUrl` (`backoffice.health.list.response.200.attention.hotel.imageUrl`; any of, required) — The property's first photo.
      - any of the following: `string`, `null`
    - `starRating` (`backoffice.health.list.response.200.attention.hotel.starRating`; any of, required) — The property's star rating, 0 to 5.
      - any of the following: `number`, `null`
  - `providerKey` (`backoffice.health.list.response.200.attention.providerKey`; string, optional) — The provider the order was booked with. Nicer staff only: left out for an agency admin.
- `outbox` (`backoffice.health.list.response.200.outbox`; object, required) — The events Commerce wrote with a change and has not yet published to the other domains.
  - `failing` (`backoffice.health.list.response.200.outbox.failing`; integer, required) — How many of them failed their latest attempt to publish.
    - maximum: `9007199254740991` · minimum: `0`
  - `maxAttempts` (`backoffice.health.list.response.200.outbox.maxAttempts`; any of, required) — The most publish attempts any of them has had; null when none waits.
    - any of the following: `integer`, `null`
  - `oldestAvailableAt` (`backoffice.health.list.response.200.outbox.oldestAvailableAt`; any of, required) — When the oldest of them became due to publish; null when none waits.
    - any of the following: `string`, `null`
  - `pending` (`backoffice.health.list.response.200.outbox.pending`; integer, required) — How many events wait to be published.
    - maximum: `9007199254740991` · minimum: `0`
- `overdueChecks` (`backoffice.health.list.response.200.overdueChecks`; integer, required) — How many BOOKED or HELD orders the reservation monitor should have read again by now: the next check their latest read set is past.
  - maximum: `9007199254740991` · minimum: `0`
- `payments` (`backoffice.health.list.response.200.payments`; array of object, required) — Nicer's charges of the last 7 days. One row per UTC day, status and currency, the oldest day first.
  - `amountMinor` (`backoffice.health.list.response.200.payments.amountMinor`; integer, required) — The attempts' total, in minor units.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `attempts` (`backoffice.health.list.response.200.payments.attempts`; integer, required) — How many attempts.
    - maximum: `9007199254740991` · minimum: `0`
  - `currency` (`backoffice.health.list.response.200.payments.currency`; string, required) — The attempts' currency.
    - pattern: `^[A-Z]{3}$`
  - `day` (`backoffice.health.list.response.200.payments.day`; string, required) — The UTC day the attempts were made on.
    - 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])))$`
  - `status` (`backoffice.health.list.response.200.payments.status`; string, required) — The attempts' status. SUCCEEDED is money captured; AUTHORIZED is not money yet.
    - one of `"REQUIRES_ACTION"`, `"AUTHORIZED"`, `"PROCESSING"`, `"SUCCEEDED"`, `"DECLINED"`, `"UNKNOWN"`, `"CANCELLED"`
- `providerOutcomes` (`backoffice.health.list.response.200.providerOutcomes`; array of object, required) — Provider calls of the last 7 days. One row per provider, operation and outcome, the most calls first.
  - `avgSeconds` (`backoffice.health.list.response.200.providerOutcomes.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`
  - `kind` (`backoffice.health.list.response.200.providerOutcomes.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.health.list.response.200.providerOutcomes.operations`; integer, required) — How many calls.
    - maximum: `9007199254740991` · minimum: `0`
  - `providerKey` (`backoffice.health.list.response.200.providerOutcomes.providerKey`; string, required) — The provider called.
  - `status` (`backoffice.health.list.response.200.providerOutcomes.status`; string, required) — How the calls ended.
    - one of `"PENDING"`, `"RUNNING"`, `"SUCCEEDED"`, `"DECLINED"`, `"FAILED"`, `"UNKNOWN"`, `"CANCELLED"`
- `statuses` (`backoffice.health.list.response.200.statuses`; array of object, required) — Every order, of any date, by status and currency, the most orders first.
  - `currency` (`backoffice.health.list.response.200.statuses.currency`; any of, required) — The orders' currency; null for the orders that carry no amount.
    - any of the following: `CurrencyCode`, `null`
  - `orders` (`backoffice.health.list.response.200.statuses.orders`; integer, required) — How many orders.
    - maximum: `9007199254740991` · minimum: `0`
  - `status` (`backoffice.health.list.response.200.statuses.status`; string, required) — Where the orders stand now.
    - one of `"DRAFT"`, `"AWAITING_PAYMENT"`, `"HOLDING"`, `"HELD"`, `"PAYMENT_PROCESSING"`, `"TICKETING"`, `"BOOKED"`, `"CANCELLATION_PROCESSING"`, `"CANCELLED"`, `"EXPIRED"`, `"NEEDS_ATTENTION"`, `"FAILED"`
  - `totalMinor` (`backoffice.health.list.response.200.statuses.totalMinor`; any of, required) — The orders' totals added up, in minor units; null when none carries an 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.health.list.response.400.errorCode`; string, required)
- `errorMessage` (`backoffice.health.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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