获取子酒店可用属性值信息

(创建售卖房型,更新售卖房型ratecode使用)

一、接口名称:

getHotelAvailableProperties

调用频次:10次/分钟,数据量少,一般不变,可自行存储

测试环境 http://m.fat.ctripqa.com/restapi/soa2/13353/getHotelAvailableProperties

生产环境 http://m.ctrip.com/restapi/soa2/13353/getHotelAvailableProperties

二、输入参数:

父节点 名称 编码 类型 必填 描述
请求者信息 requestor 是
requestor 版本号 invoker string 是
requestor 操作人名称 operatorName string 是
requestor 操作IP opClientIP string 是
requestor 用户ID userId int 是
requestor 语言 languageType string 是
供应商ID supplierId int 是
子酒店ID hotelId int 是

示例:

{
    "requestor":{
        "invoker":"String",
        "operatorName":"String",
        "opClientIP":"String",
        "userId":0,
        "languageType":"String"
    },
    "supplierId":16551,
    "hotelId":11603020
}

三、输出参数:

父节点 名称 编码 类型 描述
状态信息 responseStatus 系统校验信息
状态信息 resultStatus 业务校验信息
resultStatus 错误码 resultCode int 除了0是正确,别的都是错误
resultStatus 错误信息 resultMsg string 错误信息
使用人群rateCode applicabilityRatePropertyValueList 此酒店如果要限制适用人群,则只能使用此节点下的适用人群ratecode。
如下接口可能用到:
5.8 创建售卖房型
5.9更新售卖房型RateCode
applicabilityRatePropertyValueList 属性值 rateCode int
applicabilityRatePropertyValueList 属性描述 rateCodeyLabel string

示例:

{
    "ResponseStatus": {
        "Timestamp": "/Date(1560741804205+0800)/",
        "Ack": "Success",
        "Errors": [],
        "Version": "v1"
    },
    "resultStatus": {
        "resultCode": 0,
        "resultMsg": "success"
    },
    "applicabilityRatePropertyValueList": [{
        "rateCode": 899272,
        "rateCodeyLabel": "男生入住"
    }, {
        "rateCode": 899274,
        "rateCodeyLabel": "女生入住"
    }, {
        "rateCode": 899322,
        "rateCodeyLabel": "混合入住"
    }]
}

results matching ""

    No results matching ""