Quotes

Quote Booking Protection

POST
/v2/quote/booking-protection

Obtains one or more quotes for booking protection.

The booking_partner_id must belong to a partner that you have already onboarded.

If you have created a partner certificate for the booking partner, attempting to quote with this API will result in a season interruption assurance quote being offered. This quote can be purchased with an invoice.

If you do not have a partner certificate, then we will check to see if the booking partner is an onboarded travel retailer. If it is, then we will present several quotes for travel insurance.

If the booking partner has no partner certificate, and is not an onboarded travel retailer, no quotes can be offered.

Authorization

AuthorizationBasic <token>

Authorization header with value of Basic <auth string> where the auth string value is a base64 encoded string of <client id>:<client secret>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

partner_id?string | null
*PolicyRequestCustomer
email_address*string
Formatemail
email_address_hash?string

SHA-256 hash of normalized email (trimmed + lowercase), represented as a 64-character hex string.

Match^[A-Fa-f0-9]{64}$
state?string

2-character state code. Either state or postal_code is required when requesting a quote.

Length1 <= length
country?string

ISO 3166-1 code

Length2 <= length <= 6
Default"US"

Value in

  • "US"
  • "CA"
  • "AU"
  • "NZ"
  • "GB-SCT"
postal_code?string

Either state or postal_code is required when requesting a quote.

Length1 <= length
first_name*string
Length1 <= length
middle_name?string
last_name*string
Length1 <= length
phone_number?string
Length1 <= length
street?string
Length1 <= length
unit?string

Unit, apartment or suite for the mailing address. Appended to street.

city?string
Length1 <= length
birth_date?string

Required for renters and probate bond products.

Formatdate
?object
[key: string]?string
offer_id?string | null
Formatuuid
*BookingProtectionQuoteAttributes
?array<BookingProtectionItem>

Each item:

insurable_amount*integer

The insurable amount for this item, in cents

Formatint64
insurable_amount_currency?Currency

Value in

  • "USD"
  • "CAD"
  • "AUD"
  • "NZD"
  • "GBP"
  • "EUR"
  • "CHF"
  • "JPY"
category*GapMedicalSport | "LODGING"

The 'category' that the itinerary item belongs to. LODGING will be offered a travel insurance quote if possible. Gap medical sport types will be offered a gap medical quote if possible. All gap medical sports other than RUNNING, SKIING and MOUNTAIN_BIKING require participant birthdays in order to be offered.

event_start_date?string
Formatdate
event_end_date?string
Formatdate
country?string

The abbreviation of the country that the itinerary item takes place in (ex: US, CA). Required when the category is LODGING.

?array<BookingProtectionQuoteAttributes.BookingProtectionParticipant>

The list of participants that will be participating in this activity. Required in order to attempt to offer gap medical accident protection quotes.

event_country?string
Deprecated

Please use 'country' in the items list instead

?array<BookingProtectionQuoteAttributes.BookingProtectionParticipant>
Deprecated

Unused, please use 'participants' in the items list instead

Each item:

first_name*string
last_name*string
birth_date?string

Required to offer gap medical quotes for this participant, except in the case of RUNNING, SKIING and MOUNTAIN_BIKING itinerary items.

Formatdate
street*string
state*string
country*string
?object
org_name*string
org_contact_email?string
org_contact_first_name?string
org_contact_last_name?string
org_contact_phone?string
org_website?string
org_city?string
org_state?string
org_postal_code?string
org_country?string
payment_plan?boolean
registration_session_name?string
currency?string

Value in

  • "USD"
  • "CAD"
  • "AUD"
  • "NZD"
  • "GBP"
  • "EUR"
  • "CHF"
  • "JPY"
email_offer?boolean

Send an email to the customer with the offer and option to purchase. Not required.

Defaultfalse

Response Body

application/json

curl -X POST "https://example.com/v2/quote/booking-protection" \  -H "Content-Type: application/json" \  -d '{    "customer": {      "email_address": "user@example.com",      "first_name": "string",      "last_name": "string"    },    "attributes": {}  }'
{  "offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf",  "decisions": [    {      "options": [        {          "status": "success",          "data": {            "policy_attributes": {},            "premium_amount": 1,            "policy_number": "string",            "partner": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "legal_business_name": "string"            },            "policy_documents": [              {                "document_type": "POLICY",                "url": "string"              }            ],            "policy_status": "ACTIVE",            "issued_date": "2019-08-24T14:15:22Z",            "expiration_date": "string",            "effective_date": "string",            "quote_date": "2019-08-24T14:15:22Z",            "product": {              "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",              "name": "event-participation-cancellation-insurance",              "friendly_name": "string",              "abbreviation": "string",              "enabled": true,              "description": "string",              "peril_heading": "string",              "perils": [                "string"              ],              "descriptors": [                "string"              ],              "promotional_header": "string",              "promotional_description": "string",              "accept_action_text": "string",              "decline_action_text": "string",              "legal_disclaimer": "string",              "privacy_policy_url": "string",              "terms_conditions_url": "string",              "additional_policy_purchase_email_message": "string",              "layout": "string",              "recommended_badge_text": "string",              "carrier_logo_url": "string",              "carrier_name": "string",              "carrier_email": "string",              "carrier_phone": "string",              "claims_url": "string"            },            "endorsement_price_changes": 0,            "subscription_premium": {              "payments_required": 0,              "payment_amount": 0,              "initial_payment_amount": 0,              "can_cancel": true            },            "currency": "USD",            "language": "string",            "total": 0,            "taxes_and_fees": [              {                "amount": 0,                "description": "string",                "type": "fee",                "included_in_premium": true,                "include_in_marketing_share": true,                "refundable": true,                "taxable": true,                "created_at": "2019-08-24T14:15:22Z",                "updated_at": "2019-08-24T14:15:22Z"              }            ],            "version": 0,            "quote_id": "string",            "offer_id": "d5a7a5b7-a4a3-49e7-9c69-b44d2cbe15cf",            "distribution_channel": "string",            "is_test": true,            "metadata": {              "property1": "string",              "property2": "string"            },            "checkout_url": "string",            "recommendation": {              "message": "string",              "enabled": true            },            "policy_holder": {              "first_name": "string",              "middle_name": "string",              "last_name": "string",              "email_address": "string",              "email_address_hash": "string",              "phone_number": "string",              "street": "string",              "city": "string",              "state": "string",              "postal_code": "string",              "country": "string",              "birth_date": "2019-08-24"            }          }        }      ]    }  ]}
Empty