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

alibaba.pur.supplier.get (获取供应商信息)

获取供应商信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
supplier_id Number 可选 1 供应商ID
corp_id String 可选 2 组织ID

响应参数

名称 类型 示例值 描述
result ActionResult 出参 结果
  • └ success
  • Boolean
  • 结果
  • 结果
  • └ error_code
  • String
  • 00001
  • 错误标识
  • content
  • SupplierBaseDetailDto
  • 内容
  • 内容
  • └ sales_last_year
  • Number
  • 2000
  • 上一年销售额
  • └ country
  • String
  • CN
  • 注册地国家
  • └ regcapital
  • String
  • demo
  • 注册资本
  • └ ora_type
  • String
  • normal
  • 供应商入库类型(正式、临时)
  • └ address
  • String
  • ddddd
  • 办公地址
  • banks
  • Banks []
  • 银行
  • 银行
  • └ account_name
  • String
  • 13336622000
  • 收款户名
  • └ bank_branch_name
  • String
  • 顶顶顶顶
  • 开户支行名称
  • └ swift_code
  • String
  • 123123123123
  • wift code
  • └ bank_name
  • String
  • demo
  • 总行名称
  • └ account_place
  • String
  • 北京市北京市
  • 开户地
  • └ bank_address
  • String
  • 顶顶顶顶
  • 开户行地址
  • └ account
  • String
  • 12312312312312
  • 1账号
  • └ bank_country
  • String
  • INLAND_CN
  • 开户行归属国家
  • └ cnaps
  • String
  • demo
  • 联行号
  • └ established_time
  • String
  • 1514822400000
  • 成立时间
  • └ supplier_code
  • String
  • SU086487
  • 供应商编码
  • └ bussiness_license_no
  • String
  • 30000
  • 统一社会信用代码
  • └ type
  • String
  • 1
  • 供应商类型(企业/个人)
  • └ enterprise_type
  • String
  • NATIONALIZED
  • 企业类型
  • └ last_check_time
  • String
  • 1514822400000
  • 上一次年检时间
  • └ company_id
  • String
  • demo
  • company id(海外供应商有该字段 国内供应商无该字段的,返回:null 即可)
  • └ tax_id
  • String
  • demo
  • tax id(海外供应商有该字段 国内供应商无该字段的,返回:null 即可)
  • └ level_type
  • String
  • choosableSupplier
  • 供应商分级
  • └ legal_person
  • String
  • demo
  • 法人
  • └ company_reg_place
  • String
  • inLand
  • 供应商注册地(国内、海外)
  • └ name
  • String
  • 吕静的公司
  • 供应商名称
  • └ id
  • Number
  • 142241
  • ID
  • └ reg_type
  • String
  • temp_save
  • 注册类型
  • contacts
  • Contacts []
  • 联系人
  • 联系人
  • └ job_title
  • String
  • 123123
  • 职务
  • └ name
  • String
  • 12
  • 姓名
  • └ mobile_no
  • String
  • 15859562543
  • 手机
  • └ email
  • String
  • lvjingwn@333.com
  • 邮箱
  • └ error_msg
  • String
  • 参数错误
  • 错误信息
  • └ error_level
  • Number
  • 1
  • 错误等级

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurSupplierGetRequest req = new AlibabaPurSupplierGetRequest();
req.setSupplierId(1L);
req.setCorpId("2");
AlibabaPurSupplierGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_supplier_get_response>
    <result>
        <success>结果</success>
        <error_code>00001</error_code>
        <content>
            <sales_last_year>2000</sales_last_year>
            <country>CN</country>
            <regcapital>demo</regcapital>
            <ora_type>normal</ora_type>
            <address>ddddd</address>
            <banks>
                <banks>
                    <account_name>13336622000</account_name>
                    <bank_branch_name>顶顶顶顶</bank_branch_name>
                    <swift_code>123123123123</swift_code>
                    <bank_name>demo</bank_name>
                    <account_place>北京市北京市</account_place>
                    <bank_address>顶顶顶顶</bank_address>
                    <account>12312312312312</account>
                    <bank_country>INLAND_CN</bank_country>
                    <cnaps>demo</cnaps>
                </banks>
            </banks>
            <established_time>1514822400000</established_time>
            <supplier_code>SU086487</supplier_code>
            <bussiness_license_no>30000</bussiness_license_no>
            <type>1</type>
            <enterprise_type>NATIONALIZED</enterprise_type>
            <last_check_time>1514822400000</last_check_time>
            <company_id>demo</company_id>
            <tax_id>demo</tax_id>
            <level_type>choosableSupplier</level_type>
            <legal_person>demo</legal_person>
            <company_reg_place>inLand</company_reg_place>
            <name>吕静的公司</name>
            <id>142241</id>
            <reg_type>temp_save</reg_type>
            <contacts>
                <contacts>
                    <job_title>123123</job_title>
                    <name>12</name>
                    <mobile_no>15859562543</mobile_no>
                    <email>lvjingwn@333.com</email>
                </contacts>
            </contacts>
        </content>
        <error_msg>参数错误</error_msg>
        <error_level>1</error_level>
    </result>
</alibaba_pur_supplier_get_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

返回
顶部