Quote
Quote & Save V2

Generate multiple quotes (V2)

Generates price quotes for multiple products using the V2 API endpoint. This endpoint calls the backend /quote/create/quote endpoint.

post/v2/quote/multi

Headers

Authorizationstring

Bearer token

Request body

advisorIdstring

A unique identifier for the agent triggering this quote

departureDatestring

First day of trip (V1 format). Either departureDate or tripStartDate must be provided.

returnDatestring

Final day of trip (V1 format). Either returnDate or tripEndDate must be provided.

tripCostnumber

Value of non-refundable trip costs in $USD. Minimum $1000. Maximum is $150,000 or $50,000 per traveler (the lower between them)

productId'PR-STANDARD-01' | 'PR-SPORTS-01' | 'PR-CFAR-01' | 'PR-STANDARD-DO' | 'PR-SPORTS-DO' | 'PR-CFAR-DO' | 'PR-STR' | 'PR-GENERAL-STR' | 'RETAIL' | 'PR-FirstCountrywide' | 'PR-ForwardCountrywide' | 'PR-FlagshipCountrywide'

Product ID is not allowed for multi-quote. Use productIds or products instead.

productCodestring required

The product code to quote for, this field is no longer used

timezonestring

Timezone for the trip dates (IANA timezone identifier)

tripStartDatestring required

Start date of the trip in ISO format (V2 format). Either departureDate or tripStartDate must be provided.

tripEndDatestring required

End date of the trip in ISO format (V2 format). Either returnDate or tripEndDate must be provided.

product'PR-STANDARD-01' | 'PR-SPORTS-01' | 'PR-CFAR-01' | 'PR-STANDARD-DO' | 'PR-SPORTS-DO' | 'PR-CFAR-DO' | 'PR-STR' | 'PR-GENERAL-STR' | 'RETAIL' | 'PR-FirstCountrywide' | 'PR-ForwardCountrywide' | 'PR-FlagshipCountrywide'

Product is not allowed for multi-quote. Use productIds or products instead.

residencestring

Residence information (backward compatibility - accepts string). If provided, it will be used as areaLevel1 in residency. Either residence (string) or residency must be provided.

policyCodeHashstring

Policy code hash

noTravellersnumber

The number of travellers

Example request

{
  "advisorId": "123456",
  "departureDate": "2023-05-18",
  "returnDate": "2023-05-30",
  "destination": [
    {
      "country": "US",
      "googlePlaceId": "ChIJYYOWXuckZUcRZdTiJR5FQOc",
      "state": "CA"
    }
  ],
  "coverageOptions": {
    "cfarOption": {
      "initialDepositDate": "2023-05-18"
    },
    "carRentalOption": {
      "carDatesDto": [
        {
          "startDate": "2023-05-18",
          "endDate": "2023-05-19",
          "noOfCars": 1
        }
      ],
      "noOfCars": 2
    }
  },
  "productId": "PR-STANDARD-01",
  "productIds": [
    "PR-STANDARD-01",
    "PR-SPORTS-01"
  ],
  "timezone": "America/New_York",
  "tripStartDate": "2024-06-15",
  "tripEndDate": "2024-06-30",
  "destinations": [
    {
      "country": "FR",
      "areaLevel1": "CA",
      "locality": "Paris",
      "label": "Paris, France"
    }
  ],
  "product": "PR-STANDARD-01",
  "products": [
    "PR-STANDARD-01",
    "PR-SPORTS-01"
  ],
  "residence": "CA",
  "residency": {
    "country": "FR",
    "areaLevel1": "CA",
    "locality": "Paris",
    "label": "Paris, France",
    "streetAndNumber": "123 Main St",
    "apartment": "Apt 4B",
    "zipCode": "94102"
  },
  "travellers": [
    {
      "dateOfBirth": "1985-05-15",
      "firstName": "John",
      "email": "john.doe@example.com",
      "lastName": "Doe",
      "mainTraveller": true
    }
  ],
  "travelerDetails": [
    {
      "firstName": "Jane",
      "lastName": "Doe",
      "email": "jane.doe@gmail.com",
      "dob": "1980-11-25"
    }
  ],
  "utms": [
    {
      "key": "utm_source",
      "value": "google"
    }
  ],
  "noTravellers": 2
}

Response

The quotes have been successfully generated.

groupHashstring

The group_hash linking all quotes

isCompletedboolean

Whether the group was purchased

Example response

{
  "quotes": [
    {
      "quote": {
        "currentPrice": 100.24,
        "coverageOptions": {
          "petOption": {
            "price": 100.24
          },
          "trcOption": {
            "price": 100.24
          },
          "cfarOption": {
            "price": 100.24
          },
          "adventureOption": {
            "price": 100.24
          },
          "vacationRentalOption": {
            "price": 100.24
          },
          "carRentalOption": {
            "price": 100.24,
            "pricePerCarPerDay": 100.24
          }
        },
        "quoteHash": "abc123def456"
      }
    }
  ]
}

Changes