获取房量接口

一、接口名称:

getRoomInventoryDirect

二、输入参数:

父节点 名称 编码 类型 必填 描述
请求信息 requestor RequestorType y
渠道 channel String y
酒店id hotelId int y
房型id roomIds List y 一次不能超过30个房型
起始日期 startDate Calendar y
结束日期 endDate Calendar y

示例:

{
    "requestor":{
        "invoker":"MIPSite",
        "operatorName":"HW测试供应商2274",
        "opClientIP":"172.18.68.20",
        "userId":3555
    },
    "hotelId":4870027,
    "roomIds":[96814798,96815039],
    "channel":"ctrip",
    "startDate":"/Date(1517241600000+0800)/",
    "endDate":"/Date(1517760000000+0800)/"
}

三、输出参数:

{
    "resultStatus": {
    "resultCode": 0,
    "resultMsg": null
  },
  "roomInventoryList": [
    {
      "roomId": 96814798,
      "effectDate": "/Date(1517241600000+0800)/",
      "roomQuantity": 0,    //保留房量
      "realQuantity": 0,    //保留房已使用量
      "otherQuantity": 0,    //非保留房量
      "otherRealQuantity": 0, //非保留房已使用量
      "autoCloseRoom": false   //库存售完是否自动关房
    },
   // ……
    {
      "roomId": 96815039,
      "effectDate": "/Date(1517328000000+0800)/",
      "roomQuantity": 0,
      "realQuantity": 0,
      "otherQuantity": 0,
      "otherRealQuantity": 0,
      "autoCloseRoom": false
    }
  ]
}

results matching ""

    No results matching ""