Skip to content
Navigation

Get the sales report in the back office

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

Returns the sales report of a period: of one agency, or of every agency for Nicer staff who name none. The period's sections all describe the orders created in it (UTC days, from and to included, the last 90 days by default), of the productType asked for, in the currency asked for (USD by default): sales by month and by day, the checkout funnel, Nicer's charges, booking values, open commission by status and by product, property and age, earnings, advisor production, flight routes and lead times. currencyTotals shows the period in every currency side by side; advisorBalances is what each advisor is owed now, whatever the period; currencies lists every currency the orders use. Sold means BOOKED and cancelled CANCELLED. The agency is named by the x-nicer-company header and nothing else. An agency admin may name only an agency they administer, and may leave the header out when they administer one. Nicer staff only: agencies, the ranking of agencies, answered only for the whole platform, and providerKey in byMonth and commissions; an admin's rows are not split by provider. 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.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • currency
    optional
    string

    The currency the money sections are in; USD by default. currencyTotals shows every currency whatever this is.

    pattern: ^[A-Z]{3}$ · default: "USD"
  • 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"
  • productType
    optional
    PLANNING_FEE
    or
    EXTRA_PAYMENT
    or
    HOTEL
    or
    FLIGHT
    or
    INSURANCE
    or
    CAR_RENTAL

    Only the orders that sell this product, in every section.

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

    What each advisor is owed now, in the currency asked for. One row per advisor.

    • advisorUserId
      string
      required

      The advisor, as the ledger's beneficiary.

      minLength: 1
    • availableMinor
      integer
      required

      What the advisor may be paid now, in minor units.

      maximum: 9007199254740991 · minimum: 0
    • companyName
      string
      required

      The agency whose ledger it is.

      minLength: 1
    • currency
      string
      required

      The balance's currency.

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

      What the advisor has earned but may not be paid yet, in minor units.

      maximum: 9007199254740991 · minimum: 0
    • receivableMinor
      integer
      required

      What the advisor owes back, in minor units, an overdrawn bucket included.

      maximum: 9007199254740991 · minimum: 0
  • advisors
    array of
    object
    required

    Advisor production. One row per month and advisor.

    • advisorUserId
      string
      required

      The advisor credited with the orders.

      minLength: 1
    • bookings
      integer
      required

      How many orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • companyName
      string
      required

      The advisor's agency.

      minLength: 1
    • currency
      string
      required

      The orders' currency.

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

      The UTC month the orders were created in.

      pattern: ^\d{4}-(?:0[1-9]|1[0-2])$
    • soldMinor
      integer
      required

      The total of the BOOKED orders, in minor units.

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

    Booked order values. One row per BOOKED order.

    • currency
      string
      required

      The order's currency.

      pattern: ^[A-Z]{3}$
    • productType
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required

      What the order sells.

    • totalMinor
      integer
      required

      The order's total, in minor units.

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

    Sales by month. One row per month and product.

    • bookings
      integer
      required

      How many orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • cancelledMinor
      integer
      required

      The total of the CANCELLED orders, in minor units.

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

      The orders' currency.

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

      The UTC month the orders were created in.

      pattern: ^\d{4}-(?:0[1-9]|1[0-2])$
    • productType
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required

      What the orders sell.

    • soldMinor
      integer
      required

      The total of the BOOKED orders, in minor units.

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

      The provider the orders were booked with. Nicer staff only: left out for an agency admin, whose rows are not split by provider.

  • commissionDetail
    array of
    object
    required

    Open commission by product, property and age. One row per status, product, property and age.

    • 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
    • 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. Only open items are counted: never CANCELLED or NOT_COMMISSIONABLE, and no written-off item.

    • ageDays
      integer
      required

      Days since travel ended, the clock suppliers pay against; 0 before travel ends.

      maximum: 9007199254740991 · minimum: 0
    • hotelReference
      required

      Nicer's reference for the property; null for other products.

      Any of the following:

      • string
      • null
    • productName
      required

      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 orders sell.

  • commissions
    array of
    object
    required

    Open commission. One row per payment status.

    • 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
    • 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. Only open items are counted: never CANCELLED or NOT_COMMISSIONABLE, and no written-off item.

    • count
      integer
      required

      How many commission items.

      maximum: 9007199254740991 · minimum: 0
    • varianceMinor
      integer
      required

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

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

      The provider the orders were booked with. Nicer staff only: left out for an agency admin, whose rows are not split by provider.

  • currencies
    array of
    string
    required

    Every currency the agency's orders use (every agency's for the whole platform), at any date: the choices of the currency filter.

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

    The currency every money section but currencyTotals is in.

    pattern: ^[A-Z]{3}$
  • currencyTotals
    array of
    object
    required

    The period in every currency. One row per currency.

    • bookings
      integer
      required

      How many orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • checkoutMinor
      integer
      required

      The total of the BOOKED orders Nicer sold through checkout, in minor units.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • currency
      required

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

      Any of the following:

      • CurrencyCode
      • null
    • orders
      integer
      required

      How many orders were created in the period.

      maximum: 9007199254740991 · minimum: 0
    • recordedMinor
      integer
      required

      The total of the BOOKED orders recorded from a provider (not sold through checkout), in minor units. Not money Nicer captured.

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

      How many orders carry no amount.

      maximum: 9007199254740991 · minimum: 0
    • unpricedBookings
      integer
      required

      How many BOOKED orders carry no amount or no currency.

      maximum: 9007199254740991 · minimum: 0
  • daily
    array of
    object
    required

    Bookings by day. One row per UTC day with orders.

    • bookings
      integer
      required

      How many orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • day
      string
      required

      The UTC day the orders were created 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])))$
    • soldMinor
      integer
      required

      The total of the BOOKED orders, in minor units.

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

    Earnings by who earns. One row per month, beneficiary kind, earning kind, entry type and status.

    • amountMinor
      integer
      required

      The earnings' total, in minor units.

      maximum: 9007199254740991 · minimum: -9007199254740991
    • beneficiaryKind
      ADVISOR
      or
      COMPANY
      or
      TRAVELER
      required

      Who earns: an advisor, the agency or a traveler. Nicer's own share is not an earning (it is booked in the ledger), so no row names NICER.

    • currency
      string
      required

      The earnings' currency.

      pattern: ^[A-Z]{3}$
    • earningKind
      string
      ·
      one of 7 values
      required

      What the earning is for.

      Allowed values: ADJUSTMENT, ADVISOR_COMMISSION, AGENCY_COMMISSION, HOST_SHARE, PLANNING_FEE, REFERRAL_COMMISSION, TRAVELER_REWARD
    • entryType
      EARNING
      or
      REVERSAL
      or
      CLAWBACK
      required

      EARNING, or the REVERSAL or CLAWBACK that takes one back.

    • month
      string
      required

      The UTC month the earning was booked in.

      pattern: ^\d{4}-(?:0[1-9]|1[0-2])$
    • status
      PENDING
      or
      AVAILABLE
      or
      REVERSED
      required

      Whether the earning is PENDING, AVAILABLE or REVERSED.

  • 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
  • funnel
    object
    required

    The checkout funnel of the period: orders placed through checkout, booked, and booked with a document issued.

    • booked
      integer
      required

      How many of them are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • fulfilled
      integer
      required

      How many of the BOOKED ones have at least one issued document.

      maximum: 9007199254740991 · minimum: 0
    • orders
      integer
      required

      How many orders were started through checkout in the period, unpaid drafts included.

      maximum: 9007199254740991 · minimum: 0
  • leadTimes
    array of
    object
    required

    Flight lead times. One row per bucket with legs.

    • bucket
      0_7
      or
      8_30
      or
      31_90
      or
      91_180
      or
      180_PLUS
      required

      Days between the order and the departure: 0_7, 8_30, 31_90, 91_180 or 180_PLUS (more than 180).

    • legs
      integer
      required

      How many legs.

      maximum: 9007199254740991 · minimum: 0
  • payments
    array of
    object
    required

    Nicer's charges. One row per month and status.

    • amountMinor
      integer
      required

      The attempts' total, in minor units.

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

      How many attempts.

      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required

      The attempts' currency.

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

      The UTC month the attempts were made in.

      pattern: ^\d{4}-(?:0[1-9]|1[0-2])$
    • status
      string
      ·
      one of 7 values
      required

      The attempts' status. SUCCEEDED is money captured; AUTHORIZED is not money yet.

      Allowed values: REQUIRES_ACTION, AUTHORIZED, PROCESSING, SUCCEEDED, DECLINED, UNKNOWN, CANCELLED
  • 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])))$
  • routes
    array of
    object
    required

    Flight routes. One row per origin, destination and airline.

    • destinationAirport
      string
      required

      Where the legs land.

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

      The average days between the order and the departure, over the legs of orders sold through checkout; null when there are none.

      Any of the following:

      • number
      • null
    • legs
      integer
      required

      How many legs.

      maximum: 9007199254740991 · minimum: 0
    • marketingCarrierCode
      string
      required

      The airline that sells the legs.

      pattern: ^[A-Z0-9]{2,3}$
    • originAirport
      string
      required

      Where the legs leave from.

      pattern: ^[A-Z]{3}$
  • agencies
    optional
    array of
    object

    The agency ranking. One row per agency and product. Nicer staff only, and only for the whole platform: absent when an agency is named.

    • bookings
      integer
      required

      How many orders are BOOKED.

      maximum: 9007199254740991 · minimum: 0
    • companyName
      string
      required

      The agency.

      minLength: 1
    • currency
      string
      required

      The orders' currency.

      pattern: ^[A-Z]{3}$
    • productType
      PLANNING_FEE
      or
      EXTRA_PAYMENT
      or
      HOTEL
      or
      FLIGHT
      or
      INSURANCE
      or
      CAR_RENTAL
      required

      What the orders sell.

    • soldMinor
      integer
      required

      The total of the BOOKED orders, in minor units.

      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