tmall.bbp.vendingbox.userstatus.query (天猫宝贝派礼盒用户领取状态获取)

天猫宝贝派礼盒用户领取状态获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
open_id String 可选 AAH76-HcANsWNLb8FGF6rxuZ 淘宝用户在三方程序中的id
ali_pay_uid String 可选 *1234**5678* 支付宝id
box_id Number 可选 128 礼盒ID,非必填

响应参数

名称 类型 示例值 描述
result Result 返回结果
  • module
  • UserReceiveStatusDTO
  • 返回模型
  • └ box_id
  • Number
  • 128
  • 礼盒ID
  • └ is_bbp_user
  • Boolean
  • true
  • 是否是宝贝派用户
  • └ is_granted
  • Boolean
  • true
  • 是否已经授权可以获取其信息
  • └ receive_status
  • Number
  • 0
  • 领取状态
  • └ babyprofile_auth_id
  • Number
  • 5
  • 宝贝档案授权信息
  • └ success
  • Boolean
  • true
  • 请求是否成功
  • error_infos
  • ErrorInfo []
  • 错误信息
  • └ error_code
  • String
  • 000
  • 错误码
  • └ sub_error_code
  • String
  • 000
  • 子错误码
  • └ error_message
  • String
  • 000
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallBbpVendingboxUserstatusQueryRequest req = new TmallBbpVendingboxUserstatusQueryRequest();
req.setOpenId("AAH76-HcANsWNLb8FGF6rxuZ");
req.setAliPayUid("*1234**5678*");
req.setBoxId(128L);
TmallBbpVendingboxUserstatusQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_bbp_vendingbox_userstatus_query_response>
    <result>
        <module>
            <box_id>128</box_id>
            <is_bbp_user>true</is_bbp_user>
            <is_granted>true</is_granted>
            <receive_status>0</receive_status>
            <babyprofile_auth_id>5</babyprofile_auth_id>
        </module>
        <success>true</success>
        <error_infos>
            <error_info>
                <error_code>000</error_code>
                <sub_error_code>000</sub_error_code>
                <error_message>000</error_message>
            </error_info>
        </error_infos>
    </result>
</tmall_bbp_vendingbox_userstatus_query_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

返回
顶部