All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
modify | POST /v3/alipay/eco/edu/kt/billing/modify | 教育缴费账单状态同步接口 |
query | GET /v3/alipay/eco/edu/kt/billing/query | 缴费账单查询 |
send | POST /v3/alipay/eco/edu/kt/billing/send | 教育缴费账单发送接口 |
AlipayEcoEduKtBillingModifyResponseModel modify(alipayEcoEduKtBillingModifyModel)
教育缴费账单状态同步接口
isv向支付宝-中小学-教育缴费发送教育缴费账单后,家长在支付宝-中小学-教育缴费中对账单完成支付操作且支付成功,ISV在自有系统内容对账,完成后通过此接口同步对账后的账单状态。状态分为:缴费成功、缴费失败。
// 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.AlipayEcoEduKtBillingApi;
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);
AlipayEcoEduKtBillingApi apiInstance = new AlipayEcoEduKtBillingApi(defaultClient);
AlipayEcoEduKtBillingModifyModel alipayEcoEduKtBillingModifyModel = new AlipayEcoEduKtBillingModifyModel(); // AlipayEcoEduKtBillingModifyModel |
try {
AlipayEcoEduKtBillingModifyResponseModel result = apiInstance.modify(alipayEcoEduKtBillingModifyModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayEcoEduKtBillingApi#modify");
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 |
---|---|---|---|
alipayEcoEduKtBillingModifyModel | AlipayEcoEduKtBillingModifyModel | [optional] |
AlipayEcoEduKtBillingModifyResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayEcoEduKtBillingQueryResponseModel query(isvPid, schoolPid, outTradeNo)
缴费账单查询
缴费账单查询
// 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.AlipayEcoEduKtBillingApi;
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);
AlipayEcoEduKtBillingApi apiInstance = new AlipayEcoEduKtBillingApi(defaultClient);
String isvPid = "2088121212121212"; // String | Isv pid
String schoolPid = "2088101117955611"; // String | 学校支付宝pid,直付通填写smid
String outTradeNo = "58de07de7bb90a437553e464"; // String | ISV调用发送账单接口,返回给商户的order_no
try {
AlipayEcoEduKtBillingQueryResponseModel result = apiInstance.query(isvPid, schoolPid, outTradeNo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayEcoEduKtBillingApi#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 |
---|---|---|---|
isvPid | String | Isv pid | [optional] |
schoolPid | String | 学校支付宝pid,直付通填写smid | [optional] |
outTradeNo | String | ISV调用发送账单接口,返回给商户的order_no | [optional] |
AlipayEcoEduKtBillingQueryResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
AlipayEcoEduKtBillingSendResponseModel send(alipayEcoEduKtBillingSendModel)
教育缴费账单发送接口
商家发送教育缴费账单给孩子,家长在支付宝可以查看自己绑定的孩子的缴费账单。
// 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.AlipayEcoEduKtBillingApi;
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);
AlipayEcoEduKtBillingApi apiInstance = new AlipayEcoEduKtBillingApi(defaultClient);
AlipayEcoEduKtBillingSendModel alipayEcoEduKtBillingSendModel = new AlipayEcoEduKtBillingSendModel(); // AlipayEcoEduKtBillingSendModel |
try {
AlipayEcoEduKtBillingSendResponseModel result = apiInstance.send(alipayEcoEduKtBillingSendModel);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AlipayEcoEduKtBillingApi#send");
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 |
---|---|---|---|
alipayEcoEduKtBillingSendModel | AlipayEcoEduKtBillingSendModel | [optional] |
AlipayEcoEduKtBillingSendResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |