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#

ParameterTypeRequiredMaximum lengthExampleDescription
resIdStringY64Huazhu reservation number
paymentTypeStringN16Payment Method. Enumerated value:
Enumeration Dictionary
hotelCommentStringN512Guest paid, no invoicing requiredReservation note, invisible for guest
contactPersonGuestN-Contact Information

Guest#

ParameterTypeRequiredMaximum lengthExampleDescription
firstNameStringN163Name
lastNameStringY16ZhangLast name (whole name can be delivered using this field only when last name and first name can't be split correctly)
emailStringN32001@test.com001@test.com mailbox
phoneStringN3218917569235Phone number
countryAccessCodeStringN886Country Access Code

Response parameter description#

Common Response Parameters [reference]

ResponseCode#

Exception CodeException TypeDescription
1000Success
5501Repeated requestRepeat Request
5502Can not modifyThis 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
OthersGlobal Exception CodeGlobal Exception [Reference]

Message example#

Case1: Normal Modification#

Request Example#

{
"resId": "R12**567**32332 ",
"paymentType": "OPN ",
"contactPerson ": {
"email": "***@huazhu.com ",
"firstName ": "***",
"lastName ": "***",
"phone": "139****2343 ",
"countryAccessCode": "86"
}
}

Example of successful response#

{
"code": 1000
}

Response Failure Example#

{
"code": 5502,
"message": "Can not modify"
}