Skip to content
Navigation

List statements

GET
https://api.nicer.travel/commerce/statements

The company's payee statements, newest cycle first (25 by default, at most 100, keyset-paged by cycle date): number, payee, cycle date and period, status, earnings, adjustments and total. Advisors see their own; agency admins every payee of the company; finance staff any company, audited.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • currency
    optional
    string
    pattern: ^[A-Z]{3}$
  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • 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])))$
  • limit
    optional
    integer
    maximum: 100 · minimum: 1
  • payeeId
    optional
    string
    maxLength: 255 · minLength: 1
  • payeeKind
    optional
    ADVISOR
    or
    COMPANY
  • status
    optional
    string
    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])))$

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
    • adjustmentsMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • approvedAt
      required

      Any of the following:

      • string
      • null
    • approvedByUserId
      required

      Any of the following:

      • string
      • null
    • closedAt
      required

      Any of the following:

      • string
      • null
    • companyName
      string
      required
      minLength: 1
    • createdAt
      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))$
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • cycleOn
      string
      required
      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])))$
    • earningsMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • lineCount
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • number
      string
      required
      minLength: 1
    • paidAt
      required

      Any of the following:

      • string
      • null
    • payeeId
      string
      required
      minLength: 1
    • payeeKind
      ADVISOR
      or
      COMPANY
      required
    • periodEnd
      string
      required
      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])))$
    • periodStart
      string
      required
      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])))$
    • statementId
      string
      required
      minLength: 1
    • status
      OPEN
      or
      PENDING_APPROVAL
      or
      APPROVED
      or
      PAID
      or
      VOID
      required
    • totalMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • 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))$
    • version
      integer
      required
      maximum: 9007199254740991
    • voidReason
      required

      Any of the following:

      • string
      • null
  • 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