Modify
Modify the hotel reservation, no room lock function does not need to call this interface for the time being.
Request Method#
POST
uri: /reservation/modify
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 | |
| paymentType | String | N | 16 | Payment Method. Enumerated value: Enumeration Dictionary | |
| hotelComment | String | N | 512 | Guest paid, no invoicing required | Reservation note, invisible for guest |
| contactPerson | Guest | N | - | Contact Information |
Guest#
| Parameter | Type | Required | Maximum length | Example | Description |
|---|---|---|---|---|---|
| firstName | String | N | 16 | 3 | Name |
| lastName | String | Y | 16 | Zhang | Last name (whole name can be delivered using this field only when last name and first name can't be split correctly) |
| String | N | 32 | 001@test.com | 001@test.com mailbox | |
| phone | String | N | 32 | 18917569235 | Phone number |
| countryAccessCode | String | N | 8 | 86 | Country Access Code |
Response parameter description#
Common Response Parameters [reference]
ResponseCode#
| Exception Code | Exception Type | Description |
|---|---|---|
| 1000 | Success | |
| 5501 | Repeated request | Repeat Request |
| 5502 | Can not modify | This order can not be modified, such as status error, has been check-in or check-out. For specific information, please refer to the response description: responseDes |
| Others | Global Exception Code | Global Exception [Reference] |