Docs

Docs

  • Support

›Ticket Cancellation 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

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

FieldTypeDescriptionRequired
secretKeystringSecret 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
countrystringCountry of the purchase.Yes
ticketsarrayList of tickets, see belowYes
bundleIdstringID of the ticket cancellation bundle (predefined for sales partner or find this in the ticket cancellation quote response.Yes
productIdstringID of the ticket cancellation product (predefined for sales partner or find this in the ticket cancellation quote response.Yes
policyHolderPolicyholderInformation of the policyholder.No
customerCustomerInformation of the customer.Yes
agreementsarray of stringsLinks of the accepted agreements.Yes

PolicyHolder

FieldTypeDescriptionRequired
firstNamestringFirst name of the policyholder.Yes
lastNameDateLast name of the policyholder.Yes
birthdatestringBirthdate of the policyholder.Yes
nationalitystringNationality of the policyholder.Yes
emailstringEmail of the policyholder.Yes
countrystringCountry of the policyholder.Yes
citystringCity of the policyholder.Yes
addressstringAddress of the policyholder.Yes
zipstringZIP code of the policyholder.Yes
phonestringPhone number of the policyholder.Yes
localestringLocale of the policyholder.Yes

Customer

FieldTypeDescriptionRequired
firstNamestringFirst name of the customer.Yes
lastNameDateLast name of the customer.Yes
birthdatestringBirthdate of the customer.Yes
emailstringEmail of the customer.Yes
countrystringCountry of the customer.Yes
citystringCity of the customer.Yes
addressstringAddress of the customer.Yes
zipstringZIP code of the customer.Yes
phonestringPhone number of the customer.Yes

Ticket

FieldTypeDescriptionRequired
eventIdstringExternal ID of the event.No
ticketIdintegerThe ticket's id if applicable.No
priceintegerPrice of the ticketYes
currencystringCurrency of the given ticket (HUF or EUR are accepted).Yes
eventStartTimestringISO timestamp of the start date.Yes
eventEndTimestringISO timestamp of the end date.Yes
firstNamestringFirst name of the participant.Yes
lastNamestringLast name of the participant.Yes
emailstringEmail of the participant.Yes
localestringLocale of the participant.Yes
birthdatestringBirthdate of the participant.Yes

Success Response

Code: 200

Content

FieldTypeDescription
idstringID 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"
}
← QuoteIntroduction →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance