All URIs are relative to https://openapi.alipay.com
Method | HTTP request | Description |
---|---|---|
Create | POST /v3/alipay/ebpp/invoice/institution/create | 制度新增 |
Delete | DELETE /v3/alipay/ebpp/invoice/institution/delete | 制度删除 |
Modify | POST /v3/alipay/ebpp/invoice/institution/modify | 制度编辑 |
AlipayEbppInvoiceInstitutionCreateResponseModel Create (AlipayEbppInvoiceInstitutionCreateModel alipayEbppInvoiceInstitutionCreateModel = 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 CreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayEbppInvoiceInstitutionApi(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 alipayEbppInvoiceInstitutionCreateModel = new AlipayEbppInvoiceInstitutionCreateModel(); // AlipayEbppInvoiceInstitutionCreateModel | (optional)
try
{
// 制度新增
AlipayEbppInvoiceInstitutionCreateResponseModel result = apiInstance.Create(alipayEbppInvoiceInstitutionCreateModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Create: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayEbppInvoiceInstitutionCreateModel | AlipayEbppInvoiceInstitutionCreateModel | [optional] |
AlipayEbppInvoiceInstitutionCreateResponseModel
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]
AlipayEbppInvoiceInstitutionDeleteResponseModel Delete (string accountId = null, string agreementNo = null, string enterpriseId = null, string institutionId = 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 DeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://openapi.alipay.com";
var apiInstance = new AlipayEbppInvoiceInstitutionApi(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 accountId = 2088000194958956; // string | 企业共同账户id(该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) (optional)
var agreementNo = 20215425001181407500; // string | 授权签约协议号 (该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) (optional)
var enterpriseId = 2088123412341234; // string | 企业id (optional)
var institutionId = 2022031000152617000000000001; // string | 制度id (optional)
try
{
// 制度删除
AlipayEbppInvoiceInstitutionDeleteResponseModel result = apiInstance.Delete(accountId, agreementNo, enterpriseId, institutionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Delete: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
accountId | string | 企业共同账户id(该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) | [optional] |
agreementNo | string | 授权签约协议号 (该字段将废弃,不建议使用,可用enterprise_id字段替换)(该字段将废弃,不建议使用,可用enterprise_id字段替换) | [optional] |
enterpriseId | string | 企业id | [optional] |
institutionId | string | 制度id | [optional] |
AlipayEbppInvoiceInstitutionDeleteResponseModel
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |
[Back to top] [Back to API list] [Back to README]
AlipayEbppInvoiceInstitutionModifyResponseModel Modify (AlipayEbppInvoiceInstitutionModifyModel alipayEbppInvoiceInstitutionModifyModel = 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 AlipayEbppInvoiceInstitutionApi(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 alipayEbppInvoiceInstitutionModifyModel = new AlipayEbppInvoiceInstitutionModifyModel(); // AlipayEbppInvoiceInstitutionModifyModel | (optional)
try
{
// 制度编辑
AlipayEbppInvoiceInstitutionModifyResponseModel result = apiInstance.Modify(alipayEbppInvoiceInstitutionModifyModel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AlipayEbppInvoiceInstitutionApi.Modify: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
alipayEbppInvoiceInstitutionModifyModel | AlipayEbppInvoiceInstitutionModifyModel | [optional] |
AlipayEbppInvoiceInstitutionModifyResponseModel
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | common response | - |
0 | 请求失败 | - |