Tax / self-employed

FnsNet.NpdStatus

.NET SDK to check self-employed status with the Russian tax service

FnsNet.NpdStatus version on NuGetFnsNet.NpdStatus downloads on NuGetMITC#
net8.0net10.0

Features

  • Self-employed status by INN on a date
  • DI registration or a container-free factory
  • Errors with the service code and IsTransient
  • Raw body: always on error, opt-in on success
  • Observability through the standard HttpClient

Installation

bash
dotnet add package FnsNet.NpdStatus

Quick start

csharp
using FnsNet.NpdStatus;
using Microsoft.Extensions.DependencyInjection;

services.AddNpdStatusClient();

// Without a DI container
using var client = NpdStatusClient.Create();

var status = await client.GetStatusAsync("525741209968", new DateOnly(2026, 10, 1));

Key methods

GetStatusAsyncSelf-employed status on a date
AddNpdStatusClientDI registration
NpdStatusClient.CreateA client without DI
READMEgithub.com/ai-iskuzhin/FnsNet.NpdStatus
Loading README from the repository…