Invoicing

TBankNet.Invoicing

Unofficial .NET SDK for T-Bank Invoicing

TBankNet.Invoicing version on NuGetTBankNet.Invoicing downloads on NuGetMITC#
netstandard2.0net8.0net10.0

Features

  • Issue an invoice: PDF and SBP QR
  • Track invoice status
  • Sandbox / Production environments
  • Local validation and error model

Installation

bash
dotnet add package TBankNet.Invoicing

Quick start

csharp
using TBankNet.Invoicing;

using var httpClient = new HttpClient();
var client = new TBankInvoiceClient(httpClient, new TBankInvoiceClientOptions
{
    ApiToken = "YOUR_API_TOKEN",
    Environment = TBankInvoiceEnvironment.Sandbox,
});

var result = await client.SendInvoiceAsync(new TBankSendInvoiceRequest
{
    InvoiceNumber = "12345",
    DueDate = new DateTime(2026, 8, 22),
    Payer = new TBankInvoicePayer { Name = "ООО «Контрагент»", Inn = "730990470834" },
    Items = new[]
    {
        new TBankInvoiceItem { Name = "Услуга", Price = 100m, Unit = "шт", Vat = TBankInvoiceVat.Vat22, Amount = 1m },
    },
    Contacts = new[] { new TBankInvoiceContact { Email = "buyer@example.com" } },
});

Console.WriteLine(result.PdfUrl);   // PDF link (valid 10 days)

Key methods

SendInvoiceAsyncIssue an invoice
GetInvoiceAsyncInvoice status and details
READMEgithub.com/ai-iskuzhin/TBankNet.Invoicing
Loading README from the repository…