Cancel
Cancel hotel reservation
Request Method#
POST
uri: /reservation/cancel
Content-Type: application/json
Request parameter description#
RequestHeader#
Common Request Header [reference]
RequestBody#
| Parameter | Type | Required | Maximum length | Example | Description |
|---|---|---|---|---|---|
| resId | String | Y | 64 | Huazhu reservation number |
Response parameter description#
Common Response Parameters [reference]
content#
| Parameter | Type | Required | Maximum length | Example | Description |
|---|---|---|---|---|---|
| penaltyAmount | BigDecimal | N | - | Cancellation penalty, Reference field for financial reconciliation | |
| penaltyCurrencyCode | String | N | 8 | Currency for cancellation penalty |
ResponseCode#
| Exception Code | Exception Type | Description |
|---|---|---|
| 1000 | Success | |
| 5401 | Reservation cannot be canceled | Order cannot be canceled |
| 5402 | Reservation already canceled | Reservation canceled |
| 5403 | Reservation not found | Order not found |
| 5404 | Reservation not belong to requester | Order does not match current channel |
| 5405 | Reservation cannot be canceled-service has started | Cancellation failed , order has been checked in or out. |
| Others | Global Exception Code | Global Exception [Reference] |
Message example#
Case1: Normal Cancel#
Request Example#
...json { "resId":"R200031####135470001" } ...