文档中心 > API类目 > 代发管理

taobao.daifa.supplier.role.get (代发管理供货商身份获取接口)

代发管理身份分销商、供货商获取接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result InnerResult 返回结果
  • └ err_code
  • String
  • 123
  • 错误code
  • └ err_msg
  • String
  • 系统异常
  • 错误描述
  • model
  • RoleGetResponse
  • 结果对象
  • └ id
  • String
  • 123456
  • 入驻后产生的唯一ID
  • └ role
  • String
  • DISTRITOR
  • NO_ROLE-未入驻 DISTRITOR-分销商 SUPPLIER-供货商
  • └ user_name
  • String
  • 分销商、供应商在平台的名称
  • 分销商、供应商在平台的名称
  • └ success
  • String
  • true
  • 接口成功失败

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
DaifaSupplierRoleGetRequest req = new DaifaSupplierRoleGetRequest();
DaifaSupplierRoleGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<daifa_supplier_role_get_response>
    <result>
        <err_code>123</err_code>
        <err_msg>系统异常</err_msg>
        <model>
            <id>123456</id>
            <role>DISTRITOR</role>
            <user_name>分销商、供应商在平台的名称</user_name>
        </model>
        <success>true</success>
    </result>
</daifa_supplier_role_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

返回
顶部