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 API Quote


This method is used to get device insurance quotes based on different quote parameters. Vern will find the most fitting insurance product.

URL

/recommendation/device/quotes

Methods

POST

Data Params

FieldTypeDescriptionRequired
publishableKeystringPublishable key of the sales project. Read more about this argument.Yes
countrystringISO 3166-1 alpha-2 code of country.Yes
devicesarrayList of devices, see belowYes
quoteIdstringExternal quoteId which should be associated with this quote.No

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

Array of Quotes

FieldTypeDescription
bundleBundleOffered insurance bundle.
productProductOffered insurance product.
priceintegerFull price of the given configuration.
currencyCurrencyCurrency of the offered priced.
recommendedbooleanIf the current configuration is the recommended one amongst all.
groupsarray of CoverageGroupThe offered coverage by the product.
agreementsarray of AgreementAgreements to be accepted upon purchasing.
detailUrlstringLink to the official insurance product description PDF.

Bundle

FieldTypeDescription
idstringID of the offered insurance bundle.
namestringName of the offered bundle.

Product

FieldTypeDescription
idstringID of the offered insurance product.
namestringName of the offered product.
descriptionstringDescription of the offered product.

CoverageGroup

FieldTypeDescription
idstringID of the coverage group.
namestringName of the coverage group.
descriptionstringDescription of the coverage group.
imagestringLink to the icon of the coverage group.
itemsArray of CoverageItemList of coverages.

CoverageItem

FieldTypeDescription
idstringID of the coverage item.
namestringName of the coverage item.
descriptionstringDescription of the coverage item.
valueintegerCovered amount given in the currency below.
currencyCurrencyCurrency of the covered amount.
importantbooleanIf the coverage item is crucial for the selected activity.

Currency

FieldTypeDescription
codestringCurrency code, e.g. HUF or EUR.
symbolstringSymbol to render the currency.
formatstringRendering format for the currency.

Agreement

FieldTypeDescription
idstringID of the agreement.
insurerIdstringOwner of the agreement from a legal point of view.
namestringName of the agreement.
contentstringContent of the agreement to be accepted.
linksArray of AgreementLinkLinks to related documents for the agreement.

AgreementLink

FieldTypeDescription
namestringName of the link to display.
linkstringLink to the related document.

Sample Call

Body

{
   "publishableKey": "<your publishable 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"
       }
   ]
}

Response

[         
    {
        "bundle": {
            "id": "5c17b9bf32903c0cb48762ce",
            "name": "Device"
        },
        "product": {
            "id": "5bd56f5f4e82779a07a99fc7",
            "name": "Device Basic",
            "description": " "
        },
        "price": 63200,
        "currency": {
            "code": "HUF",
            "symbol": "Ft",
            "format": "{value} {symbol}"
        },
        "recommended": true,
        "groups": [
          {
            "id": "5c17b77532903c0cb4876283",
            "name": "Device Insurance",
            "description": "Device Insurance",
            "image": "https://s3.eu-central-1.amazonaws.com/vern-staging-assets/coverage-groups/coverage.svg",
            "items": [
              {
                "id": "5c17b77c32903c0cb48762be",
                "name": "Upper limit of the sum insured per device* and per insured event",
                "description": " ",
                "value": 2000000,
                "currency": {
                  "code": "HUF",
                  "symbol": "Ft",
                  "format": "{value} {symbol}"
                }
              },
              {
                "id": "5c17b77c32903c0cb48762bf",
                "name": "Including a maximum sum insured per device",
                "description": " ",
                "value": 500000,
                "currency": {
                  "code": "HUF",
                  "symbol": "Ft",
                  "format": "{value} {symbol}"
                }
              },
            ]
          }
        ],
        "agreements": [
            {
                "links": [],
                "content": "Az ajánlati adatokat ellenőriztem, és nyilatkozom, hogy azok a valóságnak és az igényeimnek megfelelnek.",
                "name": "Ajánlati adatok",
                "insurerId": "5bb368076f02ad924985a1c6",
                "id": "5c17e17452cbd10e760796fc"
            },
            {
                "links": [
                    {
                        "name": "Insurance product guide",
                        "url": "https://eub.hu/dokumentumok/Termekismerteto-EUB2018-03ONU.pdf"
                    },
                    {
                        "name": "Insurance terms and conditions",
                        "url": "https://eub.hu/dokumentumok/EUB2018-03ONUen.pdf"
                    }
                ],
                "name": "Biztosítási feltételek",
                "insurerId": "5bb368076f02ad924985a1c6",
                "content": "A biztosítási szerződésre vonatkozó biztosítási termékismertetőt , a biztosítási szerződés részét képező biztosítási feltételeket és az ügyféltájékoztatót megismertem és azokat elfogadom.",
                "id": "5c17e26952cbd10e760796fd"
            },
            {
              "links": [],
              "name": "Biztosításközvetítői Feltételek",
              "insurerId": "5bb368076f02ad924985a1c6",
              "content": "Megismertem és elfogadom a biztosítás közvetítő szerződési feltételeit.",
              "id": "5d638e9968dba70472643f8e"
            }
        ],
        "detailUrl": "https://assets.staging.vernhelps.com/terms/eub/EUB2018-03ONU.pdf"
    }
]
← Finalise PurchasePolicy →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance