Skip to content
Navigation

List commission exports

GET
https://api.nicer.travel/commerce/commission-exports

The company's exports, newest first (25 by default, at most 100, keyset-paged), without download links. Advisors see the exports they requested; agency admins and finance staff all of the company's.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • limit
    optional
    integer
    maximum: 100 · minimum: 1
  • status
    optional
    string
    minLength: 1

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
    • columns
      array of
      string
      required
      pattern: ^[A-Z][A-Z0-9_]{0,63}$
    • 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))$
    • downloadUrl
      required

      Any of the following:

      • string
      • null
    • errorCode
      required

      Any of the following:

      • string
        COMMISSION_EXPORT_TOO_LARGE
        or
        COMMISSION_EXPORT_TIMED_OUT
        or
        COMMISSION_EXPORT_FAILED
      • null
    • expiresAt
      required

      Any of the following:

      • string
      • null
    • exportId
      string
      required
      minLength: 1
    • fileName
      string
      required
      minLength: 1
    • finishedAt
      required

      Any of the following:

      • string
      • null
    • filter
      map of
      unknown
      required
    • format
      CSV
      or
      XLSX
      or
      PDF
      required
    • groupBy
      required

      Any of the following:

      • ExportColumn
      • null
    • presetId
      required

      Any of the following:

      • string
      • null
    • requestedByUserId
      string
      required
      minLength: 1
    • rowCount
      required

      Any of the following:

      • integer
      • null
    • sizeBytes
      required

      Any of the following:

      • integer
      • null
    • startedAt
      required

      Any of the following:

      • string
      • null
    • status
      QUEUED
      or
      RUNNING
      or
      READY
      or
      FAILED
      or
      EXPIRED
      required
    • subject
      string
      ·
      one of 10 values
      required
      Allowed values: COMMISSION_ITEMS, PAYMENTS, REMITTANCES, STATEMENTS, SUPPLIERS, PAYEES, PAYOUTS, COMMISSION_INVOICES, EARNINGS, AGENCY
    • totalsOnly
      boolean
      required
  • 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