Skip to content
Navigation

List orders in the back office

GET
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.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • advisorUserId
    optional
    string

    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
    optional

    Only the orders in this currency; UNKNOWN for the orders that carry no amount.

    example: "USD"

    Any of the following:

    • CurrencyCode
    • string
  • entryMethod
    optional
    CHECKOUT
    or
    IMPORT
    or
    MANUAL
    or
    RECORDED

    Only the orders that entered Nicer this way; RECORDED for every order recorded from a provider.

  • from
    optional
    string

    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
    optional
    string

    Only the orders at this property.

    minLength: 1 · example: "htl_s_8k2f9"
  • limit
    optional
    integer

    How many orders a page holds, 1 to 100; 50 by default.

    maximum: 100 · minimum: 1 · default: 50
  • nextToken
    optional
    string

    The nextToken of the previous page, to read the next one.

    minLength: 1
  • payerUserId
    optional
    string

    Only the orders this person pays for.

    minLength: 1
  • productType
    optional
    PLANNING_FEE
    or
    EXTRA_PAYMENT
    or
    HOTEL
    or
    FLIGHT
    or
    INSURANCE
    or
    CAR_RENTAL

    Only the orders that sell this product.

  • providerKey
    optional
    string

    Only the orders booked with this provider. Nicer staff only: an agency admin who sends it gets 403.

  • q
    optional
    string

    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
    optional
    string
    ·
    one of 12 values

    Only the orders in this status.

    Allowed values: DRAFT, AWAITING_PAYMENT, HOLDING, HELD, PAYMENT_PROCESSING, TICKETING, BOOKED, CANCELLATION_PROCESSING, CANCELLED, EXPIRED, NEEDS_ATTENTION, FAILED
  • to
    optional
    string

    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
    optional
    string

    Only the orders of this trip.

    minLength: 1

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • advisorUserId
      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
      NICER
      or
      EXTERNAL
      or
      UNKNOWN
      required

      NICER when the booking was made through Nicer, EXTERNAL when it was made elsewhere and recorded, UNKNOWN when the provider did not say.

    • committedAt
      required

      When the order left DRAFT and became a booking; null before.

      Any of the following:

      • string
      • null
    • companyName
      string
      required

      The agency the order belongs to.

      minLength: 1
    • 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
      required

      The user id of who created the order, when one did.

      Any of the following:

      • string
      • null
    • currency
      required

      The currency of every amount on the row; null when the order carries no amount.

      Any of the following:

      • CurrencyCode
      • null
    • dueAtPropertyMinor
      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
      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
      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
      CHECKOUT
      or
      IMPORT
      or
      MANUAL
      required

      CHECKOUT when Nicer sold the order, and every amount is present; IMPORT or MANUAL when it was recorded from a provider.

    • expiresAt
      required

      When an unpaid checkout lapses; null for an order recorded from a provider.

      Any of the following:

      • string
      • null
    • fulfillmentState
      NOT_STARTED
      or
      PENDING_ISSUANCE
      or
      PARTIALLY_ISSUED
      or
      ISSUED
      or
      FAILED
      or
      UNKNOWN
      required

      Where the order's documents (tickets, confirmations, policies, vouchers) stand.

    • hotelReference
      required

      Nicer's reference for the property of a lodging order; null for other products.

      Any of the following:

      • string
      • null
    • itineraryItemId
      required

      The itinerary item the order was booked from, if any.

      Any of the following:

      • string
      • null
    • orderId
      string
      required

      The order's id.

      minLength: 1
    • payerEmail
      required

      The payer's email, lower-cased, when the order has one.

      Any of the following:

      • string
      • null
    • payerUserId
      required

      The payer's user id, when the payer has an account.

      Any of the following:

      • string
      • null
    • paymentState
      string
      ·
      one of 11 values
      required

      Where the traveler's payment stands.

      Allowed values: NOT_STARTED, AWAITING_METHOD, REQUIRES_ACTION, PROCESSING, AUTHORIZED, SUCCEEDED, DECLINED, CANCELLED, PARTIALLY_REFUNDED, REFUNDED, UNKNOWN
    • productName
      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
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required

      What the order sells.

    • providerLocator
      required

      The booking's locator at the provider (the Booking ID of a flight), once it exists.

      Any of the following:

      • string
      • null
    • reservationState
      string
      ·
      one of 8 values
      required

      Where the reservation at the provider stands.

      Allowed values: NOT_STARTED, HOLDING, HELD, CONFIRMED, CANCELLATION_PROCESSING, CANCELLED, EXPIRED, UNKNOWN
    • status
      string
      ·
      one of 12 values
      required

      The order's overall status.

      Allowed values: DRAFT, AWAITING_PAYMENT, HOLDING, HELD, PAYMENT_PROCESSING, TICKETING, BOOKED, CANCELLATION_PROCESSING, CANCELLED, EXPIRED, NEEDS_ATTENTION, FAILED
    • supplierConfirmation
      required

      The supplier's own confirmation, as recorded from the provider; null when none was recorded.

      Any of the following:

      • string
      • null
    • totalMinor
      required

      The order's total, in minor units; null when the order carries no amount.

      Any of the following:

      • integer
      • null
    • 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
        required

        Any of the following:

        • string
        • null
      • start
        required

        Any of the following:

        • string
        • null
    • travelerCount
      integer
      required

      How many participants of the order travel (role TRAVELER).

      maximum: 9007199254740991 · minimum: 0
    • 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
      required

      The trip the order belongs to, if any.

      Any of the following:

      • string
      • null
    • 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
      optional
      object

      The property facts sold with the order. Present on lodging (HOTEL) orders only.

      • address
        required

        The property's address, as sold.

        Any of the following:

        • string
        • null
      • chainName
        required

        The hotel chain, when the property belongs to one.

        Any of the following:

        • string
        • null
      • checkIn
        required

        The check-in day.

        Any of the following:

        • string
        • null
      • checkOut
        required

        The check-out day.

        Any of the following:

        • string
        • null
      • city
        required

        The property's city.

        Any of the following:

        • string
        • null
      • countryCode
        required

        The property's country, ISO 3166-1 alpha-2.

        Any of the following:

        • CountryCode
        • null
      • imageUrl
        required

        The property's first photo.

        Any of the following:

        • string
        • null
      • starRating
        required

        The property's star rating, 0 to 5.

        Any of the following:

        • number
        • null
    • providerKey
      optional
      string

      The provider the order was booked with. Nicer staff only: left out for an agency admin.

  • nextToken
    required

    Send it back as nextToken to read the next page; null on the last page.

    Any of the following:

    • string
    • null
  • 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
    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
        string
        required
      • 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
        map of
        number
        required
    • null
  • 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.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close