文档中心 > API类目 > 酒店商品API

taobao.xhotel.item.selection.seller.stat.summary (商家数据-选品整体概况)

商家数据-选品整体概况

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
date String 可选 20200203 日期 默认为昨天
hid String 可选 214135325 hid 默认为all
vendor String 可选 vendor vendor 默认为all
supplier String 可选 supplier supplier 默认为all
out_hid String 可选 Hotel_code 外部酒店编码

响应参数

名称 类型 示例值 描述
result HsfResult 复杂对象 返回参数
  • └ code
  • String
  • 错误码
  • 错误码
  • └ success
  • Boolean
  • false
  • 是否成功
  • module
  • SellerStatSummaryResult
  • 复杂对象
  • 返回结果
  • └ exposed_percent
  • String
  • 0.34
  • 曝光率
  • └ supplier_param
  • String
  • taobao
  • supplier参数
  • └ shid_total_amount
  • String
  • 14455
  • 标准酒店维度曝光总数
  • └ hid_param
  • String
  • 2566778544
  • hid参数
  • └ min_rate_score
  • String
  • 56.44
  • rate最低分
  • └ unsale_reseason_info
  • String
  • {"unsaleReasonInfoElementList":[{"type":"price_status","amount":25562},{"type":" room_status","amount":132706},{"type":" room_type_status","amount":20},{"type":" rate_status","amount":58},{"type":" rp_status","amount":10193},{"type":" hotel_status","amount":39565}]}
  • 不可售情况
  • └ max_rate_score
  • String
  • 98.222
  • rate最高分
  • └ selection_message_info
  • String
  • {"selectionMessageInfoElementList":[{"type":"钉钉商旅(O,G)、B2G、高德 渠道","retained":1,"amount":2268},{"type":" 小时房","retained":1,"amount":26849},{"type":" 积分加钱购","retained":1,"amount":849},{"type":" 在线预约","retained":1,"amount":28521},{"type":" 末位淘汰算法处理-其他房型","retained":0,"amount":3299},{"type":" 不可售","retained":0,"amount":208134},{"type":" 末位淘汰算法处理","retained":1,"amount":427388},{"type":" 最低价保留","retained":1,"amount":178681},{"type":" 无效数据","retained":0,"amount":1459}]}
  • 选品情况
  • └ avg_rate_score
  • String
  • 111
  • rate平均分
  • └ date_param
  • String
  • 20200204
  • 日期
  • └ total_amount
  • String
  • 55555
  • 商品总数
  • └ vendor_param
  • String
  • taobao
  • vendor参数
  • └ exposed_amount
  • String
  • 55555
  • 曝光总数
  • └ selection_message_info_json
  • String
  • {"selectionMessageInfoElementList":[{"type":"钉钉商旅(O,G)、B2G、高德 渠道","retained":1,"amount":2268},{"type":" 小时房","retained":1,"amount":26849},{"type":" 积分加钱购","retained":1,"amount":849},{"type":" 在线预约","retained":1,"amount":28521},{"type":" 末位淘汰算法处理-其他房型","retained":0,"amount":3299},{"type":" 不可售","retained":0,"amount":208134},{"type":" 末位淘汰算法处理","retained":1,"amount":427388},{"type":" 最低价保留","retained":1,"amount":178681},{"type":" 无效数据","retained":0,"amount":1459}]}
  • 选品情况
  • └ unsale_reason_info_json
  • String
  • {"unsaleReasonInfoElementList":[{"type":"price_status","amount":25562},{"type":" room_status","amount":132706},{"type":" room_type_status","amount":20},{"type":" rate_status","amount":58},{"type":" rp_status","amount":10193},{"type":" hotel_status","amount":39565}]}
  • 不可售情况
  • └ seller_id_param
  • String
  • 22456544
  • sellerId参数
  • └ can_sale_amount
  • String
  • 55555
  • 可售商品数量
  • └ selected_amount
  • String
  • 55555
  • 选品保留商品数量
  • └ message
  • String
  • 接口信息
  • 接口信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
