Skip to content
Navigation

Quote travel insurance for a trip

POST
https://api.nicer.travel/booking/trips/{travelersTripId}/insurance-quotes

Requests travel-insurance quotes for the trip's insurable itinerary items plus any customItems, using the trip's start and end dates as coverage dates. Requires an authenticated company user with access to the trip, an Idempotency-Key, and a trip that has both dates (otherwise 409 INSURANCE_TRIP_DATES_REQUIRED). Returns the quotes, which segments were insurable and selected, and the per-traveler fields still missing.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Path parameters

  • travelersTripId
    string
    required

Header parameters

  • Idempotency-Key
    string
    required

    Unique key (8–255 chars) per request; replays return the original result.

  • x-nicer-company
    string
    required

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

Request body JSON required

  • depositDate
    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])))$
  • travelers
    array of
    object
    required
    • travelerId
      string
      required
      minLength: 1
    • address
      optional
      object
      • address1
        optional
        string
        maxLength: 200 · minLength: 1
      • city
        optional
        string
        maxLength: 100 · minLength: 1
      • countryCode
        optional
        string
        maxLength: 3 · minLength: 2
      • postalCode
        optional
        string
        maxLength: 20 · minLength: 1
      • stateCode
        optional
        string
        maxLength: 100 · minLength: 1
    • birthDate
      optional
      string
      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])))$
    • email
      optional
      string
      format: email · pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
    • familyName
      optional
      string
      maxLength: 100 · minLength: 1
    • givenName
      optional
      string
      maxLength: 100 · minLength: 1
    • phoneNumber
      optional
      string
      maxLength: 40 · minLength: 1
  • customItems
    optional
    array of
    object
    default: []
    • amountMinor
      integer
      required
      maximum: 9007199254740991
    • countryCode
      string
      required
      maxLength: 3 · minLength: 2
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • reference
      string
      required
      maxLength: 255 · minLength: 1
    • title
      string
      required
      maxLength: 300 · minLength: 1
    • startsOn
      optional
      string
      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])))$
  • language
    optional
    en-us
    or
    es-es
    default: "en-us"
  • planId
    optional
    string
    maxLength: 100 · minLength: 1
  • segmentIds
    optional
    array of
    string
    minLength: 1 · default: []
  • selectedCoverageCodes
    optional
    array of
    string
    maxLength: 100 · minLength: 1 · default: []

Returns

200

OK

JSON
  • insurableSegmentIds
    array of
    string
    required
    minLength: 1
  • missingFields
    array of
    object
    required
    • fields
      array of
      string
      ·
      one of 10 values
      required
      Allowed values: ADDRESS, BIRTH_DATE, CITY, COUNTRY, EMAIL, FAMILY_NAME, GIVEN_NAME, PHONE_NUMBER, POSTAL_CODE, STATE
    • travelerId
      string
      required
      minLength: 1
  • quotes
    array of
    object
    required
    • availableOptions
      array of
      object
      required
      • coverageCode
        string
        required
        maxLength: 100 · minLength: 1
      • isSelected
        boolean
        required
      • price
        required

        Any of the following:

        • Money
          • amountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • currency
            string
            required
            pattern: ^[A-Z]{3}$
        • null
      • coverageName
        optional
        string
        maxLength: 300
      • description
        optional
        string
        maxLength: 2000
      • effectiveDate
        optional
        string
        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])))$
      • expirationDate
        optional
        string
        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])))$
    • description
      string
      required
    • expiresAt
      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))$
    • planId
      string
      required
      minLength: 1
    • planName
      string
      required
      minLength: 1
    • price
      object
      required
      • breakdown
        object
        required
        • baseMinor
          required

          Any of the following:

          • integer
          • null
        • discountMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • nicerAdjustmentMinor
          integer
          required
          maximum: 9007199254740991 · minimum: 0
        • supplierFeesMinor
          required

          Any of the following:

          • integer
          • null
        • taxesMinor
          required

          Any of the following:

          • integer
          • null
      • currency
        string
        required
        pattern: ^[A-Z]{3}$
      • totalMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • insuredTripCostMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
    • productKind
      string
      required
    • providerKey
      string
      required
    • quoteId
      string
      required
      minLength: 1
    • selectedOptions
      array of
      object
      required
      • coverageCode
        string
        required
        maxLength: 100 · minLength: 1
      • isSelected
        boolean
        required
      • price
        required

        Any of the following:

        • Money
          • amountMinor
            integer
            required
            maximum: 9007199254740991 · minimum: 0
          • currency
            string
            required
            pattern: ^[A-Z]{3}$
        • null
      • coverageName
        optional
        string
        maxLength: 300
      • description
        optional
        string
        maxLength: 2000
      • effectiveDate
        optional
        string
        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])))$
      • expirationDate
        optional
        string
        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])))$
    • travelerPricing
      array of
      object
      required
      • coverageAmountMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • policyCostMinor
        integer
        required
        maximum: 9007199254740991 · minimum: 0
      • travelerId
        string
        required
        minLength: 1
  • selectedSegmentIds
    array of
    string
    required
    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