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

taobao.daifa.distributor.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
  • 测试分销商1
  • 分销商、供应商在平台的名称
  • distributor_address
  • DistributorAddressDO
  • 分销商入驻时填写的发货地址信息
  • └ province
  • String
  • 浙江省
  • └ city
  • String
  • 杭州市
  • └ area
  • String
  • 余杭区
  • └ town
  • String
  • 五常街道
  • 街道-非必填项
  • └ address_detail
  • String
  • 问一西路969号
  • 详细地址
  • └ full_name
  • String
  • 张三
  • 姓名
  • └ mobile
  • String
  • 12345678990
  • 手机号
  • └ division_code
  • String
  • 330110005
  • 行政编码
  • └ success
  • String
  • true
  • 接口成功失败

请求示例

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

响应示例

  • XML示例
  • JSON示例
<daifa_distributor_role_get_response>
    <result>
        <err_code>123</err_code>
        <err_msg>系统异常</err_msg>
        <model>
            <id>123456</id>
            <role>DISTRITOR</role>
            <user_name>测试分销商1</user_name>
            <distributor_address>
                <province>浙江省</province>
                <city>杭州市</city>
                <area>余杭区</area>
                <town>五常街道</town>
                <address_detail>问一西路969号</address_detail>
                <full_name>张三</full_name>
                <mobile>12345678990</mobile>
                <division_code>330110005</division_code>
            </distributor_address>
        </model>
        <success>true</success>
    </result>
</daifa_distributor_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

返回
顶部