All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
add | POST /v3/alipay/ebpp/bill/add | 创建账单 |
get | GET /v3/alipay/ebpp/bill/get | 查询账单 |
AlipayEbppBillAddResponseModel add(authToken, alipayEbppBillAddModel)
创建账单
创建账单
// 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.AlipayEbppBillApi;
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);
AlipayEbppBillApi apiInstance = new AlipayEbppBillApi(defaultClient);
String authToken = "authToken_example"; // String | 用户授权令牌
AlipayEbppBillAddModel alipayEbppBillAddModel = new AlipayEbppBillAddModel(); // AlipayEbppBillAddModel |
try {
AlipayEbppBillAddResponseModel result = apiInstance.add(authToken, alipayEbppBillAddModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayEbppBillApi#add");
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 |
---|---|---|---|
authToken | String | 用户授权令牌 | [optional] |
alipayEbppBillAddModel | AlipayEbppBillAddModel | [optional] |
AlipayEbppBillAddResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayEbppBillGetResponseModel get(authToken, orderType, merchantOrderNo)
查询账单
查询账单
// 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.AlipayEbppBillApi;
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);
AlipayEbppBillApi apiInstance = new AlipayEbppBillApi(defaultClient);
String authToken = "authToken_example"; // String | 用户授权令牌
String orderType = "JF"; // String | 支付宝订单类型。公共事业缴纳JF,信用卡还款HK
String merchantOrderNo = "201203031234567"; // String | 输出机构的业务流水号,需要保证唯一性。
try {
AlipayEbppBillGetResponseModel result = apiInstance.get(authToken, orderType, merchantOrderNo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayEbppBillApi#get");
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 |
---|---|---|---|
authToken | String | 用户授权令牌 | [optional] |
orderType | String | 支付宝订单类型。公共事业缴纳JF,信用卡还款HK | [optional] |
merchantOrderNo | String | 输出机构的业务流水号,需要保证唯一性。 | [optional] |
AlipayEbppBillGetResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |