.NET SDK

The official Taxu .NET library provides modern C# access to the Taxu API with async/await support and full NuGet integration.

What is the Taxu .NET SDK?

The Taxu .NET SDK is a modern C# library built for .NET 6+, ASP.NET Core, and Azure cloud applications. With full async/await support and LINQ-friendly interfaces, it brings enterprise tax compliance to the .NET ecosystem with the patterns and practices .NET developers expect.

Perfect for Azure-hosted applications, ASP.NET Core APIs, Blazor web apps, and desktop applications, the .NET SDK provides strongly-typed models, comprehensive XML documentation, and seamless integration with Microsoft's development ecosystem for building sophisticated tax and financial platforms.

Perfect For:

  • • ASP.NET Core web applications
  • • Azure cloud services
  • • Blazor and desktop apps
  • • Enterprise .NET systems

.NET Features:

  • • Full async/await support
  • • Strongly-typed models
  • • NuGet package manager
  • • LINQ query support
v3.0.0
.NET 6.0+

Installation

Package Manager Console
Install-Package Taxu

Authentication

using Taxu;

var client = new TaxuClient("your_api_key_here");

Basic Usage

var filing = await client.Tax.File1099NECAsync(new File1099NECParams
{
    TaxYear = 2024,
    Payer = new Payer
    {
        Name = "Acme Corp",
        EIN = "12-3456789",
        Address = "123 Business St"
    },
    Recipient = new Recipient
    {
        Name = "John Contractor",
        SSN = "123-45-6789",
        Address = "456 Worker Ave"
    },
    NonEmployeeCompensation = 15000
});

Console.WriteLine(filing.Id);  // fil_1234567890

More Examples

Calculate Tax

var client = new TaxuClient("your_api_key_here");
var result = await client.Tax.CalculateAsync(new CalculateParams
{
    Income = 85000,
    Deductions = 12000,
    FilingStatus = "single",
    State = "CA"
});

Console.WriteLine($"Federal tax: ${result.FederalTax}");
Console.WriteLine($"State tax: ${result.StateTax}");