A modern, asynchronous .NET 10 client library for the Billbee API. Built with Flurl.Http and Polly for robust, resilient HTTP communication.
- Async/Await — fully asynchronous API
- Resilient — automatic retry and circuit breaker via Polly
- Rate limiting — exponential backoff on HTTP 429
- Dependency Injection — native
Microsoft.Extensions.DependencyInjectionsupport - Structured logging — configurable via
Microsoft.Extensions.Logging - Strongly typed — full IntelliSense and XML documentation
dotnet add package Billbee.Net{
"Billbee": {
"Url": "https://app.billbee.io/api/v1",
"ApiKey": "your-api-key",
"Username": "your-username",
"Password": "your-password",
"Logging": false
}
}builder.Services.RegisterBillbee(builder.Configuration);public class OrderService(IOrderEndpoint orders)
{
public Task<List<Order>> GetRecentAsync() =>
orders.GetAllAsync(orderStateId: [OrderStateEnum.Im_Fulfillment]);
public async Task<Order> GetAsync(long id)
{
try
{
return await orders.GetAsync(id);
}
catch (ApiException ex)
{
_logger.LogError(ex, "Failed to get order {Id}", id);
throw;
}
}
}- Orders — retrieve, create, update, manage orders
- Products — product catalog and stock management
- Customers — customer data and addresses
- Invoices — invoice generation
- Shipments — shipping and tracking
- Events — custom event handling
- Delivery Notes — delivery documentation
- .NET 10.0
- Billbee API credentials (API Key, Username, Password)
dotnet restore
dotnet build
dotnet testMIT — see LICENSE for details.
Jörn Seidel · casoon.de · info@casoon.de