Skip to content
Navigation

List advisor earnings

GET
https://api.nicer.travel/commerce/finance/earnings

Lists the company's earning entries, the last changed first, optionally filtered by beneficiary and status: a page of limit (50 by default, 200 at most), with nextCursor to send back as cursor while more remain. Advisors and travelers see their own; admins anyone's of the company, and Nicer staff anyone's of the company they name in x-nicer-company (each staff read is audited).

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • beneficiaryId
    optional
    string
    minLength: 1
  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • limit
    optional
    integer
    maximum: 200 · minimum: 1 · default: 50
  • status
    optional
    PENDING
    or
    AVAILABLE
    or
    REVERSED

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
    • amount
      object
      required
      • amountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
    • beneficiaryId
      string
      required
      minLength: 1
    • beneficiaryKind
      ADVISOR
      or
      COMPANY
      or
      TRAVELER
      required
    • commissionItemId
      required

      Any of the following:

      • string
      • null
    • earningId
      string
      required
      minLength: 1
    • earningKind
      string
      ·
      one of 7 values
      required
      Allowed values: ADJUSTMENT, ADVISOR_COMMISSION, AGENCY_COMMISSION, HOST_SHARE, PLANNING_FEE, REFERRAL_COMMISSION, TRAVELER_REWARD
    • entryType
      EARNING
      or
      REVERSAL
      or
      CLAWBACK
      required
    • orderId
      required

      Any of the following:

      • string
      • null
    • status
      PENDING
      or
      AVAILABLE
      or
      REVERSED
      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))$
  • nextCursor
    required

    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