You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A strongly-typed .NET client library for the sevDesk API. Manage invoices, contacts, vouchers, orders, credit notes, and more — with full async support and dependency injection.
Feature highlights:
20 typed clients covering the entire sevDesk REST API
Strongly typed models and enums for all resources
Transaction operations: save invoice/order/voucher with positions atomically
PDF generation, email sending, status management, and document upload
Pagination with SevDeskListResponse<T> and filtering
awaitclient.Invoices.SendViaEmailAsync(invoiceId,email:"customer@example.com",subject:"Your Invoice",text:"Please find your invoice attached.");
Pagination
varpage=awaitclient.Contacts.ListAsync(newPaginationParameters{Limit=50,Offset=100});Console.WriteLine($"Showing {page.Items.Count} of {page.Total} contacts");
try{varinvoice=awaitclient.Invoices.GetAsync(id);}catch(SevDeskNotFoundException){// 404 — invoice not found}catch(SevDeskAuthenticationException){// 401 — invalid API token}catch(SevDeskValidationExceptionex){// 422 — validation errorConsole.WriteLine(ex.RawResponse);}catch(SevDeskApiExceptionex){// Other API errorsConsole.WriteLine($"{ex.StatusCode}: {ex.Message}");}
Exception
HTTP Status
When
SevDeskAuthenticationException
401
Invalid or missing API token
SevDeskNotFoundException
404
Resource not found
SevDeskValidationException
422
Invalid request data
SevDeskApiException
Various
Other API errors
SevDeskException
—
Base exception (network errors, etc.)
Configuration
SevDeskOptions
Property
Type
Default
Description
ApiToken
string
(required)
32-character API token from sevDesk
CustomBaseUrl
string?
null
Override the default API base URL
BaseUrl
string
https://my.sevdesk.de/api/v1
Computed base URL (uses CustomBaseUrl if set)
Validation
AddSevDesk() validates options on registration:
ApiToken must not be empty
CustomBaseUrl (if set) must use HTTPS or be localhost
License
MIT
About
A strongly-typed .NET client library for the sevDesk API