Ticket Cancellation 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.
Please note technically the person who buys the policy will be the Customer (the risk person), while the PolicyHolder is the one who goes to the event.
URL
/recommendation/ticket-cancellation/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 |
| country | string | Country of the purchase. | Yes |
| tickets | array | List of tickets, see below | Yes |
| bundleId | string | ID of the ticket cancellation bundle (predefined for sales partner or find this in the ticket cancellation quote response. | Yes |
| productId | string | ID of the ticket cancellation product (predefined for sales partner or find this in the ticket cancellation quote response. | Yes |
| policyHolder | Policyholder | Information of the policyholder. | No |
| customer | Customer | Information of the customer. | 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 |
Customer
| Field | Type | Description | Required |
|---|---|---|---|
| firstName | string | First name of the customer. | Yes |
| lastName | Date | Last name of the customer. | Yes |
| birthdate | string | Birthdate of the customer. | Yes |
| string | Email of the customer. | Yes | |
| country | string | Country of the customer. | Yes |
| city | string | City of the customer. | Yes |
| address | string | Address of the customer. | Yes |
| zip | string | ZIP code of the customer. | Yes |
| phone | string | Phone number of the customer. | Yes |
Ticket
| Field | Type | Description | Required |
|---|---|---|---|
| eventId | string | External ID of the event. | No |
| ticketId | integer | The ticket's id if applicable. | No |
| price | integer | Price of the ticket | Yes |
| currency | string | Currency of the given ticket (HUF or EUR are accepted). | Yes |
| eventStartTime | string | ISO timestamp of the start date. | Yes |
| eventEndTime | string | ISO timestamp of the end date. | Yes |
| firstName | string | First name of the participant. | Yes |
| lastName | string | Last name of the participant. | Yes |
| string | Email of the participant. | Yes | |
| locale | string | Locale of the participant. | Yes |
| birthdate | string | Birthdate of the participant. | 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",
"tickets": [
{
"eventId": "1805558415426",
"eventStartTime": "2019-12-20T00:00:00.000Z",
"eventEndTime": "2019-12-20T00:00:00.000Z",
"ticketId": "dummy",
"price": 19900,
"currency": "HUF",
"firstName": "John",
"lastName": "Smith",
"birthdate": "1982-02-19",
"email": "john@vernsurance.com",
"locale": "hu"
}
],
"customer": {
"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"
}
