Prerequisites
- .NET 6.0 or later
- A Smartbills account with an API key
- NuGet package manager (included with .NET SDK)
Install via NuGet
ASP.NET Core Integration
For ASP.NET Core applications, install the companion package for dependency injection support:Configuration
Basic Configuration
Configuration Options
ASP.NET Core Dependency Injection
When using theSmartbills.SDK.AspNetCore package, register the client in your Program.cs or Startup.cs:
Environment Configuration
Store your credentials securely usingappsettings.json or environment variables:
appsettings.json
appsettings.Development.json
User Secrets (Development)
For local development, use the .NET user secrets manager:Per-Request Options
Every method accepts an optionalSBRequestOptions parameter to override default settings for individual requests:
Verifying Installation
Create a simple console application to verify the SDK is working:Next Steps
Usage Guide
Learn how to use InvoiceClient, FileClient, and BillingClient