taobao.place.store.relation.query (门店关系查询)

查询门店关系

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_store_relation_simple_query StoreRelationSimpleQuery 可选 系统自动生成
  • └ biz_type
  • Number
  • 可选
  • 3900
  • 业务类型
  • └ outer_id
  • Number
  • 可选
  • 237959275
  • 外部关联业务id
  • └ page_index
  • Number
  • 可选
  • 1
  • 页码
  • └ page_size
  • Number
  • 可选
  • 20
  • 每页条目数(最大值100)
  • └ store_id
  • Number
  • 可选
  • 199994242
  • 门店id
  • └ accurate_count
  • Boolean
  • 可选
  • true
  • 是否获取精确数量,设置为true后搜索性能较差,对准确总数有强诉求的场景再使用。分页时请只在第一页请求时设置为true

响应参数

名称 类型 示例值 描述
result TopBatchResultDo null 返回结果
  • └ error_code
  • String
  • null
  • 错误码
  • └ error_msg
  • String
  • null
  • 错误信息
  • └ failure
  • Boolean
  • false
  • 是否失败
  • other
  • Other
  • null
  • 其它信息
  • └ empty
  • Boolean
  • false
  • 是否为空
  • result_list
  • StoreRelationSimpleDo []
  • null
  • 业务结果
  • └ biz_type
  • Number
  • 3900
  • 业务类型
  • └ name
  • String
  • null
  • 门店名称
  • └ outer_id
  • String
  • null
  • 业务id
  • └ relation_id
  • Number
  • null
  • 关系id
  • └ status
  • Number
  • 0
  • 业务关系状态
  • └ store_id
  • Number
  • 199994242
  • 门店id
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ total_num
  • Number
  • 0
  • 条目数,默认不返回,当设置accurate_count为true时才会返回

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PlaceStoreRelationQueryRequest req = new PlaceStoreRelationQueryRequest();
PlaceStoreRelationQueryRequest.StoreRelationSimpleQuery obj1 = new PlaceStoreRelationQueryRequest.StoreRelationSimpleQuery();
obj1.setBizType(3900L);
obj1.setOuterId(237959275L);
obj1.setPageIndex(1L);
obj1.setPageSize(20L);
obj1.setStoreId(199994242L);
obj1.setAccurateCount(true);
req.setParamStoreRelationSimpleQuery(obj1);
PlaceStoreRelationQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<place_store_relation_query_response>
    <result>
        <error_code>null</error_code>
        <error_msg>null</error_msg>
        <failure>false</failure>
        <other>
            <empty>false</empty>
        </other>
        <result_list>
            <store_relation_simple_do>
                <biz_type>3900</biz_type>
                <name>null</name>
                <outer_id>null</outer_id>
                <relation_id>null</relation_id>
                <status>0</status>
                <store_id>199994242</store_id>
            </store_relation_simple_do>
        </result_list>
        <success>true</success>
        <total_num>0</total_num>
    </result>
</place_store_relation_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

返回
顶部