> For the complete documentation index, see [llms.txt](https://developer.gotadi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.gotadi.com/vietnamese/doi-tac-b2b2c/phuong-thuc-api/hotel/api/api-booking-cancel.md).

# API Booking Cancel

Endpoint: `bookings/cancel`

Huỷ booking. `cancelPenaltyAmount` lấy từ `cancel-check` ngay trước đó.

**Request**

```json
{ "bookingNumber": "HTL2611150001", "cancelPenaltyAmount": 0 }
```

**Response**

```json
{
  "bookingNumber": "HTL2611150001",
  "status": "CANCELLED",
  "refundAmount": 2400000,
  "currency": "VND"
}
```

{% hint style="warning" %}
Chỉ huỷ được booking đang `CONFIRMED`; trạng thái khác (kể cả đã huỷ, chưa thanh toán) trả mã `08`. Phí đã đổi thì mã `28` — gọi lại `cancel-check` rồi huỷ lại với phí mới.
{% endhint %}
