Skip to content
Navigation

Get a commission export

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

One export and its progress. While READY, each read signs a download link that works for 15 minutes and records the download in the audit log; after 7 days the export answers EXPIRED without a link. Advisors read the exports they requested; agency admins and finance staff any export of the company. Another company's export answers 404.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • exportId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • 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

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