MixSystems.Fiskaly 1.0.0

dotnet add package MixSystems.Fiskaly --version 1.0.0
                    
NuGet\Install-Package MixSystems.Fiskaly -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MixSystems.Fiskaly" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MixSystems.Fiskaly" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MixSystems.Fiskaly" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MixSystems.Fiskaly --version 1.0.0
                    
#r "nuget: MixSystems.Fiskaly, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MixSystems.Fiskaly@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MixSystems.Fiskaly&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MixSystems.Fiskaly&version=1.0.0
                    
Install as a Cake Tool

MixSystems.Fiskaly

MixSystems.Fiskaly is a production-oriented .NET SDK for Fiskaly SIGN DE v2 and the Fiskaly Management API.

It provides strongly typed clients, resilient HTTP pipelines, typed identifiers, and configuration validation for:

  • TSS lifecycle via ITssClient
  • Client lifecycle via IClientManagementClient
  • Transactions via ITransactionClient
  • Exports via IExportClient
  • Management API organizations via IOrganizationClient
  • Management API API keys via IApiKeyClient
  • Authentication via IFiskalyAuthenticationService
  • Scoped per-organization credentials via IFiskalyCredentialScopeFactory
  • Raw transaction response bodies via TxResponse.RawJson, for fiscal audit

Package

  • Package ID: MixSystems.Fiskaly
  • Current channel: 1.0.0-rc.5
  • Target framework: net10.0
  • License: MIT
  • Repository: https://github.com/mix-systems/MixSystems.Fiskaly
  • NuGet debugging support: portable PDBs via .snupkg, XML docs, and Source Link-compatible repository metadata

Installation

dotnet add package MixSystems.Fiskaly --prerelease

Configuration

Minimum infrastructure settings:

{
  "Fiskaly": {
    "BaseUrl": "https://kassensichv-middleware.fiskaly.com/api/v2/",
    "ManagementBaseUrl": "https://dashboard.fiskaly.com/api/v0/"
  }
}

Default ApiKey / ApiSecret are optional. Configure them only when the process should have a global fallback credential pair. If credentials are supplied later via IFiskalyCredentialScopeFactory, the SDK can start without default secrets.

Optional transport validation flags:

  • Fiskaly:AllowHttpForPrivateNetworks=true allows http:// for RFC1918/link-local/private LAN hosts.
  • Fiskaly:AllowHttpForPublicHosts=true allows http:// for public hosts. Keep this off unless you intentionally run an insecure proxy endpoint.

Optional per-client overrides are available under:

  • Fiskaly:AuthClient
  • Fiskaly:AdminClient
  • Fiskaly:TssClient
  • Fiskaly:TransactionClient
  • Fiskaly:ExportClient
  • Fiskaly:ClientManagementClient
  • Fiskaly:OrganizationClient
  • Fiskaly:ApiKeyClient

Registration

using MixSystems.Fiskaly;

builder.Services.AddFiskaly(builder.Configuration);

Quick Start

using MixSystems.Fiskaly.SignDE.Tss;
using MixSystems.Fiskaly.SignDE.Tss.ValueObjects;

ITssClient tssClient = app.Services.GetRequiredService<ITssClient>();
TssId tssId = TssId.New();

var created = await tssClient.CreateTssAsync(tssId, cancellationToken: ct);
Console.WriteLine($"Created TSS: {created.Id}");

Control Plane Example

This is the recommended pattern for control-plane services that create managed organizations, issue runtime API keys, and then operate in the scope of those runtime credentials.

using MixSystems.Fiskaly.Authentication;
using MixSystems.Fiskaly.Authentication.Credentials;
using MixSystems.Fiskaly.Authentication.ValueObjects;
using MixSystems.Fiskaly.Management.ApiKeys;
using MixSystems.Fiskaly.Management.ApiKeys.Requests;
using MixSystems.Fiskaly.Management.Organizations;

IOrganizationClient organizations = sp.GetRequiredService<IOrganizationClient>();
IApiKeyClient apiKeys = sp.GetRequiredService<IApiKeyClient>();
IFiskalyCredentialScopeFactory scopes = sp.GetRequiredService<IFiskalyCredentialScopeFactory>();

OrganizationId organizationId = OrganizationId.From("9b8ad703-b85c-4dec-882d-2dc7525ada3f");

var createdKey = await apiKeys.CreateApiKeyAsync(
    organizationId,
    new CreateApiKeyRequest
    {
        Name = "runtime-berlin-register-01"
    },
    ct);

