Skip to content
Navigation

List and filter orders

GET
https://api.nicer.travel/commerce/orders

Lists orders for the caller's company with filters for status, product kind, advisor, participant, payer, provider locator, trip, creation date range and free text, plus paging and sorting. The default view is the caller's own orders; the company view returns everyone's and requires the company name.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • advisorIds
    optional
    string
    minLength: 1
  • companyName
    optional
    string
    minLength: 1
  • createdFrom
    optional
    string
    pattern: ^\d{4}-\d{2}-\d{2}$
  • createdTo
    optional
    string
    pattern: ^\d{4}-\d{2}-\d{2}$
  • cursor
    optional
    string
    maxLength: 1500 · minLength: 1
  • hotelReference
    optional
    string
    maxLength: 500 · minLength: 1
  • includeTemporary
    optional
    false
    or
    true
    default: "false"
  • limit
    optional
    integer
    maximum: 200 · minimum: 1 · default: 50
  • originAirport
    optional
    string
    maxLength: 3 · minLength: 3
  • participantEmail
    optional
    string
    format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
  • participantPhone
    optional
    string
    pattern: ^\+[1-9]\d{7,14}$
  • participantUserId
    optional
    string
    minLength: 1
  • payerEmail
    optional
    string
    format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
  • payerPhone
    optional
    string
    pattern: ^\+[1-9]\d{7,14}$
  • payerUserId
    optional
    string
    minLength: 1
  • page
    optional
    integer
    maximum: 9007199254740991 · minimum: 0 · default: 0
  • productKinds
    optional
    string
    minLength: 1
  • providerLocator
    optional
    string
    maxLength: 255 · minLength: 1
  • search
    optional
    string
    maxLength: 200
  • sort
    optional
    createdAt_asc
    or
    createdAt_desc
    default: "createdAt_desc"
  • statuses
    optional
    string
    minLength: 1
  • travelersTripId
    optional
    string
    minLength: 1
  • view
    optional
    self
    or
    company
    default: "self"

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Returns

200

OK

JSON
  • items
    array of
    object
    required
    • entryMethod
      CHECKOUT
      or
      IMPORT
      or
      MANUAL
      required
      default: "CHECKOUT"
    • bookingOrigin
      NICER
      or
      EXTERNAL
      or
      UNKNOWN
      required
      default: "NICER"
    • bookedByUserId
      required

      Any of the following:

      • string
      • null
    • canCancel
      boolean
      required
    • companyName
      string
      required
      minLength: 1
    • committedAt
      required

      Any of the following:

      • string
      • null
    • createdAt
      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))$
    • orderId
      string
      required
      minLength: 1
    • price
      required

      Any of the following:

      • object
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • totalMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
      • null
    • productName
      string
      required
      minLength: 1
    • productType
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required
    • providerLocator
      required

      Any of the following:

      • string
      • null
    • status
      string
      ·
      one of 12 values
      required
      Allowed values: DRAFT, AWAITING_PAYMENT, HOLDING, HELD, PAYMENT_PROCESSING, TICKETING, BOOKED, CANCELLATION_PROCESSING, CANCELLED, EXPIRED, NEEDS_ATTENTION, FAILED
    • travelDates
      object
      required
      • end
        required

        Any of the following:

        • string
        • null
      • start
        required

        Any of the following:

        • string
        • null
    • travelersTripId
      required

      Any of the following:

      • string
      • null
    • paymentDeadline
      optional

      When a held order must be paid by. Null when the order is not held.

      Any of the following:

      • string
      • null
  • totalCount
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • nextCursor
    optional

    Any of the following:

    • string
    • null

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