All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
Modify | POST /v3/alipay/fund/agreement/quota/modify | 额度设置接口 |
Query | POST /v3/alipay/fund/agreement/quota/query | 额度查询接口 |
AlipayFundAgreementQuotaModifyResponseModel Modify (AlipayFundAgreementQuotaModifyModel alipayFundAgreementQuotaModifyModel = null)
额度设置接口
基于扣款合约设置付款方额度
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class ModifyExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayFundAgreementQuotaApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayFundAgreementQuotaModifyModel = new AlipayFundAgreementQuotaModifyModel(); // AlipayFundAgreementQuotaModifyModel | (optional)
try
{
// 额度设置接口
AlipayFundAgreementQuotaModifyResponseModel result = apiInstance.Modify(alipayFundAgreementQuotaModifyModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayFundAgreementQuotaApi.Modify: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayFundAgreementQuotaModifyModel | AlipayFundAgreementQuotaModifyModel | [optional] |
AlipayFundAgreementQuotaModifyResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
AlipayFundAgreementQuotaQueryResponseModel Query (AlipayFundAgreementQuotaQueryModel alipayFundAgreementQuotaQueryModel = null)
额度查询接口
查询基于扣款协议的额度配置查询
using System.Collections.Generic;
using System.Diagnostics;
using AlipaySDKNet.OpenAPI.Api;
using AlipaySDKNet.OpenAPI.Client;
using AlipaySDKNet.OpenAPI.Model;
using AlipaySDKNet.OpenAPI.Util;
using AlipaySDKNet.OpenAPI.Util.Model;
namespace Example
{
public class QueryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayFundAgreementQuotaApi(config);
// 设置alipayConfig参数
AlipayConfig alipayConfig = new AlipayConfig();
alipayConfig.AppId = "app_id";
alipayConfig.PrivateKey = "private_key";
// 密钥模式
alipayConfig.AlipayPublicKey = "alipay_public_key";
// 证书模式
// alipayConfig.AppCertPath = "../appCertPublicKey.crt";
// alipayConfig.AlipayPublicCertPath = "../alipayCertPublicKey_RSA2.crt";
// alipayConfig.RootCertPath = "../alipayRootCert.crt";
alipayConfig.EncryptKey = "encrypt_key";
AlipayConfigUtil alipayConfigUtil = new AlipayConfigUtil(alipayConfig);
apiInstance.Client.SetAlipayConfigUtil(alipayConfigUtil);
var alipayFundAgreementQuotaQueryModel = new AlipayFundAgreementQuotaQueryModel(); // AlipayFundAgreementQuotaQueryModel | (optional)
try
{
// 额度查询接口
AlipayFundAgreementQuotaQueryResponseModel result = apiInstance.Query(alipayFundAgreementQuotaQueryModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayFundAgreementQuotaApi.Query: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayFundAgreementQuotaQueryModel | AlipayFundAgreementQuotaQueryModel | [optional] |
AlipayFundAgreementQuotaQueryResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |