Recalculate quote prices (V2)
Changed onRecalculates the quote prices after making changes. This endpoint calls the backend /v2/quote/recalculate 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
{
"tripStartDate": "2024-06-15",
"tripEndDate": "2024-06-30",
"quoteHash": "abc123def456",
"groupHash": "group123def456",
"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
}
},
"tripCost": 5000,
"travellers": [
{
"dateOfBirth": "1985-05-15",
"firstName": "John",
"email": "john.doe@example.com",
"lastName": "Doe",
"mainTraveller": true
}
]
}Response
The quote has been successfully recalculated. Always returns MultiQuoteResponseDto.
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 - warning
removed from the
/////request propertyallOflist - 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 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
- info
added the new optional
headerrequest parameterAuthorization
- info