Travel Insurance Quote by Product
This method is used to get travel insurance quotes based on different quote parameters for a defined insurance product. In this case, Vern will only calculate the price for the given insurance product.
URL
/recommendation/travel/configuration
Methods
POST
Data Params
| Field | Type | Description | Required |
|---|---|---|---|
| secretKey | string | Secret key of the sales project. Read more about this argument. | Yes |
| from | string | ISO 3166-1 alpha-2 code of origin country. | Yes |
| to | string | ISO 3166-1 alpha-2 code of destination country. | Yes |
| activityId | string | Activity to be covered by the insurance. Read more about this argument. | Yes |
| adults | integer | Number of adults travelling. | Yes |
| children | integer | Number of children travelling. | Yes |
| start | string | ISO timestamp of the start date. | Yes |
| end | string | ISO timestamp of the end date. | Yes |
| bundleId | string | ID of the travel bundle (predefined for sales partner or find this in the travel quote response. | Yes |
| productId | string | ID of the travel product (predefined for sales partner or find this in the travel quote response. | Yes |
| addons | Addons | Selected addons for the quote | Yes |
Addons
| Field | Type | Description | Required |
|---|---|---|---|
| car | CarAddon or null | Details of the car insurance addon. | Yes |
| storno | StornoAddon or null | Details of the storno insurance addon. | Yes |
| sport | SportAddon or null | Details of the sport insurance addon. | Yes |
CarAddon
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | ID of the selected car insurance addon. | Yes |
| age | integeer | The age of the car. | Yes |
| license | string | License plate of the car. | Yes |
TODO: 6-quote-configuration-addons-storno
StornoAddon
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | ID of the selected storno insurance addon. | Yes |
| value | integer | The price of the booked travel services (e.g. accomodation, air ticket), excluding parts that are refundable from the service provider (e.g. airport taxes) | Yes |
| provider | string | The travel agency, airline or other company where the service (e.g. accomodation, air ticket) was booked and bought. | Yes |
| date | date | Date of the reservation of services (e.g. accomodation, air ticket). If the trip starts within 15 days, cancellation insurance can only be purchased on the day of reservation. | Yes |
SportAddon
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | ID of the selected sport insurance addon. | Yes |
Success Response
Code: 200
Content
Same as one item in the response of travel quote as stated here.
Sample Call
Body
{
"apiKey": "<YOUR_SECRET_KEY",
from": "HU",
"to": "FR",
"activityId": "5c17b8e232903c0cb48762c9",
"adults": 1,
"children": 0,
"start": "1546622557145",
"end": "1546822667145",
"bundleId": "5c17b9bf32903c0cb48762ce",
"productId": "5bd56f5f4e82779a07a99fc6",
"addons": {
"car": {},
"storno": {},
"sport": null
}
}
Response
TODO
