Docs

Docs

  • Support

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

Home 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/home/policy

Methods

POST

Data Params

FieldTypeDescriptionRequired
apiKeystringapi 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
bundleIdstringID of the home bundle (predefined for sales partner or find this in the home quote response.Yes
productIdstringID of the home product (predefined for sales partner or find this in the home quote response.Yes
policyHolderPolicyholderInformation of the policyholder.No
customerCustomerInformation of the customer.Yes
agreementsarray of stringsLinks of the accepted agreements.Yes
paymentPaymentPayment informationYes

PolicyHolder

FieldTypeDescriptionRequired
firstNamestringFirst name of the policyholder.Yes
lastNameDateLast name of the policyholder.Yes
birthdatestringBirthdate of the policyholder.Yes
birthplacestringBirthplace of the policyholder.Yes
nationalitystringNationality of the policyholder.Yes
motherNamestringMothername of the policyholder.Yes
emailstringEmail of the policyholder.Yes
addressPolicyHolderAddressAddress of the policyholderYes
phonestringPhone number of the policyholder.Yes
genderstringGender of the policyholder.Yes
localestringLocale of the policyholder.Yes

Coverage

FieldTypeDescriptionRequired
idstringid of the coverage

Risk

FieldTypeDescriptionRequired
idstringid of the coverage

MainBuilding

FieldTypeDescriptionRequired
propertyTypestringtype of the propertyYes
ownershipstringtype of ownership (either owned or rented)Yes
areanumberarea of the given real estate in m2Yes
roofstringtype of the roof (either plate,slate,tile,bitumen_plate,other,reeds or wood)Yes
wallstringtype of the wall (either mixed,lightweight,wood,brick,stone,concrete or other)Yes
constructionYearnumberthe year the real estate was builtYes
addressobjectAddressYes

Address

FieldTypeDescriptionRequired
countrystringName of the countryYes
citystringName of the cityYes
zipstringZipcode
routestringThe street nameYes
streetNumberstringStreet numberYes

PolicyHolderAddress

FieldTypeDescriptionRequired
countrystringName of the countryYes
citystringName of the cityYes
zipstringZipcode
routestringThe street nameYes
streetNumberstringStreet numberYes
floorstringFloorYes
doorstringDoorYes

Insured

FieldTypeDescriptionRequired
firstNamestringFirst name of the insuredYes
lastNamestringLast name of the insuredYes
birthdatestringBirthdate of the insuredYes
emailstringEmail of the insuredNo

Payment

FieldTypeDescriptionRequired
frequencystringpayment frequencyyes
methodmethodpayment methodyes

Success Response

Code: 200

Content

FieldTypeDescription
idstringID of the policy.

Sample Call

contract_data.json

{
    "secretKey": "<YOUR SECRET KEY>",
    "bundleId": "5c76e118c7e63415c0e9a500",
    "productId": "5c6ea8efc043d318c6d13668",
    "payment": {
      "frequency": "yearly",
      "method": "creditcard"
    },
    "mainBuilding": {
        "address": {
          "country: "Hungary",
          "city": "Budapest",
          "zip": "1052",
          "route": "Kossuth Lajos utca",
          "streetNumber": "12",
        },
        "ownership": "owned",
        "area": 101,
        "roof": "slate",
        "wall": "brick",
        "constructionYear": 1911,
        "currency": "HUF"
    },
    "insureds": [{
        "firstName": "Peter",
        "lastName": "Smith",
        "birthdate": "1979-01-04",
        "email": "peter@vernsurance.com"
    }, {
        "firstName": "Eva",
        "lastName": "Smith",
        "birthdate": "1981-04-25",
        "email": "eva@vernsurance.com"
    }, {
        "firstName": "Jimmy",
        "lastName": "Smith",
        "birthdate": "2010-09-30",
    }],
    "policyHolder": {
        "firstName": "Peter",
        "lastName": "Smith",
        "birthdate": "1979-01-04",
        "birthplace": "Miskolc",
        "email": "peter@vernsurance.com",
        "nationality": "hungarian",
        "address": {
            "country": "HU",
            "city": "Budapest",
            "address": "Kossuth Lajos utca 2.",
            "zip": "1053",
            "floor": "1.",
            "door": "3/a"
        }
        "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