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
| Field | Type | Description | Required |
|---|---|---|---|
| secretKey | string | Secret key of the sales project. Read more about this argument. | Yes |
| quoteId | string | External 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
| Field | Type | Description | Required |
|---|---|---|---|
| firstName | string | First name of the policyholder. | Yes |
| lastName | Date | Last name of the policyholder. | Yes |
| birthdate | string | Birthdate of the policyholder. | Yes |
| nationality | string | Nationality of the policyholder. | Yes |
| string | Email of the policyholder. | Yes | |
| country | string | Country of the policyholder. | Yes |
| city | string | City of the policyholder. | Yes |
| address | string | Address of the policyholder. | Yes |
| zip | string | ZIP code of the policyholder. | Yes |
| phone | string | Phone number of the policyholder. | Yes |
| locale | string | Locale of the policyholder. | Yes |
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
Content
| Field | Type | Description |
|---|---|---|
| id | string | ID 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"
}
