Skip to content

Latest commit

 

History

History
100 lines (77 loc) · 3.55 KB

AlipayEbppInvoiceTaxnoApi.md

File metadata and controls

100 lines (77 loc) · 3.55 KB

AlipaySDKNet.OpenAPI.Api.AlipayEbppInvoiceTaxnoApi

All URIs are relative to https://openapi.alipay.com

Method HTTP request Description
Batchquery POST /v3/alipay/ebpp/invoice/taxno/batchquery 获取指定企业的发票要素列表

Batchquery

AlipayEbppInvoiceTaxnoBatchqueryResponseModel Batchquery (string authToken = null, AlipayEbppInvoiceTaxnoBatchqueryModel alipayEbppInvoiceTaxnoBatchqueryModel = null)

获取指定企业的发票要素列表

根据购买方税号获取用户的发票关键要素列表,该接口目前适用于发票报销场景

Example

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 BatchqueryExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://openapi.alipay.com";
            var apiInstance = new AlipayEbppInvoiceTaxnoApi(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 authToken = "authToken_example";  // string | 用户授权令牌 (optional) 
            var alipayEbppInvoiceTaxnoBatchqueryModel = new AlipayEbppInvoiceTaxnoBatchqueryModel(); // AlipayEbppInvoiceTaxnoBatchqueryModel |  (optional) 

            try
            {
                // 获取指定企业的发票要素列表
                AlipayEbppInvoiceTaxnoBatchqueryResponseModel result = apiInstance.Batchquery(authToken, alipayEbppInvoiceTaxnoBatchqueryModel);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling AlipayEbppInvoiceTaxnoApi.Batchquery: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
authToken string 用户授权令牌 [optional]
alipayEbppInvoiceTaxnoBatchqueryModel AlipayEbppInvoiceTaxnoBatchqueryModel [optional]

Return type

AlipayEbppInvoiceTaxnoBatchqueryResponseModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 common response -
0 请求失败 -

[Back to top] [Back to API list] [Back to README]