Skip to content
Navigation

Get provider performance in the back office

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

Returns how each provider performed in a period (UTC days, from and to included, the last 90 days by default): the orders created in it by provider, product and currency, whatever their status (value sold, bookings, cancellations, and failures: FAILED or NEEDS_ATTENTION); the calls made to providers in it by provider and operation (how many, succeeded, failed or declined, and the average time); and the commission items on its orders by provider, payment status and currency (expected and received). Sold means BOOKED. Every amount is in its row's own currency, never converted. range is the period read, after the defaults. 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: 400 ERROR_INVALID_QUERY for a bad day or a from after to; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • from
    optional
    string

    The period's first UTC day, included; 90 days before to by default.

    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"
  • to
    optional
    string

    The period's last UTC day, included; today by default.

    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"

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

    Commission by provider. One row per provider, payment status and currency, by provider, then status.

    • count
      integer
      required

      How many commission items.

      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required

      The commission's currency.

      pattern: ^[A-Z]{3}$
    • expectedMinor
      integer
      required

      The commission expected on the items, in minor units.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • providerKey
      string
      required

      The provider the orders were booked with.

    • receivedMinor
      integer
      required

      The commission received on the items, net of reversals, in minor units.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • status
      UPCOMING
      or
      DUE
      or
      OVERDUE
      or
      PAID
      or
      CANCELLED
      or
      NOT_COMMISSIONABLE
      required

      Where the items' money stands. Every status is counted, closed ones included.

  • operations
    array of
    object
    required

    Provider calls made in the period. One row per provider and operation, the most calls first.

    • avgSeconds
      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
    • failed
      integer
      required

      How many ended FAILED or DECLINED.

      maximum: 9007199254740991 · minimum: 0
    • kind
      string
      ·
      one of 13 values
      required

      What the calls asked the provider to do.

      Allowed values: REVALIDATE, INITIATE, HOLD, RESERVE, CONFIRM, FULFILL, BOOK, TICKET, RETRIEVE, RECONCILE, CANCEL, VOID, REFUND
    • operations
      integer
      required

      How many calls. succeeded and failed do not add up to it: the rest are PENDING, RUNNING, UNKNOWN or CANCELLED.

      maximum: 9007199254740991 · minimum: 0
    • providerKey
      string
      required

      The provider called.

    • succeeded
      integer
      required

      How many SUCCEEDED.

      maximum: 9007199254740991 · minimum: 0
  • range
    object
    required

    The UTC days a report covers, both included, after the defaults were applied.

    • from
      string
      required

      The period's first UTC day, included.

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

      The period's last UTC day, included.

      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])))$
  • sales
    array of
    object
    required

    Orders created in the period. One row per provider, product and currency, the most sold first.

    • bookings
      integer
      required

      How many of the orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • cancelled
      integer
      required

      How many are CANCELLED.

      maximum: 9007199254740991 · minimum: 0
    • currency
      required

      The orders' currency; null for the orders that carry no amount.

      Any of the following:

      • CurrencyCode
      • null
    • failed
      integer
      required

      How many are FAILED or NEEDS_ATTENTION.

      maximum: 9007199254740991 · minimum: 0
    • productType
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required

      What the orders sell.

    • providerKey
      string
      required

      The provider the orders were booked with.

    • soldMinor
      integer
      required

      The total of the BOOKED orders, in minor units; 0 when none is booked.

      maximum: 9007199254740991 · minimum: -9007199254740991

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