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


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

URL

/recommendation/ticket-cancellation/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
ticketsarrayList of tickets, see belowYes
quoteIdstringExternal quoteId which should be associated with this quote.No

Ticket

FieldTypeDescriptionRequired
eventIdstringExternal ID of the event.No
eventTypestringType of the event (eg concert)No
ticketIdintegerThe ticket's id if applicable.No
priceintegerNumber of children travelling.Yes
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

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",
   "tickets": [
       {
           "eventId": "1805558415426",
           "eventType": "event",
           "eventStartTime": "2019-12-20T00:00:00.000Z",
           "eventEndTime": "2019-12-20T00:00:00.000Z",
           "ticketId": "dummy",
           "price": 19900,
           "currency": "HUF"
       }
   ]
}

Response

[         
    {
        "bundle": {
            "id": "5c17b9bf32903c0cb48762ce",
            "name": "Ticket Cancellation"
        },
        "product": {
            "id": "5bd56f5f4e82779a07a99fc7",
            "name": "Storno Basic",
            "description": " "
        },
        "price": 12060,
        "currency": {
            "code": "HUF",
            "symbol": "Ft",
            "format": "{value} {symbol}"
        },
        "recommended": true,
        "groups": [
          {
            "id": "5c17b77532903c0cb4876283",
            "name": "Cancellation Insurance",
            "description": "Cancellation 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 booking* and per insured event",
                "description": " ",
                "value": 2000000,
                "currency": {
                  "code": "HUF",
                  "symbol": "Ft",
                  "format": "{value} {symbol}"
                }
              },
              {
                "id": "5c17b77c32903c0cb48762bf",
                "name": "Including a maximum sum insured per Participant",
                "description": " ",
                "value": 500000,
                "currency": {
                  "code": "HUF",
                  "symbol": "Ft",
                  "format": "{value} {symbol}"
                }
              },
              {
                "id": "5c17b77c32903c0cb48762c0",
                "name": "Including a maximum sum insured per flight ticket in respect of the Ticket Service Fee",
                "description": " ",
                "value": 15000,
                "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"
    }
]
← ExamplePolicy →
  • URL
  • Methods
  • Data Params
  • Success Response
  • Sample Call
Docs
Docs
SDK
Copyright © 2019 Vernsurance