文档中心 > API类目 > 菜鸟末端商业

cainiao.cntec.shopkeeper.supply.statistics.query (团购业务供货商查询门店统计数据)

查询门店售卖商品统计数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_activity_dto QueryActivityDto 可选 查询参数
  • └ store_id
  • String
  • 可选
  • 1001
  • 门店id
  • └ page
  • Boolean
  • 可选
  • true
  • 是否分页
  • └ page_size
  • Number
  • 可选
  • 20
  • 分页大小
  • └ page_index
  • Number
  • 可选
  • 1
  • 当前页

响应参数

名称 类型 示例值 描述
result Result 返回结果
  • └ trace_id
  • String
  • trace_id
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ err_code
  • String
  • 错误码
  • model_list
  • ActivityStatisticsDto []
  • 门店统计结果
  • └ inventory_coefficient
  • String
  • 箱规
  • └ totoal_price
  • String
  • 总价
  • └ buy_amount
  • String
  • 购买数量
  • └ price
  • String
  • 单价
  • └ title
  • String
  • 商品标题
  • └ product_code
  • String
  • 商品编码
  • └ station_name
  • String
  • 驿站名称
  • └ station_id
  • String
  • 驿站id
  • └ store_name
  • String
  • 门店名称
  • └ store_id
  • String
  • 门店id
  • └ activity_name
  • String
  • 活动名称
  • └ mkt_activity_type
  • String
  • PRE_SELL
  • 营销活动
  • └ predict_arrival_time
  • Date
  • 预计到货时间
  • └ error_msg
  • String
  • "参数错误"
  • 错误信息
  • └ total_count
  • Number
  • 总数量
  • └ page_index
  • Number
  • 当前页
  • └ page_size
  • Number
  • 分页大小

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecShopkeeperSupplyStatisticsQueryRequest req = new CainiaoCntecShopkeeperSupplyStatisticsQueryRequest();
CainiaoCntecShopkeeperSupplyStatisticsQueryRequest.QueryActivityDto obj1 = new CainiaoCntecShopkeeperSupplyStatisticsQueryRequest.QueryActivityDto();
obj1.setStoreId("1001");
obj1.setPage(true);
obj1.setPageSize(20L);
obj1.setPageIndex(1L);
req.setQueryActivityDto(obj1);
CainiaoCntecShopkeeperSupplyStatisticsQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cntec_shopkeeper_supply_statistics_query_response>
    <result>
        <trace_id></trace_id>
        <success>false</success>
        <err_code></err_code>
        <model_list>
            <activity_statistics_dto>
                <inventory_coefficient></inventory_coefficient>
                <totoal_price></totoal_price>
                <buy_amount></buy_amount>
                <price></price>
                <title></title>
                <product_code></product_code>
                <station_name></station_name>
                <station_id></station_id>
                <store_name></store_name>
                <store_id></store_id>
                <activity_name></activity_name>
                <mkt_activity_type>PRE_SELL</mkt_activity_type>
                <predict_arrival_time></predict_arrival_time>
            </activity_statistics_dto>
        </model_list>
        <error_msg>&quot;参数错误&quot;</error_msg>
        <total_count></total_count>
        <page_index></page_index>
        <page_size></page_size>
    </result>
</cainiao_cntec_shopkeeper_supply_statistics_query_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

返回
顶部