---
title: 'Booking cancellation'
url: 'https://documentation.netstorming.net/api-reference/hotels/bookings/booking-cancellation'
markdown: 'https://documentation.netstorming.net/api-reference/hotels/bookings/booking-cancellation.md'
date: '2023-05-26'
description: 'In order to cancel a booking the client system has to send the booking references in a query with type attribute set to cancel. The cancellation via API is only possibile until the day before the checkin. If you need to cancel a booking in the same day of the checkin you have to contact the office.…'
taxonomy:
  category:
    - docs
---

# Booking cancellation

[](#)  [ API reference ](https://documentation.netstorming.net/api-reference)     [ Hotels ](https://documentation.netstorming.net/api-reference/hotels)     [ Bookings ](https://documentation.netstorming.net/api-reference/hotels/bookings)      Booking cancellation    

In order to cancel a booking the client system has to send the booking references in a query with **type** attribute set to **cancel**.

The cancellation via API is only possibile **until the day before the checkin**.
If you need to cancel a booking in the same day of the checkin you have to contact the office.

##### Query

```
<?xml version="1.0" encoding="UTF-8"?>
<envelope>
    <header>
        <actor>test</actor>
        <user>test</user>
        <password>test</password>
        <version>1.6.1</version>
        <timestamp>20030423170100</timestamp>
    </header>
    <query type="cancel" product="hotel">
        <reference code="BOOK2005 000001"/>
        <booking name="2014-1241"/>
    </query>
</envelope>

```

##### Response

You can ask for a cancellation sending one of the two parameters returned in the track response: **reference code** or **booking name**. The response is pretty close to the feedback received during the booking stage: so it does not confirm the cancellation but it only acknowledge the reception of the cancellation request. A tracking message will confirm the cancellation in a later stage.

 [ ](https://documentation.netstorming.net/api-reference/hotels/bookings/booking-details) [](https://documentation.netstorming.net/api-reference/hotels/bookings/contract-type-show-form)

---

## Navigation

- Parent: [Bookings](https://documentation.netstorming.net/api-reference/hotels/bookings.md)
- Previous: [Booking details](https://documentation.netstorming.net/api-reference/hotels/bookings/booking-details.md)
- Next: [Contract types](https://documentation.netstorming.net/api-reference/hotels/bookings/contract-type-show-form.md)
