All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
query | GET /v3/alipay/fund/jointaccount/detail/query | 共享资金-查询账户详情 |
AlipayFundJointaccountDetailQueryResponseModel query(productCode, bizScene, accountId, agreementNo, outBizNo, channel)
共享资金-查询账户详情
发起人在商户上点击查看账户详情,商户服务端进行受理,并调用支付宝进行处理。处理结果,同步返回给商户。
// Import classes:
import com.alipay.v3.ApiClient;
import com.alipay.v3.ApiException;
import com.alipay.v3.Configuration;
import com.alipay.v3.util.*;
import com.alipay.v3.api.models.*;
import com.alipay.v3.api.AlipayFundJointaccountDetailApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://openapi.alipay.com");
// 设置alipayConfig参数(全局设置一次)
AlipayConfig config = new AlipayConfig();
config.setAppId("app_id");
config.setPrivateKey("private_key");
config.setAlipayPublicKey("alipay_public_key");
config.setEncryptKey("encrypt_key");
defaultClient.setAlipayConfig(config);
AlipayFundJointaccountDetailApi apiInstance = new AlipayFundJointaccountDetailApi(defaultClient);
String productCode = "ENTERPRISE_PAY"; // String | 销售产品码
String bizScene = "DEFAULT"; // String | 业务场景码
String accountId = "2088xxx"; // String | 合花群ID(查询方式二:通过传入account_id+agreement_no查询)<br> 补充说明:<br> -该字段可在签约接口alipay.fund.jointaccount.sign调用后,由账户变更结果通知接口alipay.fund.jointaccount.account.completed中返回。<br> -该字段可在签约接口调用后,由查询账户详情接口alipay.fund.jointaccount.detail.query中返回。
String agreementNo = "2088xxx"; // String | 授权协议号(查询方式二:通过传入account_id+agreement_no查询)<br> 补充说明:<br> -该字段可在签约接口alipay.fund.jointaccount.sign调用后,由账户变更结果通知接口alipay.fund.jointaccount.account.completed中返回。<br> -该字段可在签约接口调用后,由查询账户详情接口alipay.fund.jointaccount.detail.query中返回。
String outBizNo = "无"; // String | 商户侧单号(查询方式一:通过传入 out_biz_no查询)<br> 补充说明:<br> -该字段与签约接口alipay.fund.jointaccount.sign请求参数中传入值保持一致
String channel = "MMJZ"; // String | 业务渠道</br> 补充说明:</br> 需要商户侧必传,支付宝侧不做强校验
try {
AlipayFundJointaccountDetailQueryResponseModel result = apiInstance.query(productCode, bizScene, accountId, agreementNo, outBizNo, channel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayFundJointaccountDetailApi#query");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
productCode | String | 销售产品码 | [optional] |
bizScene | String | 业务场景码 | [optional] |
accountId | String | 合花群ID(查询方式二:通过传入account_id+agreement_no查询)<br> 补充说明:<br> -该字段可在签约接口alipay.fund.jointaccount.sign调用后,由账户变更结果通知接口alipay.fund.jointaccount.account.completed中返回。<br> -该字段可在签约接口调用后,由查询账户详情接口alipay.fund.jointaccount.detail.query中返回。 | [optional] |
agreementNo | String | 授权协议号(查询方式二:通过传入account_id+agreement_no查询)<br> 补充说明:<br> -该字段可在签约接口alipay.fund.jointaccount.sign调用后,由账户变更结果通知接口alipay.fund.jointaccount.account.completed中返回。<br> -该字段可在签约接口调用后,由查询账户详情接口alipay.fund.jointaccount.detail.query中返回。 | [optional] |
outBizNo | String | 商户侧单号(查询方式一:通过传入 out_biz_no查询)<br> 补充说明:<br> -该字段与签约接口alipay.fund.jointaccount.sign请求参数中传入值保持一致 | [optional] |
channel | String | 业务渠道</br> 补充说明:</br> 需要商户侧必传,支付宝侧不做强校验 | [optional] |
AlipayFundJointaccountDetailQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |