Generate multiple quotes (V2)
Changed onGenerates price quotes for multiple products using the V2 API endpoint.
Request
- Base URLhttps://partnerapi.withfaye.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Bearer token
Request body
Example request
{
"advisorId": "123456",
"departureDate": "2023-05-18",
"returnDate": "2023-05-30",
"coverageOptions": {
"cfarOption": {
"initialDepositDate": "2023-05-18"
},
"cfwrOption": {
"initialDepositDate": "2023-05-18"
},
"carRentalOption": {
"carDatesDto": [
{
"startDate": "2023-05-18",
"endDate": "2023-05-19",
"noOfCars": 1
}
],
"noOfCars": 2
}
},
"timezone": "America/New_York",
"destination": [
{
"country": "FR",
"areaLevel1": "CA",
"locality": "Paris",
"label": "Paris, France"
}
],
"residence": "CA",
"residency": {
"country": "FR",
"areaLevel1": "CA",
"locality": "Paris",
"label": "Paris, France",
"streetAndNumber": "123 Main St",
"city": "San Francisco",
"apartment": "Apt 4B",
"zipCode": "94102"
},
"travellers": [
{
"dateOfBirth": "1985-05-15",
"firstName": "John",
"email": "john.doe@example.com",
"lastName": "Doe",
"mainTraveller": true
}
],
"utms": [
{
"key": "utm_source",
"value": "google"
}
],
"noTravellers": 2
}Response
The quotes have been successfully generated.
Example response
{
"quotes": [
{
"quote": {
"currentPrice": 100.24,
"coverageOptions": {
"petOption": {
"price": 100.24
},
"trcOption": {
"price": 100.24
},
"cfarOption": {
"price": 100.24
},
"cfwrOption": {
"price": 100.24
},
"adventureOption": {
"price": 100.24
},
"vacationRentalOption": {
"price": 100.24
},
"carRentalOption": {
"price": 100.24,
"pricePerCarPerDay": 100.24
},
"medicalUpgrade": {
"price": 100.24
}
},
"quoteHash": "abc123def456"
}
}
]
}Changes
- breaking
added to the
/////request propertyallOflist - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the
//request property's minLength was increased from0to2 - breaking
the
request property type changed fromdatetostring, and format from no format todate - breaking
the
request property type changed fromdatetostring, and format from no format todate - warning
removed from the
/////request propertyallOflist - warning
the
//request property's maxLength was set to2 - warning
removed the request property
// - warning
removed the request property
// - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the optional property
//from the response with the status - info
api tag
Quoteremoved - info
added the new optional request property
///// - info
added the new optional request property
///// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
///// - info
the request property
//became nullable - info
the request property
//became optional - info
the request property
//became optional - info
the request property
//became optional - info
the request property
//became optional - info
added the required property
//to the response with the status - info
added the required property
////////////to the response with the status - info
added the required property
////////////to the response with the status - info
added the required property
///////to the response with the status
- breaking
- breaking
the
request property type changed fromstringtodate, and format fromdateto no format - breaking
the
/request property type changed fromstringtoarray - breaking
the
/request property type changed fromstringtoarray - breaking
the
request property type changed fromstringtodate, and format fromdateto no format - breaking
the
//request property type changed fromstringtodate, and format fromdateto no format - info
added the new optional
headerrequest parameterAuthorization
- breaking