Skip to content
Navigation

Get the operations queues in the back office

GET
https://api.nicer.travel/backoffice/operations

Returns the five exception queues a person must clear, each at most 200 rows: unticketed (flights Nicer sold through checkout that are BOOKED with no ticket issued, newest first), staleObservations (BOOKED or HELD orders whose latest read at the provider failed, the latest failure first), uncollected (commission items still UPCOMING, DUE or OVERDUE, the largest balance owed first), unmatchedPayments (Nicer charges that SUCCEEDED on orders that never became a booking, newest first) and duplicates (one payer holding the same product on the same accepted terms on more than one BOOKED or HELD order, the most orders first). Every row names its agency and its order, so it can be opened. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's queues; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

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
  • duplicates
    array of
    object
    required

    Possible duplicates, the most orders first. At most 200.

    • bookings
      integer
      required

      How many orders hold the product.

      maximum: 9007199254740991 · minimum: 2
    • companyName
      string
      required

      The agency the order belongs to.

      minLength: 1
    • currency
      required

      The orders' currency; null when they carry no amount.

      Any of the following:

      • CurrencyCode
      • null
    • orderIds
      array of
      string
      required

      The orders that hold the product, oldest first.

      minLength: 1
    • payerEmail
      string
      required

      The payer's email, lower-cased: the same on every order. Personal data.

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

      The provider's id for the product the orders hold; null when it gave none.

      Any of the following:

      • string
      • null
    • totalMinor
      required

      The orders' totals added up, in minor units; null when none carries an amount.

      Any of the following:

      • integer
      • null
  • staleObservations
    array of
    object
    required

    Reservations the provider stopped confirming, the latest failure first. At most 200.

    • companyName
      string
      required

      The agency the order belongs to.

      minLength: 1
    • failures
      integer
      required

      How many reads of the reservation have failed in a row, counting back from the latest.

      maximum: 9007199254740991 · minimum: 1
    • lastObservedAt
      string
      required

      When the reservation monitor last tried to read the reservation, and failed.

      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

      The order's id.

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

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

      Any of the following:

      • string
      • null
    • status
      BOOKED
      or
      HELD
      required

      The order's status: BOOKED or HELD.

  • uncollected
    array of
    object
    required

    Commission not collected, the largest balance still owed first. At most 200.

    • companyName
      string
      required

      The agency whose booking earns the commission.

      minLength: 1
    • currency
      string
      required

      The commission's currency.

      pattern: ^[A-Z]{3}$
    • dueOn
      string
      required

      The day the commission is due.

      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])))$
    • expectedMinor
      integer
      required

      The commission expected, in minor units.

      maximum: 9007199254740991 · minimum: 0
    • orderId
      string
      required

      The order the commission is earned on.

      minLength: 1
    • paymentStatus
      UPCOMING
      or
      DUE
      or
      OVERDUE
      required

      Where the item's money stands: UPCOMING before travel ends, DUE or OVERDUE after. Nothing arrived yet: any payment makes an item PAID and takes it off this queue.

    • 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
    • providerKey
      string
      required

      The provider the order was booked with.

    • providerLocator
      required

      The booking's locator as the commission item records it; null when it records none.

      Any of the following:

      • string
      • null
    • receivedMinor
      integer
      required

      The commission received so far, net of reversals, in minor units; below zero after a clawback.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • varianceMinor
      integer
      required

      Received minus expected, in minor units: negative while money is still owed.

      maximum: 9007199254740991 · minimum: -9007199254740991
  • unmatchedPayments
    array of
    object
    required

    Charges whose trip never happened, the newest first. At most 200.

    • amountMinor
      integer
      required

      The amount captured, in minor units.

      maximum: 9007199254740991 · minimum: 0
    • companyName
      string
      required

      The agency the order belongs to.

      minLength: 1
    • createdAt
      string
      required

      When the charge was made.

      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))$
    • currency
      string
      required

      The charge's currency.

      pattern: ^[A-Z]{3}$
    • orderId
      string
      required

      The order the charge was made for.

      minLength: 1
    • orderStatus
      DRAFT
      or
      EXPIRED
      or
      FAILED
      or
      NEEDS_ATTENTION
      required

      The order's status: one that never became a booking (FAILED, NEEDS_ATTENTION, EXPIRED or DRAFT).

    • paymentAttemptId
      string
      required

      The payment attempt that captured the money.

      minLength: 1
    • 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
  • unticketed
    array of
    object
    required

    Flights booked but not ticketed, the newest first. At most 200.

    • 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
    • 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))$
    • currency
      required

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

      Any of the following:

      • CurrencyCode
      • null
    • orderId
      string
      required

      The order's id.

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

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

      Any of the following:

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