文档中心 > API类目 > 新零售供应链API

alibaba.ascp.global.supplier.item.list.info.query (供应商供品信息查询)

供应商供品信息查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
supply_product_page_query TopRequest 必须 请求组装
  • └ supplier_id
  • String
  • 必须
  • 300000000015871
  • 供应商ID
  • └ page_size
  • Number
  • 必须
  • 200
  • 每页条数,最大不超过200
  • └ begin_time
  • Date
  • 可选
  • 2021-09-28 00:00:00
  • 创建供品关系开始时间
  • └ end_time
  • Date
  • 可选
  • 2021-09-28 00:00:00
  • 创建供品关系结束时间
  • └ current_page
  • Number
  • 必须
  • 1
  • 当前页

响应参数

名称 类型 示例值 描述
result ResultWrapper {"result"} 响应结果
  • └ success
  • Boolean
  • true
  • 接口返回是否成功
  • data
  • Data
  • { "data":{ "page_data":{ [ { "supplier_name":"测试", "supplier_id":12121212, "sc_item_name":"测试商品", "sc_item_id":11111111, "outer_id":"21212212", "barcode":"2121122212", "create_date":"2021-09-28 00:00:00" } ] }, "page_size":200, "current_page":1, "total_count":200 } }
  • 返回货品list
  • page_data
  • PageData []
  • { "page_data":{ [ { "supplier_name":"测试", "supplier_id":12121212, "sc_item_name":"测试商品", "sc_item_id":11111111, "outer_id":"21212212", "barcode":"2121122212", "create_date":"2021-09-28 00:00:00" } ] }
  • 返回货品list
  • └ supplier_name
  • String
  • 测试*
  • 供应商名称
  • └ supplier_id
  • String
  • 300000000015871
  • 供应商id
  • └ sc_item_name
  • String
  • 测试商品
  • 商品名称
  • └ sc_item_id
  • Number
  • 234354545
  • 商品id
  • └ outer_id
  • String
  • 2121212
  • 外部商家编码
  • └ barcode
  • String
  • 121212
  • 条形码
  • └ create_date
  • Date
  • 2021-09-28 00:00:00
  • 创建时间
  • └ page_size
  • Number
  • 200
  • 每页条数,最大不超过200
  • └ current_page
  • Number
  • 1
  • 当前页
  • └ total_count
  • Number
  • 233
  • 货品总数
  • └ page_index
  • Number
  • 1
  • 页号
  • └ total_page
  • Number
  • 20
  • 总页数
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 异常code
  • └ error_message
  • String
  • 货品导出不能超过20000条, 请添加检索条件
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpGlobalSupplierItemListInfoQueryRequest req = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest();
AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequest obj1 = new AlibabaAscpGlobalSupplierItemListInfoQueryRequest.TopRequest();
obj1.setSupplierId("300000000015871");
obj1.setPageSize(200L);
obj1.setBeginTime(StringUtils.parseDateTime("2021-09-28  00:00:00"));
obj1.setEndTime(StringUtils.parseDateTime("2021-09-28  00:00:00"));
obj1.setCurrentPage(1L);
req.setSupplyProductPageQuery(obj1);
AlibabaAscpGlobalSupplierItemListInfoQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_global_supplier_item_list_info_query_response>
    <result>
        <success>true</success>
        <data>
            <page_data>
                <page_data>
                    <supplier_name>测试*</supplier_name>
                    <supplier_id>300000000015871</supplier_id>
                    <sc_item_name>测试商品</sc_item_name>
                    <sc_item_id>234354545</sc_item_id>
                    <outer_id>2121212</outer_id>
                    <barcode>121212</barcode>
                    <create_date>2021-09-28  00:00:00</create_date>
                </page_data>
            </page_data>
            <page_size>200</page_size>
            <current_page>1</current_page>
            <total_count>233</total_count>
        </data>
        <error_code>SYSTEM_ERROR</error_code>
        <error_message>货品导出不能超过20000条, 请添加检索条件</error_message>
    </result>
</alibaba_ascp_global_supplier_item_list_info_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

返回
顶部