新建修改类型差异单

OTA侧新建差异单申请,差异单类型为"修改"。


请求方式#

POST

uri: /disresv/init/modify

Content-Type: application/json


请求参数说明#

RequestHeader#

公共请求头[引用]

RequestBody#

参数类型是否必填最大长度示例描述
hotelIdStringY3212**567酒店id
resIdStringY64R200031####135470001预订成功华住产生的订单ID
applyReasonStringY1024客人要提前离店差异申请原因
adjustedCheckOutDateDateY-2021-09-14实际离店日期 格式:yyyy-MM-dd
dailyDiscrepancyDiscrepancyInfoDTOY--差异信息
notifyUrlStringN128https://www.example.com回调地址,有需要时填写,不填默认使用OTA注册时配置的默认地址
notifyTypeStringN16回调类型(GET/POST),默认POST类型POST

DiscrepancyInfoDTO#

参数类型是否必填最大长度示例描述
totalOriginalRoomNightsIntegerY-3总原间夜数
totalAdjustedRoomNightsIntegerN-1总调整后间夜数
totalOriginalRoomPriceBigDecimalY-252.00原房间总价
totalAdjustedRoomPriceBigDecimalN-90.00调整后房间总价(若渠道侧传入调整后房间总价,CRS优先读取传入价格,若渠道侧不传入,CRS将自行进行计算)
totalAdjustedAmountBigDecimalN-6.00总调整后差价(若渠道侧传入总调整后差价,CRS优先读取传入价格,若渠道侧不传入,CRS将自行进行计算)
dailyDiscrepancyListList<DailyDiscrepancy>Y--每日差异信息

DailyDiscrepancy#

参数类型是否必填最大长度示例描述
bizDateDateY-2021-09-13日期 格式:yyyy-MM-dd
marketPriceBigDecimalY-80.00门市价
originalRoomCountIntegerY-1原房间数
originalRoomPriceBigDecimalY-84.00原房间单价
originalDailyAmountBigDecimalY-84.00原当天房费总计(房间数* 原房间单价)
adjustedRoomCountIntegerN-1调整后房间数
adjustedRoomPriceBigDecimalN-90.00调整后房价(若渠道侧传入调整后房价,CRS优先读取传入价格,若渠道侧不传入,CRS将自行进行计算)
adjustedDailyAmountBigDecimalN-90.00调整后房费总计(房间数* 调整后房间单价)(若渠道侧传入调整后房费总计,CRS优先读取传入价格,若渠道侧不传入,CRS将自行进行计算)
additionalDailyAmountBigDecimalN-6.00调整后差价 (房间数* 调整后房间单价)(若渠道侧传入调整后差价,CRS优先读取传入价格,若渠道侧不传入,CRS将自行进行计算)

响应参数说明#

公共响应参数[引用]

响应码-code[引用]

content#

参数类型是否必填最大长度示例描述
hotelIdStringY3212**567酒店id
discrepancyNoStringY32e26a0####7cc41999349bf3ad366ae32差异单单号
resIdStringY64R200031####135470001华住订单号
distributorResIdStringY64132####2900渠道订单号

响应码#

异常码异常类型说明
1000Success
6301Reservation not found订单不存在
6302Invalid reservation status订单状态异常
6303Invalid discrepant reservation status差异单状态异常
6304Discrepant reservation not support渠道不支持差异单
6305Penalty not support渠道不支持违约金
6306Invalid adjusteded checkout date调整日期不符合规则
其他全局异常码全局异常[引用]

报文示例#

请求示例#

{
"hotelId": "12**567",
"resId": "R200031####135470001",
"applyReason": "apply reason.",
"adjustedCheckOutDate": "2021-09-14",
"dailyDiscrepancy": {
"dailyDiscrepancyList": [
{
"additionalDailyAmount": 6.00,
"adjustedDailyAmount": 90.00,
"adjustedRoomCount": 1,
"adjustedRoomPrice": 90.00,
"bizDate": "2021-09-13",
"marketPrice": 0.00,
"originalDailyAmount": 84.00,
"originalRoomCount": 1,
"originalRoomPrice": 84.00
},
{
"additionalDailyAmount": 0,
"adjustedDailyAmount": 0,
"adjustedRoomCount": 0,
"adjustedRoomPrice": 0,
"bizDate": "2021-09-14",
"marketPrice": 0.00,
"originalDailyAmount": 84.00,
"originalRoomCount": 1,
"originalRoomPrice": 84.00
},
{
"additionalDailyAmount": 0,
"adjustedDailyAmount": 0,
"adjustedRoomCount": 0,
"adjustedRoomPrice": 0,
"bizDate": "2021-09-15",
"marketPrice": 0.00,
"originalDailyAmount": 84.00,
"originalRoomCount": 1,
"originalRoomPrice": 84.00
}
],
"totalAdjustedAmount": 6.00,
"totalAdjustedRoomNights": 1,
"totalAdjustedRoomPrice": 84.00,
"totalOriginalRoomNights": 3,
"totalOriginalRoomPrice": 252.00
},
"notifyUrl": "https://www.example.com",
"notifyType": "POST"
}

响应示例#

{
"code": 1000,
"content": {
"discrepancyNo": "e26a0####7cc41999349bf3ad366ae32",
"hotelId": "12**567",
"resId": "R200031####135470001",
"distributorResId": "132####2900"
}
}