Cancel
Cancel hotel reservation
#
Request MethodPOST
uri: /reservation/cancel
Content-Type: application/json
#
Request parameter description#
RequestHeaderCommon Request Header [reference]
#
RequestBodyParameter | Type | Required | Maximum length | Example | Description |
---|---|---|---|---|---|
resId | String | Y | 64 | Huazhu reservation number |
#
Response parameter descriptionCommon Response Parameters [reference]
#
contentParameter | Type | Required | Maximum length | Example | Description |
---|---|---|---|---|---|
penaltyAmount | BigDecimal | N | - | Cancellation penalty, Reference field for financial reconciliation | |
penaltyCurrencyCode | String | N | 8 | Currency for cancellation penalty |
#
ResponseCodeException 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" } ...