设置房型库存房态共享

一、接口名称:

setRoomShare
设置房型渠道间房态共享或房量共享。由于会刷新365天动态数据,易超时,注意检查,或重新设置房态,房量

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

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

二、输入参数:

父节点 名称 编码 类型 必填 描述
请求者信息 requestor
requestor 版本号 invoker string
requestor 操作人名称 operatorName string
requestor 操作IP opClientIP string
requestor 用户ID userId int
requestor 语言 languageType string
供应商ID supplierId int
子酒店ID hotelId int
售卖房型ID roomId long
ip rateCodePropertyValueIDList list 用法见示例,枚举见下方附表
价格模式 priceType int 1-卖价模式 2-底价模式
房型默认餐食份数 mealCount int 房型默认餐食份数
shareType 共享类型 string RoomInventory:库存,RoomStatus:房态,只支持单个
价格体系名称 priceSystemName string 价格体系名称
是否共享 isShare bool true为共享,false为解除共享
基准渠道 baseChannel string 共享时,以此渠道的数据为准,支持Ctrip,Qunar,ChannelA,B2B,2022-01-01后只支持Ctrip渠道,也可以不传,以前设置的仍有效

示例

{
  "requestor": {//请求方信息
    "invoker": "String",
    "operatorName": "String",
    "opClientIP": "String",
    "userId": 0,
    "languageType": "String"
  },
  "supplierId": 0, //供应商
  "hotelId": 0, //酒店
  "roomId": 0, //售卖房型ID
  "shareType": "RoomInventory",
  "isShare": false, //是否共享
  "baseChannel": "String"//共享里,库存,房态的基准渠道。Ctrip,Qunar ,ChannelA,B2B
}

三、输出参数:

{
  "ResponseStatus": {
    "Timestamp": "/Date(1517993113714+0800)/",
    "Ack": "Success",
    "Errors": null,
    "Build": null,
    "Version": "v2",
    "Extension": null
  },
  "resultStatus": {
    "resultCode": 0, //0为成功,-1为失败
    "resultMsg": "" //发生错误时,显示错误信息
  }
}

results matching ""

    No results matching ""