
Invoicing
TBankNet.Invoicing
Unofficial .NET SDK for T-Bank Invoicing
netstandard2.0net8.0net10.0
Features
- Issue an invoice: PDF and SBP QR
- Track invoice status
- Sandbox / Production environments
- Local validation and error model
Installation
dotnet add package TBankNet.InvoicingQuick start
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 invoiceGetInvoiceAsyncInvoice status and detailsREADMEgithub.com/ai-iskuzhin/TBankNet.Invoicing
Loading README from the repository…