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

taobao.apple.card.active.apply.notify (苹果卡密申请激活回调接口)

苹果卡密申请激活回调接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
apple_cards AppleCardDto [] 可选
  • 最大列表长度:20
  • 卡列表
    • └ face_price
    • String
    • 可选
    • 5000
    • 面值
    • └ expire
    • String
    • 可选
    • 120
    • 有效期
    • └ card_pass
    • String
    • 可选
    • qwewerxcqwea
    • 卡密
    • └ card_no
    • String
    • 可选
    • GCA1234567890123
    • 卡号
    • └ zhx_goods_id
    • String
    • 可选
    • 6923127360045
    • 产品编码
    gateway_order_no String 可选 zhxgw58324987983 网关订单号
    result_msg String 可选 成功 描述
    order_no String 可选 201760308888961613 商户唯一订单号
    result_code String 可选 000 结果,000:成功,其他皆为错误 04: 订单处理失败(商户可退款,其他不可退款)

    响应参数

    名称 类型 示例值 描述
    result_code String 00 错误码
    result_msg String 处理成功 描述

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AppleCardActiveApplyNotifyRequest req = new AppleCardActiveApplyNotifyRequest();
    List<AppleCardActiveApplyNotifyRequest.AppleCardDto> list2 = new ArrayList<AppleCardActiveApplyNotifyRequest.AppleCardDto>();
    AppleCardActiveApplyNotifyRequest.AppleCardDto obj3 = new AppleCardActiveApplyNotifyRequest.AppleCardDto();
    list2.add(obj3);
    obj3.setFacePrice("5000");
    obj3.setExpire("120");
    obj3.setCardPass("qwewerxcqwea");
    obj3.setCardNo("GCA1234567890123");
    obj3.setZhxGoodsId("6923127360045");
    req.setAppleCards(list2);
    req.setGatewayOrderNo("zhxgw58324987983");
    req.setResultMsg("成功");
    req.setOrderNo("201760308888961613");
    req.setResultCode("000");
    AppleCardActiveApplyNotifyResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <apple_card_active_apply_notify_response>
        <result_code>00</result_code>
        <result_msg>处理成功</result_msg>
    </apple_card_active_apply_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

    返回
    顶部