文档中心 > API类目 > 信息平台-采购

alibaba.pur.supplier.list (按条件查询供应商信息)

获取供应商信息,提供给蚂蚁

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_supplier_query_dto TopSupplierQueryDTO 必须 入参
  • └ id
  • Number
  • 可选
  • 628
  • 供应商id
  • └ supplier_code
  • String
  • 可选
  • SU250374
  • 供应商code
  • └ name
  • String
  • 可选
  • 洪著
  • 供应商名称
  • └ is_accurate
  • Boolean
  • 可选
  • true
  • 是否精确查询,默认true
  • └ offset
  • Number
  • 可选
  • 1
  • 偏移位,默认1
  • └ limit
  • Number
  • 可选
  • 10
  • 限制条数,上限20
  • └ need_contact
  • Boolean
  • 可选
  • true
  • 是否需要联系人信息
  • └ corp_id
  • Number
  • 可选
  • 1
  • 管理方id。集团为1,蚂蚁为2
  • └ only_certified
  • Boolean
  • 可选
  • true
  • 只查询正常状态供应商,默认false。当需要只查询正常状态供应商(onlyCertified = true)时,corpId和ceresApplicantUserWorkNo不能同时为空
  • └ ceres_applicant_user_work_no
  • String
  • 可选
  • 056771
  • 采购申请人工号,用于查询管理方。当需要只查询正常状态供应商(onlyCertified = true)时,corpId和ceresApplicantUserWorkNo不能同时为空

响应参数

名称 类型 示例值 描述
result ActionResult 出参 结果
  • └ success
  • Boolean
  • 结果
  • 结果
  • └ error_code
  • String
  • 00001
  • 错误标识
  • └ error_msg
  • String
  • 参数错误
  • 错误信息
  • └ error_level
  • Number
  • 1
  • 错误等级
  • content
  • TopSupplierBaseDetailDTO []
  • 内容
  • 内容
  • └ id
  • Number
  • 142241
  • ID
  • └ name
  • String
  • 吕静的公司
  • 供应商名称
  • └ code
  • String
  • SU250374
  • 编码
  • └ company_reg_place
  • String
  • inLand
  • 供应商注册地(国内、海外)
  • └ address
  • String
  • ddddd
  • 办公地址
  • └ type
  • String
  • 1
  • 供应商类型(企业/个人)
  • └ regcapital
  • String
  • demo
  • 注册资本
  • └ established_time
  • String
  • 1514822400000
  • 成立时间
  • └ geography_name
  • String
  • 北京市
  • 地理名称
  • └ ora_type
  • String
  • normal
  • 供应商入库类型(正式、临时)
  • └ enterprise_type
  • String
  • NATIONALIZED
  • 企业类型
  • └ employees_count
  • Number
  • 300
  • 企业人数
  • └ tax_id
  • String
  • demo
  • tax id(海外供应商有该字段 国内供应商无该字段的,返回:null 即可)
  • └ company_id
  • String
  • demo
  • company id(海外供应商有该字段 国内供应商无该字段的,返回:null 即可)
  • └ bussiness_license_no
  • String
  • 30000
  • 统一社会信用代码
  • └ country
  • String
  • CN
  • 注册地国家
  • contact_base_dto_list
  • TopSupplierContactBaseDto []
  • TopSupplierContactBaseDto
  • 联系人信息
  • └ name
  • String
  • 张三
  • 姓名
  • └ type
  • String
  • 默认
  • 类型
  • └ job_title
  • String
  • 经理
  • 职位
  • └ mobile_no
  • String
  • 13098765432
  • 联系电话
  • └ email
  • String
  • haofan@alitest.com
  • 邮箱

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurSupplierListRequest req = new AlibabaPurSupplierListRequest();
AlibabaPurSupplierListRequest.TopSupplierQueryDTO obj1 = new AlibabaPurSupplierListRequest.TopSupplierQueryDTO();
obj1.setId(628L);
obj1.setSupplierCode("SU250374");
obj1.setName("洪著");
obj1.setIsAccurate(true);
obj1.setOffset(1L);
obj1.setLimit(10L);
obj1.setNeedContact(true);
obj1.setCorpId(1L);
obj1.setOnlyCertified(true);
obj1.setCeresApplicantUserWorkNo("056771");
req.setTopSupplierQueryDto(obj1);
AlibabaPurSupplierListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_supplier_list_response>
    <result>
        <success>结果</success>
        <error_code>00001</error_code>
        <error_msg>参数错误</error_msg>
        <error_level>1</error_level>
        <content>
            <top_supplier_base_detail_d_t_o>
                <id>142241</id>
                <name>吕静的公司</name>
                <code>SU250374</code>
                <company_reg_place>inLand</company_reg_place>
                <address>ddddd</address>
                <type>1</type>
                <regcapital>demo</regcapital>
                <established_time>1514822400000</established_time>
                <geography_name>北京市</geography_name>
                <ora_type>normal</ora_type>
                <enterprise_type>NATIONALIZED</enterprise_type>
                <employees_count>300</employees_count>
                <tax_id>demo</tax_id>
                <company_id>demo</company_id>
                <bussiness_license_no>30000</bussiness_license_no>
                <country>CN</country>
                <contact_base_dto_list>
                    <top_supplier_contact_base_dto>
                        <name>张三</name>
                        <type>默认</type>
                        <job_title>经理</job_title>
                        <mobile_no>13098765432</mobile_no>
                        <email>haofan@alitest.com</email>
                    </top_supplier_contact_base_dto>
                </contact_base_dto_list>
            </top_supplier_base_detail_d_t_o>
        </content>
    </result>
</alibaba_pur_supplier_list_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

返回
顶部