Skip to content
Navigation

Get a commission item

GET
https://api.nicer.travel/commerce/commissions/{commissionItemId}

One commission item: its status and money, the booking facts, the identifier it was booked under, every revision, notes, attachments, and the actions the caller may run now. An advisor reads their own items; an admin the agency's, and a host the items it receives money for. Another company's item answers 404.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • commissionItemId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • advisorUserId
    required

    Any of the following:

    • string
    • null
  • agingBucket
    NOT_TRAVELED
    or
    0_30
    or
    31_60
    or
    61_90
    or
    91_180
    or
    180_PLUS
    required
  • balanceMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • bookedOn
    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])))$
  • category
    string
    ·
    one of 12 values
    required
    Allowed values: HOTEL, CRUISE, TOUR, DMC, FLIGHT, CAR_RENTAL, RAIL, INSURANCE, TRANSFER, CONCIERGE, FEE, OTHER
  • clientName
    string
    required
    minLength: 1
  • collectedByNicer
    boolean
    required
  • commissionItemId
    string
    required
    minLength: 1
  • companyName
    string
    required
    minLength: 1
  • confirmationNumber
    required

    Any of the following:

    • string
    • null
  • currency
    string
    required
    pattern: ^[A-Z]{3}$
  • daysPastDue
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • dueOn
    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])))$
  • expectedMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • externalBookingId
    required

    Any of the following:

    • string
    • null
  • grossMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • isCommissionable
    boolean
    required
  • isFlagged
    boolean
    required
  • isOverdue
    boolean
    required
  • kind
    SUPPLIER_COMMISSION
    or
    CLIENT_NET_MARKUP
    or
    CLIENT_FEE
    required
  • lastReceivedOn
    required

    Any of the following:

    • string
    • null
  • needsReview
    boolean
    required
  • number
    string
    required
    minLength: 1
  • orderId
    required

    Any of the following:

    • string
    • null
  • paymentStatus
    UPCOMING
    or
    DUE
    or
    OVERDUE
    or
    PAID
    or
    CANCELLED
    or
    NOT_COMMISSIONABLE
    required
  • percentPaid
    required

    Any of the following:

    • number
    • null
  • providerLocator
    required

    Any of the following:

    • string
    • null
  • receivedMinor
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991
  • receivingCompanyName
    string
    required
    minLength: 1
  • source
    CHECKOUT
    or
    GDS_IMPORT
    or
    MANUAL
    or
    FILE_IMPORT
    required
  • supplier
    object
    required
    • name
      required

      Any of the following:

      • string
      • null
    • supplierId
      required

      Any of the following:

      • string
      • null
    • verified
      boolean
      required
  • tags
    array of
    string
    required
    maxLength: 64 · 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])))$
  • 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))$
  • allowedActions
    array of
    string
    ·
    one of 14 values
    required
    Allowed values: CHANGE_EXPECTED, CHANGE_DATES, SET_DUE_DATE, CANCEL, REOPEN, SET_COMMISSIONABLE, WRITE_OFF, CONFIRM_IMPORTED, REASSIGN_ADVISOR, SET_FLAG, ADD_NOTE, SET_TAGS, ADD_ATTACHMENT, REPORT_MISSING
  • attachments
    array of
    object
    required
    • attachmentId
      string
      required
      minLength: 1
    • contentType
      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
      string
      required
      format: uri
    • fileName
      string
      required
      minLength: 1
    • label
      required

      Any of the following:

      • string
      • null
    • sizeBytes
      integer
      required
      maximum: 9007199254740991
    • uploadedByUserId
      string
      required
      minLength: 1
  • cancelReason
    required

    Any of the following:

    • string
    • null
  • cancelledAt
    required

    Any of the following:

    • string
    • null
  • clientUserId
    required

    Any of the following:

    • string
    • null
  • commissionableMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • 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
  • expectationVersion
    integer
    required
    maximum: 9007199254740991
  • identifier
    required

    Any of the following:

    • CommissionIdentifierRef
      • identifierId
        string
        required
        minLength: 1
      • kind
        string
        required
        minLength: 1
      • number
        string
        required
        minLength: 1
    • null
  • notes
    array of
    object
    required
    • authorUserId
      string
      required
      minLength: 1
    • bodyMarkdown
      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))$
    • noteId
      string
      required
      minLength: 1
  • paymentTermDays
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • quantity
    integer
    required
    maximum: 9007199254740991
  • rateBps
    required

    Any of the following:

    • integer
    • null
  • revisions
    array of
    object
    required
    • actorUserId
      required

      Any of the following:

      • string
      • null
    • changedFields
      map of
      array<unknown>
      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))$
    • reason
      string
      required
      minLength: 1
    • version
      integer
      required
      maximum: 9007199254740991
  • supplierCostMinor
    integer
    required
    maximum: 9007199254740991 · minimum: 0
  • travelersTripId
    required

    Any of the following:

    • string
    • null
  • writeOffReason
    required

    Any of the following:

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