Skip to content
Navigation

Get an import of bookings

GET
https://api.nicer.travel/commerce/commission-imports/{importId}

An import with a page of its rows (50 by default, at most 200, in file order; status keeps one kind of row): the cells as read (cleared once the import is committed), the values the mapping makes of them, and why a row is invalid or a duplicate. An advisor gets their own imports only, and of the emails mapped to members (advisors) only those mapped to them. Another company's import answers 404.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • importId
    string
    required

Query parameters

  • cursor
    optional
    string
    maxLength: 2048 · minLength: 1
  • limit
    optional
    integer
    maximum: 200 · minimum: 1
  • status
    optional
    VALID
    or
    INVALID
    or
    DUPLICATE
    or
    COMMITTED
    or
    SKIPPED

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • import
    object
    required
    • committedAt
      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))$
    • createdByUserId
      string
      required
      minLength: 1
    • errorCode
      required

      Any of the following:

      • string
      • null
    • fileName
      string
      required
      minLength: 1
    • format
      CSV
      or
      TSV
      or
      TXT
      or
      XLSX
      required
    • headers
      array of
      string
      required
    • jobId
      required

      Any of the following:

      • string
      • null
    • presetId
      required

      Any of the following:

      • string
      • null
    • sizeBytes
      integer
      required
      maximum: 9007199254740991
    • source
      FILE_IMPORT
      required
    • status
      string
      ·
      one of 9 values
      required
      Allowed values: AWAITING_UPLOAD, UPLOADED, PARSING, READY, COMMITTING, COMMITTED, UNDONE, DISCARDED, FAILED
    • 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))$
    • advisorUserId
      required

      Any of the following:

      • string
      • null
    • advisors
      array of
      object
      required
      • email
        string
        required
        maxLength: 254 · pattern: ^[^\s@A-Z]+@[^\s@A-Z]+$
      • userId
        string
        required
        maxLength: 255 · minLength: 1
    • counts
      object
      required
      • committed
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • duplicate
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • invalid
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • rows
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • valid
        integer
        required
        maximum: 9007199254740991 · minimum: 0
    • importId
      string
      required
      minLength: 1
    • kind
      BOOKINGS
      required
    • mapping
      required

      Any of the following:

      • BookingImportMapping
        • columns
          map of
          string
          required
        • defaults
          map of
          string
          required
        • dateFormat
          ISO
          or
          US
          or
          EU
          required
        • decimalSeparator
          .
          or
          ,
          required
        • headerRow
          integer
          required
          maximum: 50 · minimum: 1
        • sheet
          required

          Any of the following:

          • string
          • null
      • null
  • nextCursor
    required

    Any of the following:

    • string
    • null
  • rows
    array of
    object
    required
    • cells
      map of
      string
      required
    • commissionItemId
      required

      Any of the following:

      • string
      • null
    • errors
      array of
      object
      required
      • code
        string
        ·
        one of 9 values
        required
        Allowed values: REQUIRED, INVALID_DATE, INVALID_AMOUNT, INVALID_RATE, INVALID_VALUE, TRAVEL_END_BEFORE_START, NO_COMMISSION, UNKNOWN_IDENTIFIER, UNKNOWN_ADVISOR
      • field
        string
        ·
        one of 21 values
        required
        Allowed values: bookedOn, category, clientName, commission, confirmationNumber, currency, dueOn, externalReference, gross, identifierNumber, kind, note, paymentTermDays, providerLocator, quantity, rate, supplierName, tags, travelEnd, travelStart, advisorEmail
    • externalBookingId
      required

      Any of the following:

      • string
      • null
    • rowNumber
      integer
      required
      maximum: 9007199254740991
    • status
      VALID
      or
      INVALID
      or
      DUPLICATE
      or
      COMMITTED
      or
      SKIPPED
      required
    • values
      required

      Any of the following:

      • ImportRowValues
        • bookedOn
          required

          Any of the following:

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

          Any of the following:

          • integer
          • null
        • confirmationNumber
          required

          Any of the following:

          • string
          • null
        • currency
          string
          required
          pattern: ^[A-Z]{3}$
        • dueOn
          required

          Any of the following:

          • string
          • null
        • externalReference
          required

          Any of the following:

          • string
          • null
        • grossMinor
          required

          Any of the following:

          • integer
          • null
        • identifierNumber
          required

          Any of the following:

          • string
          • null
        • kind
          SUPPLIER_COMMISSION
          or
          CLIENT_NET_MARKUP
          or
          CLIENT_FEE
          required
        • note
          required

          Any of the following:

          • string
          • null
        • paymentTermDays
          required

          Any of the following:

          • integer
          • null
        • providerLocator
          required

          Any of the following:

          • string
          • null
        • quantity
          integer
          required
          maximum: 9007199254740991
        • rateBps
          required

          Any of the following:

          • integer
          • null
        • supplierName
          string
          required
          minLength: 1
        • tags
          array of
          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])))$
        • advisorEmail
          optional
          string
          maxLength: 254 · pattern: ^[^\s@A-Z]+@[^\s@A-Z]+$
      • 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