注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 店铺会员管理API

taobao.crm.service.point.buyerpoint (买家积分信息)

买家积分信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
point_code String 必须 PG_POINT 积分编码:PG_POINT
buyer_nick String 必须 demo 买家NICK

响应参数

名称 类型 示例值 描述
buyer_point BuyerPointDto buyerPoint
  • └ gmt_modified
  • Date
  • 2015-08-16 15:01:29
  • 买家积分修改时间
  • └ total_quantity
  • Number
  • 123
  • 买家获得积分总量
  • └ point_code
  • String
  • PG_POINT
  • 积分编码:宝洁品牌积分/PG_POINT
  • └ gmt_create
  • Date
  • 2015-08-16 15:01:29
  • 买家积分创建时间
  • └ used_quantity
  • Number
  • 123
  • 买家已经使用积分数量
  • └ quantity
  • Number
  • 123
  • 买家剩余积分数量
  • └ pre_quantity
  • Number
  • 123
  • 买家上次剩余积分数量

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CrmServicePointBuyerpointRequest req = new CrmServicePointBuyerpointRequest();
req.setPointCode("PG_POINT");
req.setBuyerNick("demo");
CrmServicePointBuyerpointResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<crm_service_point_buyerpoint_response>
    <buyer_point>
        <gmt_modified>2015-08-16 15:01:29</gmt_modified>
        <total_quantity>123</total_quantity>
        <point_code>PG_POINT</point_code>
        <gmt_create>2015-08-16 15:01:29</gmt_create>
        <used_quantity>123</used_quantity>
        <quantity>123</quantity>
        <pre_quantity>123</pre_quantity>
    </buyer_point>
</crm_service_point_buyerpoint_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>

错误码解释

错误码 错误描述 解决方案
isv.invalid-buyernick-null buyer nick 为null 指定buyer nick
isv.invalid-sellerid-null seller_id为null 指定seller_id的值
isv.invalid-appkey-null appkey为null 指定appkey的值
isp.invalid-get-totalpoint-fail 获取用户积分失败 查看异常

API工具

如何获得此API

FAQ

返回
顶部