Skip to content
Navigation

Get account balances

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

Returns the company's ledger balances by beneficiary and currency, optionally narrowed to one beneficiary or to a beneficiary kind (advisor, company, traveler or the platform). A bucket below zero is money still owed: it counts as receivable, never as a negative balance. 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
  • beneficiaryKind
    optional
    ADVISOR
    or
    COMPANY
    or
    NICER
    or
    TRAVELER

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • balances
    array of
    object
    required
    • accountCode
      string
      required
      minLength: 1
    • availableMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • beneficiaryId
      required

      Any of the following:

      • string
      • null
    • beneficiaryKind
      ADVISOR
      or
      COMPANY
      or
      NICER
      or
      TRAVELER
      required
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • pendingMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • receivableMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0

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