alibaba.fundplatform.account.charge (资金平台余额账户充值)

资金平台余额账户充值【创建账户&返回付款URL】

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_long Number 必须 12345 用户ID
param_charge_request ChargeRequest 可选 入参对象
  • └ amount
  • Number
  • 必须
  • 10000
  • 充值金额,单位分
  • └ description
  • String
  • 可选
  • XX账户充值
  • 描述信息
  • └ out_biz_id
  • String
  • 必须
  • A1234567890
  • 幂等字段,最多32位,必须保证同一请求幂等号唯一。不同请求幂等号不同
  • └ payer_alipay_email
  • String
  • 必须
  • 20881021382177910156
  • 付款支付宝账户email
  • └ payer_alipay_no
  • String
  • 必须
  • v9urtb@126.com
  • 付款支付宝账户编码
  • └ sub_biz_type
  • Number
  • 必须
  • 910000001
  • 业务类型,由资金平台分配,一般为9位数字
  • └ user_id
  • Number
  • 必须
  • 12345
  • 用户ID,两个userId请保持一致

响应参数

名称 类型 示例值 描述
result ResultSupport result
  • └ error_code
  • String
  • SYSTEM_ERROR
  • errorCode
  • └ error_message
  • String
  • 系统异常
  • errorMessage
  • module
  • AccountChargeResponse
  • 出参对象
  • └ account_id
  • Number
  • 1234567890
  • 充值的账户ID
  • └ pay_url
  • String
  • http://xxx.com
  • 充值URL
  • └ success
  • Boolean
  • true
  • success

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFundplatformAccountChargeRequest req = new AlibabaFundplatformAccountChargeRequest();
req.setParamLong(12345L);
AlibabaFundplatformAccountChargeRequest.ChargeRequest obj1 = new AlibabaFundplatformAccountChargeRequest.ChargeRequest();
obj1.setAmount(10000L);
obj1.setDescription("XX账户充值");
obj1.setOutBizId("A1234567890");
obj1.setPayerAlipayEmail("20881021382177910156");
obj1.setPayerAlipayNo("v9urtb@126.com");
obj1.setSubBizType(910000001L);
obj1.setUserId(12345L);
req.setParamChargeRequest(obj1);
AlibabaFundplatformAccountChargeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fundplatform_account_charge_response>
    <result>
        <error_code>SYSTEM_ERROR</error_code>
        <error_message>系统异常</error_message>
        <module>
            <account_id>1234567890</account_id>
            <pay_url>http://xxx.com</pay_url>
        </module>
        <success>true</success>
    </result>
</alibaba_fundplatform_account_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

返回
顶部