Download OpenAPI specification:
Opt out of a specific booking.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string Booking |
| x-idempotency-key | string Idempotency key |
object This field takes partner-specific fields. The keys represent field names and can be any arbitrary string.The values must be one of the simple JSON types: string, boolean, number or null. It’s impossible to use complex types i.e. objects and arrays. |
{- "partner_metadata": { }
}{- "property1": null,
- "property2": null
}Create a quote with provided parameters
| partner_id required | string^[A-Z0-9]+$ |
| active_only | boolean Select only active policies if testing API key is used. |
| extra_fields | string Extra fields to include in response |
| fast_quote | boolean Fast quote calculation.Quote will be calculated, but results won't be stored. |
| include_extra_fields | boolean Include extra_fields in Fast quote response. Shall be used in conjunction with "fast_quote" |
| currency required | string (CurrencyEnum) Enum: "AED" "AFN" "ARS" "AUD" "AZN" "BAM" "BDT" "BGN" "BHD" "BRL" "BSD" "BYN" "CAD" "CHF" "CLP" "CNY" "COP" "CRC" "CZK" "DJF" "DKK" "EGP" "ERN" "ETB" "EUR" "FJD" "GBP" "GEL" "GTQ" "HKD" "HNL" "HRK" "HUF" "IDR" "ILS" "INR" "IQD" "ISK" "JOD" "JPY" "KES" "KHR" "KRW" "KWD" "KZT" "LAK" "LBP" "LKR" "MAD" "MKD" "MUR" "MVR" "MXN" "MYR" "NGN" "NOK" "NPR" "NZD" "OMR" "PEN" "PHP" "PKR" "PLN" "QAR" "RON" "RSD" "RUB" "SAR" "SDG" "SEK" "SGD" "SYP" "THB" "TJS" "TRY" "TWD" "UAH" "UGX" "USD" "UYU" "UZS" "VND" "XPF" "YER" "ZAR"
|
required | Array of objects (PolicyRequest) |
| customer_country required | string (CustomerCountryEnum) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GO" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "XK" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW"
|
| customer_region | string or null <= 64 characters Country subdivision where the customer resides (as defined by ISO-3166-2, e.g. "AU-NSW", "FR-20R", "IS-1", "JP-13", "SE-T", "SI-099", "US-NY") |
| customer_language | string <= 8 characters Customer's language |
| customer_email | string or null <email> <= 254 characters Email address of the customer (bq_policy_pii) |
| customer_ip | string or null |
| customer_postcode | string or null <= 32 characters |
| partner_subsidiary | string or null <= 128 characters Subsidiary of the Partner if applicable |
| partner_transaction_id | string or null <= 1024 characters A unique id of the transaction record (booking, order, etc) on the partner side. It can be used in get booking endpoint, but only if characters are limited to alphanumeric symbols, hyphens and underscores. |
| partner_customer_id | string or null <= 1024 characters Partner's customer ID for this transaction |
object This field can be used to pass custom information along with the quote request. The value of this field should be a JSON object representing key-value pairs with a string, boolean or number as a value. Complex data types like objects or array are not allowed. | |
object Experiment related data. This can be used, for example, to control the experiment (by setting the 'treatment' key) | |
object or null Policyholder information (bq_policy_pii) | |
| opt_out | boolean Default: false Should the created quote be automatically opted out (no booking can be made) |
{- "currency": "AED",
- "request": [
- {
- "plan": "string",
- "class": "string",
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "tours_price": 0,
- "baggage_count": 100,
- "flights_price": 0,
- "is_standalone": true,
- "trip_end_date": "2019-08-24T14:15:22Z",
- "flexible_ticket": true,
- "trip_start_date": "2019-08-24T14:15:22Z",
- "number_of_adults": 25,
- "departure_country": "string",
- "number_of_infants": 25,
- "accomodation_price": 0,
- "number_of_children": 25,
- "reservation_number": "string",
- "destination_country": "string",
- "total_tickets_price": 1,
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "policy_end_date": "2019-08-24T14:15:22Z",
- "policy_type_version": 1,
- "policy_type": "travel_flight_cancellation_cover_unbundled"
}
], - "customer_country": "AF",
- "customer_region": "string",
- "customer_language": "string",
- "customer_ip": "string",
- "customer_postcode": "string",
- "partner_subsidiary": "string",
- "partner_transaction_id": "string",
- "partner_customer_id": "string",
- "partner_metadata": { },
- "experiment": { },
- "policyholder": { },
- "opt_out": false
}{- "fast_quote_id": "string",
- "currency": "str",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}
}, - "pds_url": "string",
- "files": [
- {
- "property1": null,
- "property2": null
}
], - "extra_fields": {
- "property1": null,
- "property2": null
}, - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "experiment": { },
- "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string"
}
], - "errors": {
- "property1": null,
- "property2": null
}
}Get a specific quote information
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string QuotePackage |
{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string"
}
], - "bundle_code": "string",
- "bundle_price": 0.1,
- "bundle_content": {
- "property1": null,
- "property2": null
}, - "bundle_price_formatted": "string",
- "bundle_discount_percent": 0.1,
- "bundle_discount_amount": 0.1,
- "bundle_discount_amount_formatted": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Update an existing Quote in a Quote Package.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
| currency | string (CurrencyEnum) Enum: "AED" "AFN" "ARS" "AUD" "AZN" "BAM" "BDT" "BGN" "BHD" "BRL" "BSD" "BYN" "CAD" "CHF" "CLP" "CNY" "COP" "CRC" "CZK" "DJF" "DKK" "EGP" "ERN" "ETB" "EUR" "FJD" "GBP" "GEL" "GTQ" "HKD" "HNL" "HRK" "HUF" "IDR" "ILS" "INR" "IQD" "ISK" "JOD" "JPY" "KES" "KHR" "KRW" "KWD" "KZT" "LAK" "LBP" "LKR" "MAD" "MKD" "MUR" "MVR" "MXN" "MYR" "NGN" "NOK" "NPR" "NZD" "OMR" "PEN" "PHP" "PKR" "PLN" "QAR" "RON" "RSD" "RUB" "SAR" "SDG" "SEK" "SGD" "SYP" "THB" "TJS" "TRY" "TWD" "UAH" "UGX" "USD" "UYU" "UZS" "VND" "XPF" "YER" "ZAR"
|
Array of objects or null | |
| customer_country | string (CustomerCountryEnum) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GO" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "XK" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW"
|
| customer_region | string or null <= 64 characters Country subdivision where the customer resides (as defined by ISO-3166-2, e.g. "AU-NSW", "FR-20R", "IS-1", "JP-13", "SE-T", "SI-099", "US-NY") |
| customer_language | string <= 8 characters Customer's language |
| customer_email | string or null <email> <= 254 characters Email address of the customer (bq_policy_pii) |
| customer_ip | string or null |
| customer_postcode | string or null <= 32 characters |
| partner_subsidiary | string or null <= 128 characters Subsidiary of the Partner if applicable |
| partner_transaction_id | string or null <= 1024 characters A unique id of the transaction record (booking, order, etc) on the partner side. It can be used in get booking endpoint, but only if characters are limited to alphanumeric symbols, hyphens and underscores. |
| partner_customer_id | string or null <= 1024 characters Partner's customer ID for this transaction |
object This field can be used to pass custom information along with the quote request. The value of this field should be a JSON object representing key-value pairs with a string, boolean or number as a value. Complex data types like objects or array are not allowed. | |
object Experiment related data. This can be used, for example, to control the experiment (by setting the 'treatment' key) | |
object or null Policyholder information (bq_policy_pii) | |
| preview | boolean Default: false When preview is True, the update will only be displayed but not saved. |
{- "currency": "AED",
- "request": [
- {
- "property1": null,
- "property2": null
}
], - "customer_country": "AF",
- "customer_region": "string",
- "customer_language": "string",
- "customer_ip": "string",
- "customer_postcode": "string",
- "partner_subsidiary": "string",
- "partner_transaction_id": "string",
- "partner_customer_id": "string",
- "partner_metadata": { },
- "experiment": { },
- "policyholder": { },
- "preview": false
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string"
}
], - "bundle_code": "string",
- "bundle_price": 0.1,
- "bundle_content": {
- "property1": null,
- "property2": null
}, - "bundle_price_formatted": "string",
- "bundle_discount_percent": 0.1,
- "bundle_discount_amount": 0.1,
- "bundle_discount_amount_formatted": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Add quotes to existing package
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
required | Array of objects |
{- "request": [
- {
- "property1": null,
- "property2": null
}
]
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string"
}
], - "bundle_code": "string",
- "bundle_price": 0.1,
- "bundle_content": {
- "property1": null,
- "property2": null
}, - "bundle_price_formatted": "string",
- "bundle_discount_percent": 0.1,
- "bundle_discount_amount": 0.1,
- "bundle_discount_amount_formatted": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Delete quotes from existing package
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
required | Array of objects (QuoteID) |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string"
}
], - "bundle_code": "string",
- "bundle_price": 0.1,
- "bundle_content": {
- "property1": null,
- "property2": null
}, - "bundle_price_formatted": "string",
- "bundle_discount_percent": 0.1,
- "bundle_discount_amount": 0.1,
- "bundle_discount_amount_formatted": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Lists all partner bookings filtered by the query parameters. Datetime fields need to use url-encoded ISO 8601 date format.
| partner_id required | string^[A-Z0-9]+$ |
| created_after | string created_after |
| created_before | string created_before |
| customer__email | string customer__email |
| customer__email__startswith | string customer__email__startswith |
| customer__phone | string customer__phone |
| customer__phone__startswith | string customer__phone__startswith |
| id | string id |
| limit | integer Number of results to return per page. |
| offset | integer The initial index from which to return the results. |
| status | string status (E.g. 1, 2, 3, CONFIRMED, CANCELLED etc.) |
| updated_after | string updated_after |
| updated_before | string updated_before |
{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Get booking details for the provided quote package id or partner_transaction_id.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string Booking |
{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "partner": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "xpay_payment_enabled": true,
- "xpay_b2c_payment_enabled": true,
- "xpay_refund_enabled": true,
- "automatic_refund_by_xcore": true,
- "allow_policy_modifications_on_xcover": true,
- "emails": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "from_email": "string",
- "email_slug": "string",
- "email_version": -2147483648,
- "event_name": 0,
- "include_partner_in_context": true,
- "attach_coi": true,
- "send_linked_sms": true,
- "auto_send": true,
- "enable_expression": "string"
}
], - "attributes": { },
- "signup_method_on_xcover": "email",
- "use_standard_region": true,
- "allow_payout_customer": true,
- "eligible_for_xpay_charge_retry": true,
- "subsidiary": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
}
}, - "partner_metadata": { },
- "customer_language": "string"
}Convert a specific quote to booking
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[a-zA-Z0-9-_=]+$ |
| x-idempotency-key | string Idempotency key |
required | Array of objects (BookingRequestQuote) |
required | object (Policyholder) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. |
| require_payment_confirmation | boolean |
| partner_transaction_id | string |
| partner_transaction_ref | string <= 255 characters |
| xpay_charge_id | string Deprecated. Please use the payment_details. |
| xpay_customer_token_id | string Deprecated. Please use the payment_details. |
object (PaymentDetails) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
object (BookingAgent) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "instalment_plan": "string",
- "first_instalment_paid": true,
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "reservation_number": "string",
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z"
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "tax_payer_id": "string"
}, - "require_payment_confirmation": true,
- "partner_transaction_id": "string",
- "partner_transaction_ref": "string",
- "xpay_charge_id": "string",
- "xpay_customer_token_id": "string",
- "payment_details": {
- "provider": "string",
- "xpay_charge_id": "string",
- "xpay_customer_id": "string",
- "transaction_id": "string",
- "customer_token_id": "string"
},
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd"
}Change the owner of a booking to another user.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| first_name | string <= 255 characters First name |
| last_name | string or null <= 255 characters Last name |
string or null Email address | |
| phone | string or null Phone number |
| address1 | string or null <= 256 characters Address line 1 |
| address2 | string or null <= 256 characters Address line 2 |
| postcode | string or null <= 32 characters Postcode |
| city | string or null <= 128 characters City of residence |
| region | string or null <= 64 characters Region |
| birth_date | string or null <date> Date of birth |
GenderEnum (string) or BlankEnum (any) or NullEnum (null) Gender
| |
| company | string or null <= 256 characters Company name |
| company_reg_id | string or null <= 64 characters Company registration ID |
| middle_name | string or null <= 256 characters |
| country | string (CountryEnum) Enum: "AF" "AX" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" "AR" "AM" "AW" "AU" "AT" "AZ" "BS" "BH" "BD" "BB" "BY" "BE" "BZ" "BJ" "BM" "BT" "BO" "BQ" "BA" "BW" "BV" "BR" "IO" "BN" "BG" "BF" "BI" "CV" "KH" "CM" "CA" "KY" "CF" "TD" "CL" "CN" "CX" "CC" "CO" "KM" "CG" "CD" "CK" "CR" "CI" "HR" "CU" "CW" "CY" "CZ" "DK" "DJ" "DM" "DO" "EC" "EG" "SV" "GQ" "ER" "EE" "SZ" "ET" "FK" "FO" "FJ" "FI" "FR" "GF" "PF" "TF" "GA" "GM" "GE" "DE" "GH" "GI" "GO" "GR" "GL" "GD" "GP" "GU" "GT" "GG" "GN" "GW" "GY" "HT" "HM" "VA" "HN" "HK" "HU" "IS" "IN" "ID" "IR" "IQ" "IE" "IM" "IL" "IT" "JM" "JP" "JE" "JO" "KZ" "KE" "KI" "XK" "KW" "KG" "LA" "LV" "LB" "LS" "LR" "LY" "LI" "LT" "LU" "MO" "MG" "MW" "MY" "MV" "ML" "MT" "MH" "MQ" "MR" "MU" "YT" "MX" "FM" "MD" "MC" "MN" "ME" "MS" "MA" "MZ" "MM" "NA" "NR" "NP" "NL" "NC" "NZ" "NI" "NE" "NG" "NU" "NF" "KP" "MK" "MP" "NO" "OM" "PK" "PW" "PS" "PA" "PG" "PY" "PE" "PH" "PN" "PL" "PT" "PR" "QA" "RE" "RO" "RU" "RW" "BL" "SH" "KN" "LC" "MF" "PM" "VC" "WS" "SM" "ST" "SA" "SN" "RS" "SC" "SL" "SG" "SX" "SK" "SI" "SB" "SO" "ZA" "GS" "KR" "SS" "ES" "LK" "SD" "SR" "SJ" "SE" "CH" "SY" "TW" "TJ" "TZ" "TH" "TL" "TG" "TK" "TO" "TT" "TN" "TR" "TM" "TC" "TV" "UG" "UA" "AE" "GB" "UM" "US" "UY" "UZ" "VU" "VE" "VN" "VG" "VI" "WF" "EH" "YE" "ZM" "ZW" Country of residence
|
| age | integer or null Age |
| secondary_email | string or null Secondary email address |
| tax_payer_id | string or null <= 32 characters Tax payer ID |
{- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "tax_payer_id": "string"
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "partner": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "xpay_payment_enabled": true,
- "xpay_b2c_payment_enabled": true,
- "xpay_refund_enabled": true,
- "automatic_refund_by_xcore": true,
- "allow_policy_modifications_on_xcover": true,
- "emails": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "from_email": "string",
- "email_slug": "string",
- "email_version": -2147483648,
- "event_name": 0,
- "include_partner_in_context": true,
- "attach_coi": true,
- "send_linked_sms": true,
- "auto_send": true,
- "enable_expression": "string"
}
], - "attributes": { },
- "signup_method_on_xcover": "email",
- "use_standard_region": true,
- "allow_payout_customer": true,
- "eligible_for_xpay_charge_retry": true,
- "subsidiary": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
}
}, - "partner_metadata": { },
- "customer_language": "string"
}Confirms booking in two-step booking scenario. In this case require_payment_confirmation flag in the Create booking request needs to be set.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
object (PaymentDetails) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
| xpay_charge_id | string Deprecated, moved into payment_details. |
{- "payment_details": {
- "provider": "string",
- "xpay_charge_id": "string",
- "xpay_customer_id": "string",
- "transaction_id": "string",
- "customer_token_id": "string"
}, - "xpay_charge_id": "string"
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd"
}Confirm processing of refunds for quotes in a booking.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
required | Array of objects (RefundConfirmationQuoteRequest) |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "transaction_id": "string",
- "refund_date": "2019-08-24T14:15:22Z",
- "refund_amount": -1e+28
}
]
}{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Manually triggers policy lifecycle email to be sent to the customer
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
string or null Email address | |
EventEnum (string) or BlankEnum (any) or NullEnum (null) Defines what email to trigger
|
{- "email": "string",
- "event": "BOOKING_CREATED"
}{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Convert a fast quote to booking
| fast_quote_id required | string <uuid> |
| partner_id required | string^[A-Z0-9]+$ |
| x-idempotency-key | string Idempotency key |
required | Array of objects (BookingRequestQuote) |
required | object (Policyholder) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. |
| require_payment_confirmation | boolean |
| partner_transaction_id | string |
| partner_transaction_ref | string <= 255 characters |
| xpay_charge_id | string Deprecated. Please use the payment_details. |
| xpay_customer_token_id | string Deprecated. Please use the payment_details. |
object (PaymentDetails) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
object (BookingAgent) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "instalment_plan": "string",
- "first_instalment_paid": true,
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "reservation_number": "string",
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z"
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "tax_payer_id": "string"
}, - "require_payment_confirmation": true,
- "partner_transaction_id": "string",
- "partner_transaction_ref": "string",
- "xpay_charge_id": "string",
- "xpay_customer_token_id": "string",
- "payment_details": {
- "provider": "string",
- "xpay_charge_id": "string",
- "xpay_customer_id": "string",
- "transaction_id": "string",
- "customer_token_id": "string"
},
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd"
}Make quote and booking in a single step
| partner_id required | string^[A-Z0-9]+$ |
| active_only | boolean Select only active policies if testing API key is used. |
| x-idempotency-key | string Idempotency key |
| customer_ip | string or null |
required | object (Policyholder) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. |
object Experiment related data. This can be used, for example, to control the experiment (by setting the 'treatment' key) | |
| currency required | string (CurrencyEnum) Enum: "AED" "AFN" "ARS" "AUD" "AZN" "BAM" "BDT" "BGN" "BHD" "BRL" "BSD" "BYN" "CAD" "CHF" "CLP" "CNY" "COP" "CRC" "CZK" "DJF" "DKK" "EGP" "ERN" "ETB" "EUR" "FJD" "GBP" "GEL" "GTQ" "HKD" "HNL" "HRK" "HUF" "IDR" "ILS" "INR" "IQD" "ISK" "JOD" "JPY" "KES" "KHR" "KRW" "KWD" "KZT" "LAK" "LBP" "LKR" "MAD" "MKD" "MUR" "MVR" "MXN" "MYR" "NGN" "NOK" "NPR" "NZD" "OMR" "PEN" "PHP" "PKR" "PLN" "QAR" "RON" "RSD" "RUB" "SAR" "SDG" "SEK" "SGD" "SYP" "THB" "TJS" "TRY" "TWD" "UAH" "UGX" "USD" "UYU" "UZS" "VND" "XPF" "YER" "ZAR"
|
required | Array of objects (BookingPolicyRequest) |
object This field can be used to pass custom information along with the quote request. The value of this field should be a JSON object representing key-value pairs with a string, boolean or number as a value. Complex data types like objects or array are not allowed. | |
| fast_quote_id | string <uuid> |
| partner_transaction_ref | string <= 255 characters |
| partner_subsidiary | string or null <= 128 characters Subsidiary of the Partner if applicable |
| partner_transaction_id | string or null <= 1024 characters A unique id of the transaction record (booking, order, etc) on the partner side. It can be used in get booking endpoint, but only if characters are limited to alphanumeric symbols, hyphens and underscores. |
| customer_language | string <= 8 characters Customer's language |
| partner_customer_id | string or null <= 1024 characters Partner's customer ID for this transaction |
object (BookingAgent) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
object (PaymentDetails) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
| xpay_charge_id | string Deprecated, moved into payment_details. |
{- "customer_ip": "string",
- "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "tax_payer_id": "string"
}, - "experiment": { },
- "currency": "AED",
- "request": [
- {
- "plan": "string",
- "class": "string",
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "tours_price": 0,
- "baggage_count": 100,
- "flights_price": 0,
- "is_standalone": true,
- "trip_end_date": "2019-08-24T14:15:22Z",
- "flexible_ticket": true,
- "trip_start_date": "2019-08-24T14:15:22Z",
- "number_of_adults": 25,
- "departure_country": "string",
- "number_of_infants": 25,
- "accomodation_price": 0,
- "number_of_children": 25,
- "reservation_number": "string",
- "destination_country": "string",
- "total_tickets_price": 1,
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "policy_end_date": "2019-08-24T14:15:22Z",
- "policy_type_version": 1,
- "policy_type": "travel_flight_cancellation_cover_unbundled",
- "partner_price": 0
}
], - "partner_metadata": { },
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "partner_transaction_ref": "string",
- "partner_subsidiary": "string",
- "partner_transaction_id": "string",
- "customer_language": "string",
- "partner_customer_id": "string",
- "payment_details": {
- "provider": "string",
- "xpay_charge_id": "string",
- "xpay_customer_id": "string",
- "transaction_id": "string",
- "customer_token_id": "string"
}, - "xpay_charge_id": "string"
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd"
}Modifies booking. This endpoint can potentially trigger premium change.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[a-zA-Z0-9-_=]+$ |
| x-idempotency-key | string Idempotency key |
Array of objects (UpdateBookingRequestQuote) non-empty | |
| xpay_charge_id | string |
| partner_transaction_ref | string <= 255 characters |
object (PolicyholderUpdate) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. | |
| skip_xpay_transaction | boolean Default: false |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "update_fields": {
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "tours_price": 0,
- "flights_price": 0,
- "trip_end_date": "2019-08-24T14:15:22Z",
- "trip_start_date": "2019-08-24T14:15:22Z",
- "number_of_adults": 25,
- "departure_country": "string",
- "number_of_infants": 25,
- "number_of_children": 25,
- "reservation_number": "string",
- "total_tickets_price": 1,
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "policy_end_date": "2019-08-24T14:15:22Z"
}, - "modification_id": "39d4ab5d-94d6-4d4f-9f67-5e13cf1b3f52",
- "modification_fields": { }
}
], - "xpay_charge_id": "string",
- "partner_transaction_ref": "string",
- "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string"
}, - "skip_xpay_transaction": false
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "attributes": {
- "property1": null,
- "property2": null
}, - "can_be_cancelled": true,
- "coolingoff_end_date": "2019-08-24T14:15:22Z",
- "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "cancellation_info": {
- "property1": null,
- "property2": null
}, - "initial_quote_id": "string",
- "price_diff": -1e+28,
- "price_diff_formatted": "string"
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "total_price_diff": -1e+28,
- "total_price_diff_formatted": "string"
}Confirms booking modification and set parameters as provided in the previous " modification" request
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| update_id required | string^[a-zA-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
| xpay_charge_id | string |
{- "xpay_charge_id": "string"
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "attributes": {
- "property1": null,
- "property2": null
}, - "can_be_cancelled": true,
- "coolingoff_end_date": "2019-08-24T14:15:22Z",
- "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "cancellation_info": {
- "property1": null,
- "property2": null
}, - "initial_quote_id": "string",
- "price_diff": -1e+28,
- "price_diff_formatted": "string"
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "total_price_diff": -1e+28,
- "total_price_diff_formatted": "string"
}Generates a quote for booking modification. The modification then needs to be confirmed using the update_id parameter provided in the response.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
Array of objects (UpdateBookingRequestQuote) non-empty | |
| xpay_charge_id | string |
| partner_transaction_ref | string <= 255 characters |
object (PolicyholderUpdate) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. | |
| skip_xpay_transaction | boolean Default: false |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "update_fields": {
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "tours_price": 0,
- "flights_price": 0,
- "trip_end_date": "2019-08-24T14:15:22Z",
- "trip_start_date": "2019-08-24T14:15:22Z",
- "number_of_adults": 25,
- "departure_country": "string",
- "number_of_infants": 25,
- "number_of_children": 25,
- "reservation_number": "string",
- "total_tickets_price": 1,
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "policy_end_date": "2019-08-24T14:15:22Z"
}, - "modification_id": "39d4ab5d-94d6-4d4f-9f67-5e13cf1b3f52",
- "modification_fields": { }
}
], - "xpay_charge_id": "string",
- "partner_transaction_ref": "string",
- "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string"
}, - "skip_xpay_transaction": false
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "attributes": {
- "property1": null,
- "property2": null
}, - "can_be_cancelled": true,
- "coolingoff_end_date": "2019-08-24T14:15:22Z",
- "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "cancellation_info": {
- "property1": null,
- "property2": null
}, - "initial_quote_id": "string",
- "price_diff": -1e+28,
- "price_diff_formatted": "string"
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd",
- "total_price_diff": -1e+28,
- "total_price_diff_formatted": "string",
- "update_id": "string",
- "payment_methods": [
- {
- "number": 0,
- "variant": "string",
- "expiry_year": 0,
- "holder_name": "string",
- "expiry_month": 0,
- "payment_method": "string"
}
]
}Cancel a specific booking.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
| preview | boolean Default: false |
| partner_transaction_ref | string <= 255 characters |
| refund_required | boolean Default: true Deprecated. Refund will be created on a best-effort basis |
Array of objects (CancelBookingRequestQuote) | |
| cancellation_date | string <date-time> ISO 8601 datetime for when the cancellation should be effective. If provided, must be within allowed date range and cannot be before booking confirmation or after policy end date. |
{- "preview": false,
- "partner_transaction_ref": "string",
- "refund_required": true,
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "reason_for_cancellation": "string"
}
], - "cancellation_date": "2019-08-24T14:15:22Z"
}{- "id": "string",
- "status": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "policy_cancellation_date": "2019-08-24T14:15:22Z",
- "policy_coolingoff_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "refund_value": -1e+28,
- "adjustment_fee": -1e+28,
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "total_refund": -1e+28,
- "total_refund_formatted": "string",
- "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "currency": "str",
- "cancellation_id": "string",
- "confirm_before": "2019-08-24T14:15:22Z",
- "partner": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "xpay_payment_enabled": true,
- "xpay_b2c_payment_enabled": true,
- "xpay_refund_enabled": true,
- "automatic_refund_by_xcore": true,
- "allow_policy_modifications_on_xcover": true,
- "emails": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "from_email": "string",
- "email_slug": "string",
- "email_version": -2147483648,
- "event_name": 0,
- "include_partner_in_context": true,
- "attach_coi": true,
- "send_linked_sms": true,
- "auto_send": true,
- "enable_expression": "string"
}
], - "attributes": { },
- "signup_method_on_xcover": "email",
- "use_standard_region": true,
- "allow_payout_customer": true,
- "eligible_for_xpay_charge_retry": true,
- "subsidiary": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
}
}, - "refund_amount": 0.1,
- "refund_amount_formatted": "string",
- "cancellation_payout_url": "string"
}Confirm the cancellation that is created by booking cancellation preview
| cancellation_id required | string^[a-zA-Z0-9-]+$ |
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| reason_for_cancellation | string or null <= 1000 characters |
{- "reason_for_cancellation": "string"
}{- "id": "string",
- "status": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "policy_cancellation_date": "2019-08-24T14:15:22Z",
- "policy_coolingoff_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "refund_value": -1e+28,
- "adjustment_fee": -1e+28,
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "total_refund": -1e+28,
- "total_refund_formatted": "string",
- "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "currency": "str",
- "cancellation_id": "string",
- "confirm_before": "2019-08-24T14:15:22Z",
- "partner": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
- "updated_at": "2019-08-24T14:15:22Z",
- "xpay_payment_enabled": true,
- "xpay_b2c_payment_enabled": true,
- "xpay_refund_enabled": true,
- "automatic_refund_by_xcore": true,
- "allow_policy_modifications_on_xcover": true,
- "emails": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "from_email": "string",
- "email_slug": "string",
- "email_version": -2147483648,
- "event_name": 0,
- "include_partner_in_context": true,
- "attach_coi": true,
- "send_linked_sms": true,
- "auto_send": true,
- "enable_expression": "string"
}
], - "attributes": { },
- "signup_method_on_xcover": "email",
- "use_standard_region": true,
- "allow_payout_customer": true,
- "eligible_for_xpay_charge_retry": true,
- "subsidiary": {
- "id": "string",
- "slug": "string",
- "name": "string",
- "title": "string",
}
}, - "refund_amount": 0.1,
- "refund_amount_formatted": "string",
- "cancellation_payout_url": "string"
}Creates a renewal with parameters provided in the previous "Quote for renewal" request
| partner_id required | string^[A-Z0-9]+$ |
| pending_renewal_id required | string^[a-zA-Z0-9-]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| return_booking_detail | boolean Return booking details in response |
| x-idempotency-key | string Idempotency key |
required | Array of objects (BookingRequestQuote) |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "insured": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "country": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "metadata": { },
- "company": "string",
- "gender": "male"
}
], - "instalment_plan": "string",
- "first_instalment_paid": true,
- "esimid": "string",
- "flights": [
- {
- "legs": [
- {
- "cost": 0,
- "carrier": "string",
- "arrival_city": "string",
- "flight_number": "string",
- "flight_status": "On-Time",
- "ticket_status": "Active",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "customer_rebooked": true,
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "flight_delay_reason": "string",
- "customer_compensation": 0,
- "flight_delay_duration": "string",
- "flight_cancellation_reason": "string",
- "marketing_airline_iata_code": "string",
- "marketing_airline_icao_code": "string",
- "operating_airline_iata_code": "string",
- "operating_airline_icao_code": "string"
}
], - "price": 0,
- "arrival_city": "string",
- "departure_city": "string",
- "arrival_airport": "string",
- "arrival_country": "string",
- "arrival_datetime": "2019-08-24T14:15:22Z",
- "departure_airport": "string",
- "departure_country": "string",
- "departure_datetime": "2019-08-24T14:15:22Z",
- "airline_reservation_number": "string"
}
], - "resident_id": "string",
- "reservation_number": "string",
- "frequent_flyer_details": [
- {
- "frequent_flyer_number": "string"
}
], - "policy_start_date": "2019-08-24T14:15:22Z"
}
]
}{- "renewal_id": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string",
- "policy_vertical": "string",
- "show_benefits": true,
- "metadata": { },
- "policy_id": "string",
- "activated_at": "2019-08-24T14:15:22Z"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string",
- "show_benefit": true,
- "claim_types": [
- null
]
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string",
- "attributes": { },
- "underwriting_fee": -1e+28
}
]
}Calling this endpoint indicates that customer is not intended to renew the policyinsurance products
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
Array of objects (RenewalOptoutRequestQuote) |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Generates a Quote for renewal as specified in the request which can then be confirmed using the endpoint specified in the Response or through auto_confirm flag in the Request.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| x-idempotency-key | string Idempotency key |
| auto_confirm | boolean Default: false Should the created renewal be automatically confirmed |
| use_newest_policy | boolean Default: false Use newest policy on renewal |
| due_date_within | integer Only renew quotes whose due dates are within the specified number of days from when the request is sent. If not provided, all quotes that are eligible for renewal will be renewed. Accepts non-positive values as well. |
{- "auto_confirm": false,
- "use_newest_policy": false,
- "due_date_within": 0
}{- "renewal_id": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string",
- "policy_vertical": "string",
- "show_benefits": true,
- "metadata": { },
- "policy_id": "string",
- "activated_at": "2019-08-24T14:15:22Z"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string",
- "show_benefit": true,
- "claim_types": [
- null
]
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "discount_price": -1e+28,
- "discount_price_formatted": "string",
- "discount_amount": -1e+28,
- "discount_amount_formatted": "string",
- "instalment_plans": [
- {
- "name": "string",
- "label": "string",
- "amount": -1e+28,
- "first_instalment_amount": -1e+28
}
], - "price_guardrail_lower_bound": "string",
- "price_guardrail_upper_bound": "string",
- "attributes": { },
- "underwriting_fee": -1e+28
}
]
}Run pricing for an UNPRICED instalment. If dry_run is true in the request body, changes will not be saved.
| instalment_id required | string^[a-zA-Z0-9-]+$ |
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
| number | integer [ -32768 .. 32767 ] Nextup number in the instalments created for a quote |
| total_amount | number or null <double> ( -1e+28 .. 1e+28 ) Total amount for this instalment of policy e.g. 123.45 |
object or null Taxes of the quote (if quote is booked) | |
object or null Surcharge of the quote (if quote is booked) | |
| underwriting_fee | number or null <double> ( -1e+28 .. 1e+28 ) Fee payed to the underwriter (in policy currency) |
object or null Commission for this quote (if quote is booked) |
{- "number": -32768,
- "total_amount": -1e+28,
- "tax": { },
- "surcharges": { },
- "underwriting_fee": -1e+28,
- "commissions": { }
}{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Get instalments details for the provided quote package id.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string Booking |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "next_payment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": -32768,
- "quote": "ac2490ad-7b17-416c-8a94-838b251071f6",
- "period_start_date": "2019-08-24T14:15:22Z",
- "period_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "total_amount": -1e+28,
- "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "surcharges": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "payment_failures": { },
- "extra_fields": "string"
}, - "paid_until": "2019-08-24T14:15:22Z",
- "is_payment_overdue": true,
- "payment_schedule": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": -32768,
- "quote": "ac2490ad-7b17-416c-8a94-838b251071f6",
- "period_start_date": "2019-08-24T14:15:22Z",
- "period_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "total_amount": -1e+28,
- "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "surcharges": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "payment_failures": { },
- "extra_fields": "string"
}
], - "total_amount_paid": -1e+28,
- "total_amount_due": -1e+28,
- "partner_comission_paid": -1e+28,
- "partner_comission_due": -1e+28
}
], - "currency": "string"
}Update instalment payment status
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[a-zA-Z0-9-_]+$ |
| x-idempotency-key | string Idempotency key |
required | Array of objects (QuoteInstalment) |
| partner_transaction_ref | string <= 255 characters |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "instalment_id": "286b1dc2-e2f0-40ea-bc39-079ef019b7d0",
- "instalment_number": 0,
- "payment_attempted_date": "2019-08-24T14:15:22Z",
- "payment_status": "PAID",
- "payment_failures": { }
}
], - "partner_transaction_ref": "string"
}{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}Calculate final adjustments for cancelled quotes' instalments. For each instalment covered by the cancellation date, recalculate pricing, and save the final_adjustment amount.
| partner_id required | string^[A-Z0-9]+$ |
| quote_package_id required | string^[A-Z0-9-]+$ |
{- "type": "string",
- "message": "string",
- "code": "string",
- "href": "string",
- "errors": {
- "property1": null,
- "property2": null
}
}List tables.
| partner_id required | string^[A-Z0-9]+$ |
| limit | integer Number of results to return per page. |
| offset | integer The initial index from which to return the results. |
| ordering | string Which field to use when ordering the results. |
{- "count": 123,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "table_id": "ac92386a-00cc-4818-bf43-1a666d5a5e67",
- "slug": "string",
- "version": 2147483647,
- "file": "string",
- "active_from": "2019-08-24T14:15:22Z",
- "template": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "columns": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "data_type": "TEXT",
- "is_nullable": true,
- "is_unique": true,
- "create_index": true
}
]
}
}
]
}Get table.
| id required | string <uuid> A UUID string identifying this table. |
| partner_id required | string^[A-Z0-9]+$ |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "table_id": "ac92386a-00cc-4818-bf43-1a666d5a5e67",
- "slug": "string",
- "version": 2147483647,
- "file": {
- "name": "string",
- "contents": [
- [
- "string"
]
]
}, - "active_from": "2019-08-24T14:15:22Z",
- "template": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "columns": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "data_type": "TEXT",
- "is_nullable": true,
- "is_unique": true,
- "create_index": true
}
]
}, - "data": { }
}| table_pk required | string^[a-f0-9-]+$ |
| action | string |
| actor_id | string |
| limit | integer Number of results to return per page. |
| object_pk | string |
| offset | integer The initial index from which to return the results. |
| partner_id | string |
| timestamp_from | string <date-time> |
| timestamp_to | string <date-time> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "timestamp": "2019-08-24T14:15:22Z",
- "action": "string",
- "changes": {
- "property1": null,
- "property2": null
}, - "object_pk": "string",
- "object_repr": "string",
- "source": "string",
- "actor_id": "string",
- "actor_name": "string",
- "actor_email": "string",
- "actor_role": "string",
- "reason": "string",
- "partner_id": "string"
}
]
}| action | string |
| actor_id | string |
| limit | integer Number of results to return per page. |
| object_pk | string |
| offset | integer The initial index from which to return the results. |
| partner_id | string |
| timestamp_from | string <date-time> |
| timestamp_to | string <date-time> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "timestamp": "2019-08-24T14:15:22Z",
- "action": "string",
- "changes": {
- "property1": null,
- "property2": null
}, - "object_pk": "string",
- "object_repr": "string",
- "source": "string",
- "actor_id": "string",
- "actor_name": "string",
- "actor_email": "string",
- "actor_role": "string",
- "reason": "string",
- "partner_id": "string"
}
]
}Confirm an offer by converting it to a booking
| offer_id required | string <uuid> Offer ID from create_offer response |
| partner_id required | string[A-Z0-9]+ Partner ID |
| X-API-Error-Version | string Enum: "v1" "v2" Set to 'v2' to opt into the v2 error response shape. Applies to every error response of offer create, offer reasoning, offer opt-out and offer confirm. Unrecognised values fall back to v1 and never fail the request. |
| x-idempotency-key | string Idempotency key |
required | Array of objects (ConfirmOfferQuote) |
required | object (Policyholder) Policyholder serializer with a minimum set of attributes. The Policyholder serializer class contains the attributes that make up what can be considered a base Policyholder. This class contains only those attributes that are shared by all the variants of Policyholder to minimize repetition of attribute definitions. |
| require_payment_confirmation | boolean |
| partner_transaction_id | string |
| partner_transaction_ref | string <= 255 characters |
| xpay_charge_id | string Deprecated. Please use the payment_details. |
| xpay_customer_token_id | string Deprecated. Please use the payment_details. |
object (PaymentDetails) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. | |
object (BookingAgent) Mixin that automatically generates formatted versions of currency fields. Usage example: class MySerializer(CurrencyFormattedFields, serializers.Serializer): formatted_fields = ["price", "total_amount", "discount"] This will automatically add price_formatted, total_amount_formatted, and discount_formatted to the serialized output. |
{- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "insured": [
- {
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "metadata": {
- "property1": null,
- "property2": null
}, - "company": "string"
}
], - "instalment_plan": "string",
- "first_instalment_paid": true,
- "partner_price": -1e+28
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "tax_payer_id": "string"
}, - "require_payment_confirmation": true,
- "partner_transaction_id": "string",
- "partner_transaction_ref": "string",
- "xpay_charge_id": "string",
- "xpay_customer_token_id": "string",
- "payment_details": {
- "provider": "string",
- "xpay_charge_id": "string",
- "xpay_customer_id": "string",
- "transaction_id": "string",
- "customer_token_id": "string"
},
}{- "id": "string",
- "status": "string",
- "currency": "str",
- "total_price": -1e+28,
- "total_price_formatted": "string",
- "partner_transaction_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "security_token": "string",
- "quotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "policy_start_date": "2019-08-24T14:15:22Z",
- "policy_end_date": "2019-08-24T14:15:22Z",
- "status": "string",
- "price": -1e+28,
- "price_formatted": "string",
- "policy": {
- "policy_type": "string",
- "policy_type_version": "string",
- "policy_type_slug": "string",
- "policy_type_group_name": "string",
- "policy_name": "string",
- "policy_code": "string",
- "policy_version": "string",
- "category": "string",
- "content": {
- "title": "string",
- "header": "string",
- "description": "string",
- "optout_msg": "string",
- "inclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "exclusions": [
- {
- "title": "string",
- "description": "string"
}
], - "disclaimer": "string",
- "disclaimer_html": "string",
- "payment_disclaimer": "string",
- "in_path_disclaimer": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}
}, - "underwriter": {
- "disclaimer": "string",
- "name": "string"
}, - "claim_selector_id": "string",
- "policy_currency": "string"
}, - "insured": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "email": "string",
- "country": "AF",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "postcode": "string",
- "region": "string",
- "phone": "string",
- "age": 150,
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string"
}
], - "tax": {
- "total_tax": -1e+28,
- "total_amount_without_tax": -1e+28,
- "taxes": [
- {
- "tax_amount": -1e+28,
- "tax_code": "string"
}
]
}, - "duration": "string",
- "benefits": [
- {
- "benefit_content_id": "8650c96c-29ca-4b1b-b909-6f276c601c22",
- "description": "string",
- "extra_content": {
- "property1": null,
- "property2": null
}, - "parent_benefit_content_id": "71c06cd4-50d9-476e-86b3-b34a7cf4d685",
- "parent_description": "string",
- "limit_description": "string",
- "limit": -1e+28,
- "limit_policy_currency": -1e+28,
- "limit_formatted": "string",
- "limit_policy_currency_formatted": "string",
- "limit_per_unit": -1e+28,
- "limit_per_unit_policy_currency": -1e+28,
- "limit_per_unit_formatted": "string",
- "limit_per_unit_policy_currency_formatted": "string",
- "excess_description": "string",
- "excess": -1e+28,
- "excess_policy_currency": -1e+28,
- "excess_formatted": "string",
- "excess_policy_currency_formatted": "string",
- "minimum_claim_amount": -1e+28,
- "minimum_claim_amount_policy_currency": -1e+28,
- "minimum_claim_amount_formatted": "string",
- "minimum_claim_amount_policy_currency_formatted": "string",
- "waiting_period": 0,
- "maximum_claims": 0,
- "benefit_code": "string"
}
], - "commission": {
- "partner_commission": -1e+28,
- "surcharge_commission": -1e+28,
- "total_commission": -1e+28
}, - "created_at": "2019-08-24T14:15:22Z",
- "confirmed_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "cancelled_at": "2019-08-24T14:15:22Z",
- "cancelled_from": "2019-08-24T14:15:22Z",
- "is_renewable": true,
- "is_pricebeat_enabled": true,
- "cover_amount": -1e+28,
- "cover_amount_formatted": "string",
- "attachments": [
- "string"
], - "files": [
- {
- "property1": null,
- "property2": null
}
], - "custom_documents": { },
- "extra_fields": {
- "property1": null,
- "property2": null
}, - "surcharge": {
- "total_amount": -1e+28,
- "surcharges": [
- {
- "amount": -1e+28,
- "code": "string",
- "label": "string"
}
]
}, - "parent_quote_status": 0,
- "experiment": {
- "property1": null,
- "property2": null
}, - "next_renewal": {
- "id": "string",
- "package_id": "string",
- "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",
- "status": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "notification_date": "2019-08-24T14:15:22Z",
- "due_date": "2019-08-24T14:15:22Z",
- "expiry_date": "2019-08-24T14:15:22Z",
- "cancelled_on": "2019-08-24T14:15:22Z",
- "paid_on": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}, - "can_be_cancelled": true,
- "errors": [
- "string"
], - "third_party_admins": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "ombudsman_list": [
- {
- "name": "string",
- "phone": "string",
- "email": "string"
}
], - "cancellation_info": {
- "property1": null,
- "property2": null
}
}
], - "policyholder": {
- "first_name": "string",
- "last_name": "string",
- "email": "string",
- "phone": "string",
- "address1": "string",
- "address2": "string",
- "postcode": "string",
- "city": "string",
- "region": "string",
- "birth_date": "2019-08-24",
- "gender": "male",
- "company": "string",
- "company_reg_id": "string",
- "middle_name": "string",
- "country": "AF",
- "age": 0,
- "secondary_email": "string",
- "allow_updates": false,
- "fields_allowed_to_update": [
- null
]
}, - "total_tax": -1e+28,
- "total_tax_formatted": "string",
- "total_premium": -1e+28,
- "total_premium_formatted": "string",
- "fnol_link": "string",
- "cancel_link": "string",
- "fast_quote_id": "35c03aeb-0972-4351-af1b-d008324c66dd"
}