文档中心 > API类目 > 本地生活API

alibaba.alsc.fund.union.transfer (本地生活银联打款)

银联打款

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gateway_request GatewayCommonRequest 必须 请求体
  • channel_request_params
  • UnionSinglePayReqParams
  • 必须
  • 请求渠道参数
  • └ trade_no
  • String
  • 必须
  • 20220326121900000001
  • 商户交易单号
  • └ total_amount
  • String
  • 必须
  • 1.00
  • 交易金额
  • └ merchant_code
  • String
  • 必须
  • 35001_31332423
  • 客户代码
  • └ merchant_name
  • String
  • 必须
  • 35001_31332423
  • 客户名称
  • └ out_account_number
  • String
  • 必须
  • 6228480000000000001
  • 出款账号
  • └ out_account_name
  • String
  • 必须
  • 测试
  • 出款账号名称
  • └ in_account_number
  • String
  • 必须
  • 6228480000000000001
  • 收款账号
  • └ in_account_name
  • String
  • 必须
  • 测试
  • 收款户名
  • └ in_account_bank_name
  • String
  • 必须
  • 测试
  • 收款方银行名称
  • └ in_account_bank_address
  • String
  • 可选
  • 测试
  • 收款方银行地址
  • └ in_account_type
  • String
  • 必须
  • 01
  • 收款方账户类型 01:对私 10:对公
  • └ in_account_bank_node
  • String
  • 可选
  • 43534534
  • 收款方银行行号
  • └ currency_code
  • String
  • 必须
  • 156
  • 币种 人民币传:156
  • └ remark
  • String
  • 必须
  • 备注
  • 备注
  • └ trade_date
  • String
  • 必须
  • 20220411
  • 交易日期
  • └ send_time
  • String
  • 必须
  • 112301
  • 发送时间
  • └ comment
  • String
  • 必须
  • 附言
  • 附言
  • └ vir_account_no
  • String
  • 必须
  • 9550880222067600188
  • 账簿号

响应参数

名称 类型 示例值 描述
is_success Boolean true 调用网关接口是否成功
channel_response_params UnionSinglePayRespParams 渠道返回参数
  • └ code
  • String
  • 00
  • 渠道返回码
  • └ msg
  • String
  • 受理成功
  • 渠道返回描述
  • └ trade_no
  • String
  • 20220326122400000001
  • 商户订单号
  • └ out_trade_no
  • String
  • PE00000120220326122400000001
  • 外部交易号
system_result_msg String SUCCESS 网关系统响应码
system_result_code String 成功 网关系统响应信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscFundUnionTransferRequest req = new AlibabaAlscFundUnionTransferRequest();
AlibabaAlscFundUnionTransferRequest.GatewayCommonRequest obj1 = new AlibabaAlscFundUnionTransferRequest.GatewayCommonRequest();
AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParams obj2 = new AlibabaAlscFundUnionTransferRequest.UnionSinglePayReqParams();
obj2.setTradeNo("20220326121900000001");
obj2.setTotalAmount("1.00");
obj2.setMerchantCode("35001_31332423");
obj2.setMerchantName("35001_31332423");
obj2.setOutAccountNumber("6228480000000000001");
obj2.setOutAccountName("测试");
obj2.setInAccountNumber("6228480000000000001");
obj2.setInAccountName("测试");
obj2.setInAccountBankName("测试");
obj2.setInAccountBankAddress("测试");
obj2.setInAccountType("01");
obj2.setInAccountBankNode("43534534");
obj2.setCurrencyCode("156");
obj2.setRemark("备注");
obj2.setTradeDate("20220411");
obj2.setSendTime("112301");
obj2.setComment("附言");
obj2.setVirAccountNo("9550880222067600188");
obj1.setChannelRequestParams(obj2);
req.setGatewayRequest(obj1);
AlibabaAlscFundUnionTransferResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_fund_union_transfer_response>
    <is_success>true</is_success>
    <channel_response_params>
        <code>00</code>
        <msg>受理成功</msg>
        <trade_no>20220326122400000001</trade_no>
        <out_trade_no>PE00000120220326122400000001</out_trade_no>
    </channel_response_params>
    <system_result_msg>SUCCESS</system_result_msg>
    <system_result_code>成功</system_result_code>
</alibaba_alsc_fund_union_transfer_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

返回
顶部