Accommodation cancelation

Modify booking

PATCH /api/partners/{partner_id}/bookings/{booking_id}

The Modify Booking API endpoint allows partners to update a confirmed booking. Partners can provide the updated values and insured parties for the booking attributes for booking modification. This endpoint requires a valid access token obtained from the Authentication.

Depending on the policies, booking modification may result in additional costs.

Path parameters

Headers

Body

{
    "policies": [
        {
            "id": "852d2caf-1f26-456a-8368-af7300053634",
            "update_fields": {
                "policy_start_date": "2024-08-01T06:28:41.277Z",
                "policy_end_date": "2024-09-04T06:28:41.277Z",
                "trip_start_date": "2024-08-01T06:28:41.277Z",
                "trip_end_date": "2024-09-04T06:28:41.277Z",
                "departure_country": "AU",
                "number_of_adults": 2,
                "number_of_children": 1,
                "total_tickets_price": 150,
                "insured": [
                    {
                        "first_name": "Katrina",
                        "last_name": "Brown",
                        "email": "[email protected]",
                        "country": "FR",
                        "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": "9JH8Y-8FQF8-INS",
        "language": "en",
        "provider_customer_id": null,
        "status": "Active",
        "currency": "EUR",
        "price": 11.07,
        "security_token": "Ogyow-nckDf-Dw588-S4GEG",
        "created_at": "2024-07-26T06:27:13.000000Z",
        "updated_at": "2024-07-26T06:28:41.000000Z",
        "is_instant_booking": false,
        "policies": [
            {
                "status": "Active",
                "policy_start_date": "2024-08-01T00:00:00.000000Z",
                "policy_end_date": "2024-09-04T00:00:00.000000Z",
                "price": 11.07,
                "tax": 0.57,
                "commission": 3.62,
                "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/9JH8Y-8FQF8-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/9JH8Y-8FQF8-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-26T06:27:13.000000Z",
                "cancelled_at": null,
                "created_at": "2024-07-26T06:27:13.000000Z",
                "updated_at": "2024-07-26T06:28:41.000000Z",
                "id": "852d2caf-1f26-456a-8368-af7300053634"
            }
        ],
        "policyholder": {
            "first_name": "Kaitlin",
            "last_name": "Brown",
            "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-26T06:27:13.000000Z",
            "updated_at": "2024-07-26T06:27:13.000000Z",
            "id": "e0d3706f-7270-49ea-9df3-05fdc6409765"
        },
        "id": "5d2dffa7-bbb8-4aea-8c91-911d75fd3880",
        "partner": {
            "uuid": "4f607e20-bfa6-4d46-8f6b-462bc970be9d",
            "name": "Secret Escapes"
        },
        "quote": {
            "uuid": "23b8b73c-0d95-4d6f-8cc3-2aa785671a7c"
        },
        "cancellations": []
    }
}

Last updated