Skip to content
Navigation

Get a supplier

GET
https://api.nicer.travel/commerce/suppliers/{supplierId}

One supplier as the company sees it: the shared profile, the company's own terms and contacts, preferred programs, other systems' ids, and what the company booked, received and is owed with it per currency. An advisor gets the production of the bookings attributed to them only. Another company's supplier answers 404.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • supplierId
    string
    required

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • address
    required

    Any of the following:

    • SupplierAddress
      • city
        required

        Any of the following:

        • string
        • null
      • countryCode
        required

        Any of the following:

        • string
        • null
      • line1
        required

        Any of the following:

        • string
        • null
      • line2
        required

        Any of the following:

        • string
        • null
      • postalCode
        required

        Any of the following:

        • string
        • null
      • region
        required

        Any of the following:

        • string
        • null
    • null
  • contacts
    array of
    object
    required
    • email
      required

      Any of the following:

      • string
      • null
    • name
      required

      Any of the following:

      • string
      • null
    • notes
      required

      Any of the following:

      • string
      • null
    • phone
      required

      Any of the following:

      • string
      • null
    • role
      COMMISSIONS
      or
      ACCOUNTING
      or
      RESERVATIONS
      or
      SALES
      or
      OTHER
      required
    • shared
      boolean
      required
    • supplierContactId
      string
      required
      minLength: 1
  • defaults
    object
    required
    • commissionBps
      required

      Any of the following:

      • integer
      • null
    • commissionChannel
      required

      Any of the following:

      • CommissionChannel
      • null
    • paymentTermDays
      required

      Any of the following:

      • integer
      • null
  • identities
    array of
    object
    required
    • externalId
      string
      required
      minLength: 1
    • source
      string
      required
  • kind
    string
    ·
    one of 10 values
    required
    Allowed values: PROPERTY, CRUISE_LINE, TOUR_OPERATOR, DMC, AIRLINE, CAR_RENTAL, RAIL, INSURANCE, TRANSFER, OTHER
  • latitude
    required

    Any of the following:

    • number
    • null
  • longitude
    required

    Any of the following:

    • number
    • null
  • mergedIntoSupplierId
    required

    Any of the following:

    • string
    • null
  • name
    string
    required
    minLength: 1
  • phone
    required

    Any of the following:

    • string
    • null
  • production
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • bookings
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • overdueMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • programs
    array of
    object
    required
    • name
      string
      required
      minLength: 1
    • programId
      string
      required
      minLength: 1
    • validFrom
      required

      Any of the following:

      • string
      • null
    • validTo
      required

      Any of the following:

      • string
      • null
  • scope
    GLOBAL
    or
    COMPANY
    required
  • source
    string
    required
  • status
    ACTIVE
    or
    MERGED
    or
    ARCHIVED
    required
  • supplierId
    string
    required
    minLength: 1
  • 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))$
  • verifiedAt
    required

    Any of the following:

    • string
    • null
  • website
    required

    Any of the following:

    • string
    • null
  • sabreRating
    optional
    number
    maximum: 5 · minimum: 0

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