XhotelItemSelectionSellerStatSummaryRequest req = new XhotelItemSelectionSellerStatSummaryRequest();
req.setDate("20200203");
req.setHid("214135325");
req.setVendor("vendor");
req.setSupplier("supplier");
req.setOutHid("Hotel_code");
XhotelItemSelectionSellerStatSummaryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<xhotel_item_selection_seller_stat_summary_response>
    <result>
        <code>错误码</code>
        <success>false</success>
        <module>
            <exposed_percent>0.34</exposed_percent>
            <supplier_param>taobao</supplier_param>
            <shid_total_amount>14455</shid_total_amount>
            <hid_param>2566778544</hid_param>
            <min_rate_score>56.44</min_rate_score>
            <unsale_reseason_info>{&quot;unsaleReasonInfoElementList&quot;:[{&quot;type&quot;:&quot;price_status&quot;,&quot;amount&quot;:25562},{&quot;type&quot;:&quot;  room_status&quot;,&quot;amount&quot;:132706},{&quot;type&quot;:&quot;  room_type_status&quot;,&quot;amount&quot;:20},{&quot;type&quot;:&quot;  rate_status&quot;,&quot;amount&quot;:58},{&quot;type&quot;:&quot;  rp_status&quot;,&quot;amount&quot;:10193},{&quot;type&quot;:&quot;  hotel_status&quot;,&quot;amount&quot;:39565}]}</unsale_reseason_info>
            <max_rate_score>98.222</max_rate_score>
            <selection_message_info>{&quot;selectionMessageInfoElementList&quot;:[{&quot;type&quot;:&quot;钉钉商旅(O,G)、B2G、高德 渠道&quot;,&quot;retained&quot;:1,&quot;amount&quot;:2268},{&quot;type&quot;:&quot;  小时房&quot;,&quot;retained&quot;:1,&quot;amount&quot;:26849},{&quot;type&quot;:&quot;  积分加钱购&quot;,&quot;retained&quot;:1,&quot;amount&quot;:849},{&quot;type&quot;:&quot;  在线预约&quot;,&quot;retained&quot;:1,&quot;amount&quot;:28521},{&quot;type&quot;:&quot;  末位淘汰算法处理-其他房型&quot;,&quot;retained&quot;:0,&quot;amount&quot;:3299},{&quot;type&quot;:&quot;  不可售&quot;,&quot;retained&quot;:0,&quot;amount&quot;:208134},{&quot;type&quot;:&quot;  末位淘汰算法处理&quot;,&quot;retained&quot;:1,&quot;amount&quot;:427388},{&quot;type&quot;:&quot;  最低价保留&quot;,&quot;retained&quot;:1,&quot;amount&quot;:178681},{&quot;type&quot;:&quot;  无效数据&quot;,&quot;retained&quot;:0,&quot;amount&quot;:1459}]}</selection_message_info>
            <avg_rate_score>111</avg_rate_score>
            <date_param>20200204</date_param>
            <total_amount>55555</total_amount>
            <vendor_param>taobao</vendor_param>
            <exposed_amount>55555</exposed_amount>
            <selection_message_info_json>{&quot;selectionMessageInfoElementList&quot;:[{&quot;type&quot;:&quot;钉钉商旅(O,G)、B2G、高德 渠道&quot;,&quot;retained&quot;:1,&quot;amount&quot;:2268},{&quot;type&quot;:&quot;  小时房&quot;,&quot;retained&quot;:1,&quot;amount&quot;:26849},{&quot;type&quot;:&quot;  积分加钱购&quot;,&quot;retained&quot;:1,&quot;amount&quot;:849},{&quot;type&quot;:&quot;  在线预约&quot;,&quot;retained&quot;:1,&quot;amount&quot;:28521},{&quot;type&quot;:&quot;  末位淘汰算法处理-其他房型&quot;,&quot;retained&quot;:0,&quot;amount&quot;:3299},{&quot;type&quot;:&quot;  不可售&quot;,&quot;retained&quot;:0,&quot;amount&quot;:208134},{&quot;type&quot;:&quot;  末位淘汰算法处理&quot;,&quot;retained&quot;:1,&quot;amount&quot;:427388},{&quot;type&quot;:&quot;  最低价保留&quot;,&quot;retained&quot;:1,&quot;amount&quot;:178681},{&quot;type&quot;:&quot;  无效数据&quot;,&quot;retained&quot;:0,&quot;amount&quot;:1459}]}</selection_message_info_json>
            <unsale_reason_info_json>{&quot;unsaleReasonInfoElementList&quot;:[{&quot;type&quot;:&quot;price_status&quot;,&quot;amount&quot;:25562},{&quot;type&quot;:&quot;  room_status&quot;,&quot;amount&quot;:132706},{&quot;type&quot;:&quot;  room_type_status&quot;,&quot;amount&quot;:20},{&quot;type&quot;:&quot;  rate_status&quot;,&quot;amount&quot;:58},{&quot;type&quot;:&quot;  rp_status&quot;,&quot;amount&quot;:10193},{&quot;type&quot;:&quot;  hotel_status&quot;,&quot;amount&quot;:39565}]}</unsale_reason_info_json>
            <seller_id_param>22456544</seller_id_param>
            <can_sale_amount>55555</can_sale_amount>
            <selected_amount>55555</selected_amount>
        </module>
        <message>接口信息</message>
    </result>
</xhotel_item_selection_seller_stat_summary_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部