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 Policy


After an insurance offer was selected by the customer, this method provides a way to finalise the insurance and create the insurance policy.

URL

/recommendation/travel/policy

Methods

POST

Data Params

FieldTypeDescriptionRequired
secretKeystringSecret key of the sales project. Read more about this argument.Yes
quoteIdstringExternal quote id which is going to be associated with the created policy.No
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
travellerGroupstringActivity to be covered by the insurance. Read more about this argument.Yes
transportationstringActivity 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 quote.Yes
policyHolderPolicyholderInformation of the policyholder.Yes, except for Group Policies.
travellersarray of TravellerInformation of the insured travellers.Yes
agreementsarray of stringsLinks of the accepted agreements.Yes

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

PolicyHolder

FieldTypeDescriptionRequired
firstNamestringFirst name of the policyholder.Yes
lastNameDateLast name of the policyholder.Yes
birthdatestringBirthdate of the policyholder.Yes
nationalitystringNationality of the policyholder.Yes
emailstringEmail of the policyholder.Yes
countrystringCountry of the policyholder.Yes
citystringCity of the policyholder.Yes
addressstringAddress of the policyholder.Yes
zipstringZIP code of the policyholder.Yes
phonestringPhone number of the policyholder.Yes

Traveller

FieldTypeDescriptionRequired
firstNamestringFirst name of the traveller.Yes
lastNameDateLast name of the traveller.Yes
birthdatestringBirthdate of the traveller.Yes
nationalitystringNationality of the traveller.Yes
emailstringEmail of the traveller.Yes

Success Response

Code: 200

Content

FieldTypeDescription
paymentUrlstringPayment link to redirect the user.

See more about payment at the Travel Policy Payment.

Sample Call

contract_data.json

{
    "secretKey": "<YOUR_SECRET_KEY>",
    "from": "HU",
    "to": "FR",
    "activityId": "5c17b8e232903c0cb48762c9",
    "adults": 1,
    "children": 0,
    "start": "1546622557145",
    "end": "1546822667145",
    "bundleId": "5c17b9bf32903c0cb48762ce",
    "productId": "5bd56f5f4e82779a07a99fc6",
    "addons": {
        "car": null,
        "storno": null,
        "sport": null
    },
    "policyHolder": {
        "firstName": "Joe",
        "lastName": "Apple",
        "birthdate": "1995-01-01",
        "nationality": "Hungarian",
        "email": "joe.apple@gmail.com",
        "country": "Hungary",
        "city": "Budapest",
        "address": "Dob utca 2",
        "zip": "1071",
        "phone": "+36301233445"
    },
    "travellers": [
        {
            "firstName": "First",
            "lastName": "Last",
            "birthdate": "1995-09-13",
            "nationality": "Magyar",
            "email": "e@e.com"
        }
    ],
    "agreements": ["5c17e17452cbd10e760796fc","5c17e26952cbd10e760796fd","5c17e38152cbd10e760796ff"]
}

Response

{
  "paymentUrl": "http://link.com"
}
← Quote by ProductNext →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance