修改类型差异单预审

修改类型的差异单,需在提交申请之前调用此接口进行预审,接口将系统计算后的每日价格返回。分销商后续提交修改类型的差异单,每日价格需由此接口返回的价格为准。


请求方式#

POST

uri: /disresv/precheck

Content-Type: application/json


请求参数说明#

RequestHeader#

公共请求头[引用]

RequestBody#

参数类型是否必填最大长度示例描述
hotelIdStringY3212**567酒店id
resIdStringY64R200031####135470001预订成功华住产生的订单ID
adjustedCheckOutDateDateY-2021-09-14日期 格式:yyyy-MM-dd

响应参数说明#

公共响应参数[引用]

响应码-code[引用]

content#

参数类型是否必填最大长度示例描述
hotelIdStringY3212**567酒店id
resIdStringY64R200031####135470001预订成功华住产生的订单ID
checkInDateDateY-2021-09-13日期 格式:yyyy-MM-dd
adjustedCheckOutDateDateY-2021-09-14日期 格式:yyyy-MM-dd
originalCheckOutDateDateY-2021-09-15日期 格式:yyyy-MM-dd
discrepancyInfoDiscrepancyInfoDTOY--差异信息

DiscrepancyInfoDTO#

参数类型是否必填最大长度示例描述
totalOriginalRoomNightsIntegerY-3总原间夜数
totalAdjustedRoomNightsIntegerY-1总调整后间夜数
totalOriginalRoomPriceBigDecimalY-252.00原房间总价
totalAdjustedRoomPriceBigDecimalY-90.00调整后房间总价
totalAdjustedAmountBigDecimalY-6.00总调整后差价
dailyDiscrepancyListList<DailyDiscrepancy>Y--每日差异信息

DailyDiscrepancy#

参数类型是否必填最大长度示例描述
bizDateDateY-2021-10-11日期 格式:yyyy-MM-dd
marketPriceBigDecimalY-80.00门市价
originalRoomCountIntegerY-1原房间数
originalRoomPriceBigDecimalY-84.00原房间单价
originalDailyAmountBigDecimalY-84.00原当天房费总计(房间数* 原房间单价)
adjustedRoomCountIntegerY-1调整后房间数
adjustedRoomPriceBigDecimalY-90.00调整后房价
adjustedDailyAmountBigDecimalY-90.00调整后房费总计(房间数* 调整后房间单价)
additionalDailyAmountBigDecimalY-6.00调整后差价

响应码#

异常码异常类型说明
1000Success
6101Reservation not found订单不存在
6102Invalid reservation status订单状态异常
6103Invalid discrepant reservation status差异单状态异常
6104Discrepant reservation not support渠道不支持差异单
6105Penalty not support渠道不支持违约金
6106Invalid adjusteded checkout date预审日期不符合规则
其他全局异常码全局异常[引用]

报文示例#

请求示例#

{
"hotelId": "12**567",
"resId": "R200031####135470001",
"adjustedCheckOutDate": "2021-09-14"
}

响应示例#

{
"code": 1000,
"content": {
"adjustedCheckOutDate": "2021-09-14",
"checkInDate": "2021-09-13",
"hotelId": "12**567",
"resId": "R200031####135470001",
"originalCheckOutDate": "2021-09-15",
"discrepancyInfo": {
"dailyDiscrepancyList": [
{
"additionalDailyAmount": 6.00,
"adjustedDailyAmount": 90.00,
"adjustedRoomCount": 1,
"adjustedRoomPrice": 90.00,
"bizDate": "2021-09-13",
"marketPrice": 80.00,
"originalDailyAmount": 84.00,
"originalRoomCount": 1,
"originalRoomPrice": 84.00
},
{
"additionalDailyAmount": 0,
"adjustedDailyAmount": 0,
"adjustedRoomCount": 0,
"adjustedRoomPrice": 0,
"bizDate": "2021-09-14",
"marketPrice": 80.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": 90.00,
"totalOriginalRoomNights": 3,
"totalOriginalRoomPrice": 252.00
}
}
}