Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 2.5 KB

File metadata and controls

84 lines (60 loc) · 2.5 KB

Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine — .NET / C# SDK

NuGet version License: MIT Stanza API

Sub-5ms Peppol BIS Billing 3.0 & EN 16931 e-invoice validation and XML-to-JSON parsing supporting OASIS UBL 2.1 and UN/CEFACT CII.

Official high-performance .NET client library for Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine, built on the Stanza Micro-API Network. Fully compatible with .NET Standard 2.0, .NET 6.0, .NET 7.0, and .NET 8.0+.


📦 Installation

dotnet add package StanzaApi.PeppolValidator

🚀 Quickstart

using System;
using System.Threading.Tasks;
using StanzaApi.PeppolValidator;

class Program
{
    static async Task Main()
    {
        // Initialize client (reads STANZA_API_KEY from environment if not passed)
        var client = new PeppolValidatorClient();

        // Perform deterministic verification
        string responseJson = await client.ValidateAsync("<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">...</Invoice>");
        Console.WriteLine(responseJson);
    }
}

📄 Example Response

{
  "success": true,
  "data": {
    "valid": true,
    "profile": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
    "invoice_number": "INV-2026-001"
  }
}

⚙️ Configuration

Pass options directly to the PeppolValidatorClient constructor:

var client = new PeppolValidatorClient(
    apiKey: "your_api_key_here",
    baseUrl: "https://api.stanzaapi.com/peppol-validator"
);

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.