Skip to content
Navigation

Get the commission summary

GET
https://api.nicer.travel/commerce/commissions/summary

The commission dashboard for the same filter as the list: totals per currency (expected, received, balance, overdue, due in the next 30 days), counts and amounts by status and by aging bucket, and the ten suppliers that owe the most; and the same in the reporting currency (reportingTotals, reportingByStatus with the revenue, reportingByAgingBucket, reportingTopSuppliers, in reportingCurrency, US dollars, counted as Sion counts them: each item's revenue at its rate frozen when its first money arrived or it was written off, today's until then; its commission what it received once paid, else its expected amount at today's rate; items needing a rate their currency lacks are left out and named in unconvertedCurrencies). Without from/to the period is the current calendar year on the date field. Cancelled and written-off items count by status but not in balances; an item that earns nothing reads UPCOMING until its travel ends, then PAID.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • advisorUserId
    optional
    string
    maxLength: 4096 · minLength: 1
  • agingBucket
    optional
    string
    minLength: 1
  • category
    optional
    string
    minLength: 1
  • dateField
    optional
    TRAVEL_END
    or
    TRAVEL_START
    or
    BOOKED
    or
    DUE
  • from
    optional
    string
    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])))$
  • identifierId
    optional
    string
    maxLength: 4096 · minLength: 1
  • kind
    optional
    string
    minLength: 1
  • needsReview
    optional
    true
    or
    false
  • q
    optional
    string
    maxLength: 100 · minLength: 2
  • source
    optional
    string
    minLength: 1
  • status
    optional
    string
    minLength: 1
  • supplierId
    optional
    string
    minLength: 1
  • tag
    optional
    string
    maxLength: 64 · minLength: 1
  • to
    optional
    string
    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])))$
  • view
    optional
    BOOKINGS
    or
    RECEIVABLES

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • byAgingBucket
    array of
    object
    required
    • agingBucket
      NOT_TRAVELED
      or
      0_30
      or
      31_60
      or
      61_90
      or
      91_180
      or
      180_PLUS
      required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
  • byStatus
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • paymentStatus
      UPCOMING
      or
      DUE
      or
      OVERDUE
      or
      PAID
      or
      CANCELLED
      or
      NOT_COMMISSIONABLE
      required
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • period
    object
    required
    • dateField
      TRAVEL_END
      or
      TRAVEL_START
      or
      BOOKED
      or
      DUE
      required
    • from
      required

      Any of the following:

      • string
      • null
    • to
      required

      Any of the following:

      • string
      • null
  • reportingByAgingBucket
    array of
    object
    required
    • agingBucket
      NOT_TRAVELED
      or
      0_30
      or
      31_60
      or
      61_90
      or
      91_180
      or
      180_PLUS
      required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
  • reportingByStatus
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • paymentStatus
      UPCOMING
      or
      DUE
      or
      OVERDUE
      or
      PAID
      or
      CANCELLED
      or
      NOT_COMMISSIONABLE
      required
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • grossMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • reportingCurrency
    string
    required
    pattern: ^[A-Z]{3}$
  • reportingTopSuppliers
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • name
      required

      Any of the following:

      • string
      • null
    • supplierId
      required

      Any of the following:

      • string
      • null
  • reportingTotals
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • dueNext30Minor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • overdueCount
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • overdueMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • grossMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • topSuppliers
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • name
      required

      Any of the following:

      • string
      • null
    • supplierId
      required

      Any of the following:

      • string
      • null
  • totals
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • count
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • dueNext30Minor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • overdueCount
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • overdueMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • unconvertedCurrencies
    array of
    string
    required
    pattern: ^[A-Z]{3}$

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