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
| Field | Type | Description | Required |
|---|---|---|---|
| publishableKey | string | Publishable key of the sales project. Read more about this argument. | Yes |
| country | string | ISO 3166-1 alpha-2 code of country. | Yes |
| devices | array | List of devices, see below | Yes |
| quoteId | string | External quoteId which should be associated with this quote. | No |
Device
| Field | Type | Description | Required |
|---|---|---|---|
| item | string | Name of the item to be covered | No |
| sku | string | SKU (stock keeping unit) of the item (your own unique id) | No |
| price | integer | Number of children travelling. | Yes |
| currency | string | Currency of the given device (HUF or EUR are accepted). | Yes |
| start | string | ISO timestamp of the start date. | Yes |
Success Response
Code: 200
Array of Quotes
| Field | Type | Description |
|---|---|---|
| bundle | Bundle | Offered insurance bundle. |
| product | Product | Offered insurance product. |
| price | integer | Full price of the given configuration. |
| currency | Currency | Currency of the offered priced. |
| recommended | boolean | If the current configuration is the recommended one amongst all. |
| groups | array of CoverageGroup | The offered coverage by the product. |
| agreements | array of Agreement | Agreements to be accepted upon purchasing. |
| detailUrl | string | Link to the official insurance product description PDF. |
Bundle
| Field | Type | Description |
|---|---|---|
| id | string | ID of the offered insurance bundle. |
| name | string | Name of the offered bundle. |
Product
| Field | Type | Description |
|---|---|---|
| id | string | ID of the offered insurance product. |
| name | string | Name of the offered product. |
| description | string | Description of the offered product. |
CoverageGroup
| Field | Type | Description |
|---|---|---|
| id | string | ID of the coverage group. |
| name | string | Name of the coverage group. |
| description | string | Description of the coverage group. |
| image | string | Link to the icon of the coverage group. |
| items | Array of CoverageItem | List of coverages. |
CoverageItem
| Field | Type | Description |
|---|---|---|
| id | string | ID of the coverage item. |
| name | string | Name of the coverage item. |
| description | string | Description of the coverage item. |
| value | integer | Covered amount given in the currency below. |
| currency | Currency | Currency of the covered amount. |
| important | boolean | If the coverage item is crucial for the selected activity. |
Currency
| Field | Type | Description |
|---|---|---|
| code | string | Currency code, e.g. HUF or EUR. |
| symbol | string | Symbol to render the currency. |
| format | string | Rendering format for the currency. |
Agreement
| Field | Type | Description |
|---|---|---|
| id | string | ID of the agreement. |
| insurerId | string | Owner of the agreement from a legal point of view. |
| name | string | Name of the agreement. |
| content | string | Content of the agreement to be accepted. |
| links | Array of AgreementLink | Links to related documents for the agreement. |
AgreementLink
| Field | Type | Description |
|---|---|---|
| name | string | Name of the link to display. |
| link | string | Link 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"
}
]
