alibaba.industry.bbp.grant.draw.grant (宝贝派-授权-领样权限-授权)

宝贝派-授权-领样权限-授权

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
isv_grant_draw_request IsvGrantDrawRequest 可选 授权请求
  • └ alipay_user_id
  • String
  • 可选
  • 12345
  • 支付宝用户ID
  • └ ext_param
  • String
  • 可选
  • {}
  • 扩展字段
  • └ biz_code
  • String
  • 可选
  • xxx
  • 业务身份
  • └ isv_user_id
  • String
  • 可选
  • 12345
  • 服务商ID
  • └ tb_id
  • String
  • 可选
  • AAH76-HcANsWNLb8FGF6rxuZ
  • 淘宝用户的openId

响应参数

名称 类型 示例值 描述
msg_info String 系统异常 错误信息
code_info String isp.system-service-error 错误码
module GrantDrawUserInfoDTO 数据
  • └ grant_success
  • Boolean
  • true
  • 是否已授权
  • └ use_type
  • String
  • aliPayUserId
  • 授权依据用户类型
  • └ social_nick
  • String
  • xx***xx
  • 授权用户脱敏名称
is_succ Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIndustryBbpGrantDrawGrantRequest req = new AlibabaIndustryBbpGrantDrawGrantRequest();
AlibabaIndustryBbpGrantDrawGrantRequest.IsvGrantDrawRequest obj1 = new AlibabaIndustryBbpGrantDrawGrantRequest.IsvGrantDrawRequest();
obj1.setAlipayUserId("12345");
obj1.setExtParam("{}");
obj1.setBizCode("xxx");
obj1.setIsvUserId("12345");
obj1.setTbId("AAH76-HcANsWNLb8FGF6rxuZ");
req.setIsvGrantDrawRequest(obj1);
AlibabaIndustryBbpGrantDrawGrantResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_industry_bbp_grant_draw_grant_response>
    <msg_info>系统异常</msg_info>
    <code_info>isp.system-service-error</code_info>
    <module>
        <grant_success>true</grant_success>
        <use_type>aliPayUserId</use_type>
        <social_nick>xx***xx</social_nick>
    </module>
    <is_succ>true</is_succ>
</alibaba_industry_bbp_grant_draw_grant_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

返回
顶部