文档中心 > API类目 > 淘宝游戏API

taobao.apple.olduser.charge.notify (老用户激活并兑换通知接口)

老用户激活并兑换通知接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
result_code String 可选 00 结果code
result_msg String 可选 处理成功 结果信息说明
main_data AppleTopOldSignNotifyDo 可选 业务参数
  • └ card_no
  • String
  • 可选
  • GCA1234567890123
  • 电子卡卡号
  • └ goods_id
  • String
  • 可选
  • 6923127360045
  • 商品编号
  • └ order_no
  • String
  • 可选
  • 201760308888961613
  • 商户订单号
  • └ memo
  • String
  • 可选
  • {attribute:235234}
  • 附加信息,后续可以扩展
  • └ face_price
  • String
  • 可选
  • 5000
  • 面值,单位分
  • └ gateway_order_no
  • String
  • 可选
  • zhxgw58324987983
  • 网关订单号

响应参数

名称 类型 示例值 描述
result_msg String 更新成功 处理结果说明
result_code String 00 处理结果码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AppleOlduserChargeNotifyRequest req = new AppleOlduserChargeNotifyRequest();
req.setResultCode("00");
req.setResultMsg("处理成功");
AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDo obj1 = new AppleOlduserChargeNotifyRequest.AppleTopOldSignNotifyDo();
obj1.setCardNo("GCA1234567890123");
obj1.setGoodsId("6923127360045");
obj1.setOrderNo("201760308888961613");
obj1.setMemo("{attribute:235234}");
obj1.setFacePrice("5000");
obj1.setGatewayOrderNo("zhxgw58324987983");
req.setMainData(obj1);
AppleOlduserChargeNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<apple_olduser_charge_notify_response>
    <result_msg>更新成功</result_msg>
    <result_code>00</result_code>
</apple_olduser_charge_notify_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

返回
顶部