Docs

Docs

  • Support

›Device 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

Device 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/device/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

policyHolder | Policyholder | Information of the policyholder. | Yes, except for group policies. devices | array | List of devices, see below | Yes agreements | array of strings | Links of the accepted agreements. | 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
localestringLocale of the policyholder.Yes

Device

FieldTypeDescriptionRequired
itemstringName of the item to be coveredNo
skustringSKU (stock keeping unit) of the item (your own unique id)No
priceintegerNumber of children travelling.Yes
currencystringCurrency of the given device (HUF or EUR are accepted).Yes
startstringISO timestamp of the start date.Yes

Success Response

Code: 200

Content

FieldTypeDescription
idstringID of the policy.

Sample Call

contract_data.json

{
    "secretKey": "<YOUR SECRET KEY>",
    "country": "HU",
    "bundleId": "5c76e118c7e63415c0e9a500",
    "productId": "5c6ea8efc043d318c6d13668",
    "devices": [
        {
            "item": "Apple iPhone XS 64GB",
            "sku": "539314",
            "start": "2019-04-11T13:03:54.002Z",
            "price": "339990",
            "currency": "HUF"
        }
    ]
    "policyHolder": {
        "firstName": "Peter",
        "lastName": "Smith",
        "birthdate": "1979-01-04",
        "email": "peter@vernsurance.com",
        "country": "HU",
        "city": "Budapest",
        "address": "Kossuth Lajos utca 2.",
        "zip": "1053",
        "phone": "06301234123",
        "locale": "hu"
    },
    "agreements": [
        "5c17e17452cbd10e760796fc",
        "5c17e26952cbd10e760796fd",
        "5c17e38152cbd10e760796ff"
    ]
}

Response

{
  "id": "5c172f7452cbd10e143792ds"
}
← QuoteIntroduction →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance