taobao.payment.wallet.charge (淘宝零钱充值)

淘宝零钱充值

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
platform_outer_send_wallet_request PlatformOuterSendWalletRequest 必须 外部充值参数
  • └ request_id
  • String
  • 必须
  • sno_1342454665
  • 业务系统唯一号
  • └ taobao_account
  • String
  • 必须
  • tb_331221233
  • 收款人淘宝账号
  • └ organization_code
  • String
  • 必须
  • BSX_IIOP
  • 外部机构编号
  • └ biz_source
  • String
  • 必须
  • xxcs
  • 外部业务来源

响应参数

名称 类型 示例值 描述
data PlatformOuterSendResp 响应结果
  • └ order_id
  • Number
  • 345643354
  • 生成的唯一号
  • └ request_id
  • String
  • Biz_233444
  • 外部业务系统单号
is_success Boolean true true充值成功 false请看状态码
fail_code String B-23343 失败状态码
fail_msg String 充值失败 失败原因

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaymentWalletChargeRequest req = new PaymentWalletChargeRequest();
PaymentWalletChargeRequest.PlatformOuterSendWalletRequest obj1 = new PaymentWalletChargeRequest.PlatformOuterSendWalletRequest();
obj1.setRequestId("sno_1342454665");
obj1.setTaobaoAccount("tb_331221233");
obj1.setOrganizationCode("BSX_IIOP");
obj1.setBizSource("xxcs");
req.setPlatformOuterSendWalletRequest(obj1);
PaymentWalletChargeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<payment_wallet_charge_response>
    <data>
        <order_id>345643354</order_id>
        <request_id>Biz_233444</request_id>
    </data>
    <is_success>true</is_success>
    <fail_code>B-23343</fail_code>
    <fail_msg>充值失败</fail_msg>
</payment_wallet_charge_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

返回
顶部