using IDisposable scope = scopes.BeginScope(new ApiKeyCredentials(
    ApiKey.From(createdKey.Key ?? throw new InvalidOperationException("API key was not returned.")),
    ApiSecret.From(createdKey.Secret ?? throw new InvalidOperationException("API secret was not returned."))));

var runtimeOrganization = await organizations.GetOrganizationAsync(organizationId, ct);
Console.WriteLine($"Scoped organization lookup: {runtimeOrganization.Name}");

SIGN DE Transaction Example

using MixSystems.Fiskaly.SignDE.Clients.ValueObjects;
using MixSystems.Fiskaly.SignDE.Common;
using MixSystems.Fiskaly.SignDE.Transactions;
using MixSystems.Fiskaly.SignDE.Transactions.Enums;
using MixSystems.Fiskaly.SignDE.Transactions.Requests;
using MixSystems.Fiskaly.SignDE.Transactions.Schemas;
using MixSystems.Fiskaly.SignDE.Transactions.ValueObjects;
using MixSystems.Fiskaly.SignDE.Tss.ValueObjects;

ITransactionClient transactionClient = sp.GetRequiredService<ITransactionClient>();

TssId tssId = TssId.From("d9ee9052-fd45-4846-af24-818d10353cdb");
ClientId clientId = ClientId.From("0d918f2a-3c47-4662-a665-8e565d61109b");
TxId txId = TxId.New();

StartTransactionRequest start = new()
{
    ClientId = clientId,
    Metadata = MetadataCollection.Empty.Add("cashpoint", "POS-01")
};

_ = await transactionClient.StartTransactionAsync(tssId, txId, start, ct);

Receipt receipt = new()
{
    ReceiptType = ReceiptType.Receipt,
    AmountsPerVatRate =
    [
        new VatRateAmount
        {
            VatRate = VatRate.Normal,
            Amount = MoneyAmount.Create(45.00m, CurrencyCode.EUR)
        }
    ],
    AmountsPerPaymentType =
    [
        new PaymentTypeAmount
        {
            PaymentType = PaymentType.Cash,
            Amount = MoneyAmount.Create(45.00m, CurrencyCode.EUR)
        }
    ]
};

FinishTransactionRequest finish = FinishTransactionRequest.CreateReceipt(
    clientId,
    receipt,
    MetadataCollection.Empty.Add("cashpoint", "POS-01"));

var finished = await transactionClient.FinishTransactionAsync(tssId, txId, finish, ct);
Console.WriteLine($"Tx finished: {finished.Id}, qr={finished.QrCodeData}");

TEST and LIVE Environments

  • Fiskaly API keys are organization-scoped and environment-scoped.
  • TEST and LIVE are separate operational environments.
  • New managed organizations are typically provisioned and exercised in TEST first.
  • Moving to LIVE is an explicit Management API and operational step. It is not an automatic TEST -> LIVE promotion.
  • Runtime services should use credentials issued for the exact target organization and environment.

Validation Rules

  • Fiskaly:ApiKey and Fiskaly:ApiSecret are optional as a pair.
  • If one is configured, the other must also be configured.
  • When Fiskaly:ApiSecret is set, it must be exactly 43 alphanumeric characters.
  • BaseUrl and ManagementBaseUrl must be absolute and end with /.
  • HTTPS is required by default.
  • HTTP is allowed only for localhost, or private networks when AllowHttpForPrivateNetworks=true.
  • HTTP for public hosts is allowed only when AllowHttpForPublicHosts=true.

Default Resilience Profiles

Client Timeout (s) RetryCount CircuitBreakerThreshold CircuitBreakerDuration (s)
AuthClient 10 2 0 10
AdminClient 10 1 5 30
TssClient 30 3 5 60
TransactionClient 45 5 10 90
ExportClient 120 2 3 240
ClientManagementClient 30 3 5 60
OrganizationClient 30 3 5 60
ApiKeyClient 30 3 5 60

Runtime Override in Code

using MixSystems.Fiskaly;
using MixSystems.Fiskaly.Configuration;

builder.Services.AddFiskaly(builder.Configuration, configure: cfg =>
{
    cfg.TransactionClient.UseHighResilience();
    cfg.ApiKeyClient.DisableResilience();
});

Error Handling

Production usage typically maps SDK exceptions to domain-level failures:

  • FiskalyApiException
  • FiskalyTimeoutException
  • FiskalyCredentialsNotConfiguredException
  • FiskalyException

Release Notes

See CHANGELOG.md for the current release history.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 85 11/9/2026

First release under the MIX Systems name. Same code as SYT.Fiskaly 1.0.0-rc.9; the namespace is now MixSystems.Fiskaly.