Secret Escapes
Create booking
POST
/api/partners/{partner_id}/quotes/{quote_id}/bookings
The Create Booking API endpoint allows partners to convert a quote into a booking. Partners can provide necessary details about the policyholder and insured parties to finalise the booking process. This endpoint requires a valid access token obtained from the Authentication.
Path parameters
Parameter | Type | Description |
---|---|---|
partner_id | string | The partner identifier provided during onboarding |
quote_id | string | Unique identifier of the quote returned in the widget |
Headers
Name | Value |
---|---|
Accept |
|
Content-Type |
|
Authorization |
|
Body
Name | Type | Description |
---|---|---|
| string | First name |
| string | Last name |
| string | Two letters country code |
| string | Email address |
| string | Phone number |
| string | Address line 1 |
| string | Address line 2 |
| string | City of residence |
| string | Region |
| string | Postcode |
| array | |
| string | Unique identifier of the quote policy |
| string | ID of the BrightWrite experiment |
| string | ID of the experiment variant generated for the customer |
| string | ID of the customer device |
| array | A list of insured |
| string | First name |
| string | Last name |
| string | Email address |
| string | Two letters country code |
| string | Address line 1 |
| string | Address line 2 |
| string | City of residence |
| string | Region |
| string | Postcode |
| string | Phone number |
| string | Date of birth |
| string | Company name |
{
"policy_holder": {
"first_name": "Kaitlin",
"last_name": "Brown",
"country": "AU",
"email": "[email protected]",
"phone": "+1-630-477-5267",
"address1": "50827 Halvorson Way"
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838"
},
"quotes": [
{
"id": "9696f4be-0938-4e1e-9915-b8caf116b223",
"insured":
[
{
"first_name": "Kaitlin",
"last_name": "Brown",
"email": "[email protected]",
"country": "AU",
"address1": "50827 Halvorson Way",
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838",
"phone": "+1-630-477-5267",
"birth_date": "1953-06-23",
"company": "Gibson LLC"
}
]
}
]
}
{
"policy_holder": {
"first_name": "Jane",
"last_name": "Doe",
"country": "AU",
"email": "[email protected]",
"phone": "+1-630-477-5267",
"address1": "50827 Halvorson Way"
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838"
},
"quotes": [
{
"id": "9696f4be-0938-4e1e-9915-b8caf116b223",
"insured":
[
{
"first_name": "Kaitlin",
"last_name": "Brown",
"email": "[email protected]",
"country": "AU",
"address1": "50827 Halvorson Way",
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838",
"phone": "+1-630-477-5267",
"birth_date": "1953-06-23",
"company": "Gibson LLC"
}
]
},
{
"id": "d0d936a3-7ab0-4877-bd7f-d261d00d1ebf",
"insured":
[
{
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"country": "AU",
"address1": "50827 Halvorson Way",
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838",
"phone": "+1-630-477-5267",
"birth_date": "1953-06-23",
"company": "Gibson LLC"
}
]
}
]
}
Response
{
"data": {
"provider_reference": "C9374-R2G3K-INS",
"language": "en",
"provider_customer_id": null,
"status": "Active",
"currency": "EUR",
"price": 52.88,
"security_token": "09FM9-WDaCw-QUJBb-1tlqM",
"created_at": "2024-07-21T09:54:52.000000Z",
"updated_at": "2024-07-21T09:54:52.000000Z",
"is_instant_booking": false,
"policies": [
{
"status": "Active",
"policy_start_date": "2024-07-21T00:00:00.000000Z",
"policy_end_date": "2024-08-30T00:00:00.000000Z",
"price": 52.88,
"tax": 2.88,
"commission": 21.25,
"cover_amount": null,
"policy_type": "comprehensive_travel_insurance",
"policy_code": "CN02AME",
"policy_version": "44349651-f6c2-469e-ae38-3ef2d5728515",
"policy_content": {
"title": "Comprehensive Travel Insurance",
"header": null,
"description": "-",
"optout_msg": "",
"inclusions": [],
"exclusions": [],
"disclaimer": "This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the Policy Terms and Insurance Product Information Document. You agree to receive the policy documentation electronically.Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.",
"disclaimer_html": "<p data-block-key=\"3amlk\">This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the <a href=\"https://www.xcover.com/en/pds/C9374-R2G3K-INS?policy_type=comprehensive_travel_insurance_v2\" rel=\"noopener noreferrer\" target=\"_blank\">Policy Terms</a> and <a href=\"https://static.xcover.com/media/pds/cea422a7-e2db-4dca-9f42-be7362405e25/IPID_Comprehensive_EN.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">Insurance Product Information Document</a>. You agree to receive the policy documentation electronically.</p><p data-block-key=\"37q1a\">Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.</p><p data-block-key=\"bvj7t\">Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.</p>",
"payment_disclaimer": "",
"in_path_disclaimer": "",
"extra_content": []
},
"claim_selector_id": null,
"pds_url": "https://www.xcover.com/en/pds/C9374-R2G3K-INS?policy_type=comprehensive_travel_insurance_v2",
"extra_fields": {
"bundled_retail_premium": "52.87999999999999920993754010"
},
"confirmed_at": "2024-07-21T09:54:52.000000Z",
"cancelled_at": null,
"created_at": "2024-07-21T09:54:52.000000Z",
"updated_at": "2024-07-21T09:54:52.000000Z",
"id": "40221b50-9da8-4806-80b6-0e96d87990fb"
}
],
"policyholder": {
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+1-630-477-5267",
"country": "FR",
"date_of_birth": null,
"address1": "50827 Halvorson Way",
"address2": null,
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838",
"created_at": "2024-07-21T09:54:52.000000Z",
"updated_at": "2024-07-21T09:54:52.000000Z",
"id": "daad905a-5e21-46a3-972a-9e3e93a730a5"
},
"id": "d84a913c-331f-4983-9474-1257a0d966bb",
"partner": {
"uuid": "4f607e20-bfa6-4d46-8f6b-462bc970be9d",
"name": "Secret Escapes"
},
"quote": {
"uuid": "2abf21c2-831b-490d-bed2-7338f0096dc5"
},
"cancellations": []
}
}
{
"data": {
"provider_reference": "486TU-7JQE7-INS",
"language": "en",
"provider_customer_id": null,
"status": "Active",
"currency": "EUR",
"price": 70.29,
"security_token": "EFhgH-F5Uw9-Szlty-oGvvr",
"created_at": "2024-07-21T09:55:49.000000Z",
"updated_at": "2024-07-21T09:55:49.000000Z",
"is_instant_booking": false,
"policies": [
{
"status": "Active",
"policy_start_date": "2024-07-21T00:00:00.000000Z",
"policy_end_date": "2024-08-30T00:00:00.000000Z",
"price": 17.41,
"tax": 0.89,
"commission": 5.69,
"cover_amount": null,
"policy_type": "accommodation_cancelation",
"policy_code": "AC03HO3G",
"policy_version": "f599e6ac-015e-430d-ba48-59d6a99bb8c9",
"policy_content": {
"title": "Booking Refund Protection",
"header": null,
"description": "-",
"optout_msg": "",
"inclusions": [],
"exclusions": [],
"disclaimer": "This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the Policy Terms and Insurance Product Information Document. You agree to receive the policy documentation electronically.#Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.",
"disclaimer_html": "<p data-block-key=\"3amlk\">This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the <a href=\"https://www.xcover.com/en/pds/486TU-7JQE7-INS?policy_type=accommodation_cancelation_v2\" rel=\"noopener noreferrer\" target=\"_blank\">Policy Terms</a> and <a href=\"https://static.xcover.com/media/pds/62adf61d-0783-453b-a347-e77e39dcc8b0/IPID_EU_EN_.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">Insurance Product Information Document</a>. You agree to receive the policy documentation electronically.#</p><p data-block-key=\"37q1a\">Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.</p><p data-block-key=\"bvj7t\">Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.</p>",
"payment_disclaimer": "",
"in_path_disclaimer": "",
"extra_content": []
},
"claim_selector_id": null,
"pds_url": "https://www.xcover.com/en/pds/486TU-7JQE7-INS?policy_type=accommodation_cancelation_v2",
"extra_fields": {
"seller_entity": "Cover Genius Europe B.V.",
"age_brackets": "infant 0-2, child 2-12, adult 12+"
},
"confirmed_at": "2024-07-21T09:55:49.000000Z",
"cancelled_at": null,
"created_at": "2024-07-21T09:55:49.000000Z",
"updated_at": "2024-07-21T09:55:49.000000Z",
"id": "fd96ac8f-2b86-4095-8e42-887439c0c61f"
},
{
"status": "Active",
"policy_start_date": "2024-07-21T00:00:00.000000Z",
"policy_end_date": "2024-08-30T00:00:00.000000Z",
"price": 52.88,
"tax": 2.88,
"commission": 21.25,
"cover_amount": null,
"policy_type": "comprehensive_travel_insurance",
"policy_code": "CN02AME",
"policy_version": "44349651-f6c2-469e-ae38-3ef2d5728515",
"policy_content": {
"title": "Comprehensive Travel Insurance",
"header": null,
"description": "-",
"optout_msg": "",
"inclusions": [],
"exclusions": [],
"disclaimer": "This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the Policy Terms and Insurance Product Information Document. You agree to receive the policy documentation electronically.Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.",
"disclaimer_html": "<p data-block-key=\"3amlk\">This policy is provided by Cover Genius Europe B.V. and underwritten by Cowen Insurance Company Ltd. By adding protection you confirm you have read and agree to the <a href=\"https://www.xcover.com/en/pds/486TU-7JQE7-INS?policy_type=comprehensive_travel_insurance_v2\" rel=\"noopener noreferrer\" target=\"_blank\">Policy Terms</a> and <a href=\"https://static.xcover.com/media/pds/cea422a7-e2db-4dca-9f42-be7362405e25/IPID_Comprehensive_EN.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">Insurance Product Information Document</a>. You agree to receive the policy documentation electronically.</p><p data-block-key=\"37q1a\">Cover Genius Europe B.V. is registered at the Dutch Chamber of Commerce under number 73237426 and licensed as an insurance intermediary and authorised agent at the Dutch Authority for the Financial Markets under license number 12046177. XCover.com is a trading name of Cover Genius Europe B.V.</p><p data-block-key=\"bvj7t\">Cowen Insurance Company Ltd, bearing Malta Company Registration Number C55905, is a Company authorised by the Malta Financial Services Authority (MFSA) to carry out general Insurance business under the insurance business act, 1998, of the laws of Malta. HomeToGo GmbH is an Ancillary Insurance Intermediary of Cover Genius Europe B.V.</p>",
"payment_disclaimer": "",
"in_path_disclaimer": "",
"extra_content": []
},
"claim_selector_id": null,
"pds_url": "https://www.xcover.com/en/pds/486TU-7JQE7-INS?policy_type=comprehensive_travel_insurance_v2",
"extra_fields": {
"bundled_retail_premium": "52.87999999999999920993754010"
},
"confirmed_at": "2024-07-21T09:55:49.000000Z",
"cancelled_at": null,
"created_at": "2024-07-21T09:55:49.000000Z",
"updated_at": "2024-07-21T09:55:49.000000Z",
"id": "d0d936a3-7ab0-4877-bd7f-d261d00d1ebf"
}
],
"policyholder": {
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"phone": "+1-630-477-5267",
"country": "FR",
"date_of_birth": null,
"address1": "50827 Halvorson Way",
"address2": null,
"city": "Sydney",
"region": "NSW",
"postcode": "68988-3838",
"created_at": "2024-07-21T09:55:49.000000Z",
"updated_at": "2024-07-21T09:55:49.000000Z",
"id": "9296320d-c4a8-40a7-b19c-341de041238c"
},
"id": "4263e9b5-ab21-4eb7-8728-5b65217a33b1",
"partner": {
"uuid": "4f607e20-bfa6-4d46-8f6b-462bc970be9d",
"name": "Secret Escapes"
},
"quote": {
"uuid": "9ccea306-cf04-4e9c-af73-b59c59c101c1"
},
"cancellations": []
}
}
{
"message": "Unauthenticated."
}
{
"message": "The request is invalid."
}
Last updated