Docs

Docs

  • Support

›Travel API

Ticket Cancellation SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase
  • Example

Ticket Cancellation API

  • Quote
  • Policy

Device SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Device API

  • Quote
  • Policy

Home SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Home API

  • Quote
  • Policy

Travel SDK

  • Introduction
  • Configuration
  • Insurance Recommendation
  • Finalise Purchase

Travel API

  • Configuration Params
  • Quote
  • Quote by Product
  • Policy

Authentication

  • Authentication

Support

  • Support

Notifications

  • Get notified

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

FieldTypeDescriptionRequired
secretKeystringSecret key of the sales project. Read more about this argument.Yes
fromstringISO 3166-1 alpha-2 code of origin country.Yes
tostringISO 3166-1 alpha-2 code of destination country.Yes
activityIdstringActivity to be covered by the insurance. Read more about this argument.Yes
adultsintegerNumber of adults travelling.Yes
childrenintegerNumber of children travelling.Yes
startstringISO timestamp of the start date.Yes
endstringISO timestamp of the end date.Yes
bundleIdstringID of the travel bundle (predefined for sales partner or find this in the travel quote response.Yes
productIdstringID of the travel product (predefined for sales partner or find this in the travel quote response.Yes
addonsAddonsSelected addons for the quoteYes

Addons

FieldTypeDescriptionRequired
carCarAddon or nullDetails of the car insurance addon.Yes
stornoStornoAddon or nullDetails of the storno insurance addon.Yes
sportSportAddon or nullDetails of the sport insurance addon.Yes

CarAddon

FieldTypeDescriptionRequired
idstringID of the selected car insurance addon.Yes
ageintegeerThe age of the car.Yes
licensestringLicense plate of the car.Yes

TODO: 6-quote-configuration-addons-storno

StornoAddon

FieldTypeDescriptionRequired
idstringID of the selected storno insurance addon.Yes
valueintegerThe 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
providerstringThe travel agency, airline or other company where the service (e.g. accomodation, air ticket) was booked and bought.Yes
datedateDate 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

FieldTypeDescriptionRequired
idstringID 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
← QuotePolicy →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance