Skip to content
Navigation

List provider configs or advisor profiles

GET
https://api.nicer.travel/booking/settings

Reads the booking provider settings of the company named in x-nicer-company, for an admin of that company or for Nicer staff naming any company. resource=PROVIDERS returns the company's connections to that provider, on or off, each with the products its default channel binds to it and has on, and for Sabre the lastTest of its sign-in from the settings; advisors comes back empty. resource=SABRE_ADVISORS with a providerConfigId returns that connection's Sabre agents, each with its DK in full and masked and isDefault marking the agency's default agent, which books for every advisor without one of their own; providers comes back empty. secretName and sharedWith (the other agencies whose connection signs in with the same credential) are present only when Nicer staff ask. Credentials are never returned: secretConfigured says whether one is stored and publicConfiguration.maskedUsername which one.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • resource
    PROVIDERS
    or
    SABRE_ADVISORS
    required
  • providerKey
    optional
    string
  • providerConfigId
    optional
    string
    minLength: 1

Header parameters

  • x-nicer-company
    string
    required

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

Returns

200

OK

JSON
  • advisors
    array of
    object
    required
    • advisorUserId
      required

      Any of the following:

      • string
      • null
    • corporationName
      required

      Any of the following:

      • string
      • null
    • 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))$
    • dkNumber
      required

      Any of the following:

      • string
      • null
    • dkNumberMasked
      required

      Any of the following:

      • string
      • null
    • email
      required

      Any of the following:

      • string
      • null
    • enabled
      boolean
      required
    • firstName
      required

      Any of the following:

      • string
      • null
    • isDefault
      boolean
      required
    • lastName
      required

      Any of the following:

      • string
      • null
    • pccOverride
      required

      Any of the following:

      • string
      • null
    • phone
      required

      Any of the following:

      • string
      • null
    • profileId
      string
      required
      minLength: 1
    • profileVersion
      string
      required
      minLength: 1
    • providerConfigId
      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))$
    • claim
      optional

      Any of the following:

      • object
        • claimedAt
          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))$
        • claimedByUserId
          string
          required
          minLength: 1
        • origin
          SELF_ACTIVATION
          or
          SETTINGS
          required
      • null
  • providers
    array of
    object
    required
    • configVersion
      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))$
    • enabled
      boolean
      required
    • homePcc
      required

      Any of the following:

      • string
      • null
    • products
      array of
      CAR_RENTAL
      or
      FLIGHT
      or
      HOTEL
      or
      INSURANCE
      required
    • providerConfigId
      string
      required
      minLength: 1
    • providerKey
      string
      required
    • publicConfiguration
      object
      required
      • agencyAddress
        optional
        object
        • name
          string
          required
          minLength: 1
        • street
          string
          required
          minLength: 1
        • city
          string
          required
          minLength: 1
        • postalCode
          string
          required
          minLength: 1
        • countryCode
          string
          required
          pattern: ^[A-Z]{2}$
        • stateProvince
          optional
          string
          minLength: 1
      • hotelPointOfSaleAddress
        optional
        object
        • name
          string
          required
          minLength: 1
        • street
          string
          required
          minLength: 1
        • city
          string
          required
          minLength: 1
        • postalCode
          string
          required
          minLength: 1
        • countryCode
          string
          required
          pattern: ^[A-Z]{2}$
        • stateProvince
          optional
          string
          minLength: 1
      • agencyProfile
        optional
        object
        • domainId
          string
          required
          pattern: ^[A-Z0-9]{3,4}$
        • profileName
          string
          required
          minLength: 1
        • profileTypeCode
          CRP
          or
          AGY
          or
          AGT
          or
          OPX
          required
      • hotelIataOverride
        optional

        Any of the following:

        • HotelIataOverride
          • iataNumber
            string
            required
            pattern: ^\d{8}$
          • rateCodes
            array of
            string
            required
            pattern: ^[A-Z0-9]{2,10}$
        • null
      • sabreExecutionMode
        optional
        LIVE
        or
        MOCK
      • ticketingPrinter
        optional
        object
        • hardcopyLniata
          string
          required
          pattern: ^[A-Z0-9]{6}$
        • ticketStockCode
          string
          required
          pattern: ^[A-Z]{2}$
        • ticketLniata
          optional
          string
          pattern: ^[A-Z0-9]{6}$
      • ticketingQueue
        optional
        object
        • number
          integer
          required
          maximum: 999 · minimum: 0
        • prefatoryInstructionCode
          integer
          required
          maximum: 254 · minimum: 0 · default: 11
        • pcc
          optional
          string
          pattern: ^[A-Z0-9]{3,4}$
      • excludedAirlineCodes
        optional
        array of
        string
        pattern: ^[A-Z0-9]{2}$
      • alias
        optional
        string
      • domain
        optional
        string
      • maskedUsername
        optional
        string
    • secretConfigured
      boolean
      required
    • sessionPcc
      required

      Any of the following:

      • string
      • null
    • 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))$
    • lastTest
      optional

      Any of the following:

      • SabreConnectionTest
        • errorCode
          required

          Any of the following:

          • string
          • null
        • success
          boolean
          required
        • testedAt
          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))$
      • null
    • secretName
      optional

      Any of the following:

      • string
      • null
    • sharedWith
      optional
      array of
      string
      minLength: 1

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