Skip to content
Navigation

Get a commission invoice

GET
https://api.nicer.travel/commerce/commission-invoices/{invoiceId}

One commission invoice with its lines and a link to its PDF signed for minutes (null until rendered). Agency admins and finance staff; another company's invoice answers 404; every staff read is audited.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • invoiceId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • amountBasis
    BALANCE
    or
    ESTIMATE
    or
    GROSS
    required
  • 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))$
  • createdByUserId
    required

    Any of the following:

    • string
    • null
  • currency
    string
    required
    pattern: ^[A-Z]{3}$
  • invoiceId
    string
    required
    minLength: 1
  • itemCount
    integer
    required
    maximum: 9007199254740991
  • kind
    SUPPLIER
    or
    CLIENT
    required
  • number
    string
    required
    minLength: 1
  • pdfUrl
    required

    Any of the following:

    • string
    • null
  • supplierId
    required

    Any of the following:

    • string
    • null
  • supplierName
    required

    Any of the following:

    • string
    • null
  • totalMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • version
    integer
    required
    maximum: 9007199254740991
  • lines
    array of
    object
    required
    • amountMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • clientName
      string
      required
      minLength: 1
    • commissionItemId
      string
      required
      minLength: 1
    • confirmationNumber
      required

      Any of the following:

      • string
      • null
    • itemCompanyName
      string
      required
      minLength: 1
    • number
      string
      required
      minLength: 1
    • travelEnd
      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])))$
    • travelStart
      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])))$

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