Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine — Python SDK

PyPI version Python Versions 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, zero-dependency Python 3.8+ client library for Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine, built on the Stanza Micro-API Network. Intended for enterprise data pipelines, backend verification, and sub-5ms edge compute.


📦 Installation

pip install stanzaapi-peppol-validator

🚀 Quickstart

import os
from stanzaapi_peppol_validator import PeppolValidatorClient

# Initialize client (api_key optional for local evaluation)
client = PeppolValidatorClient(
    api_key=os.getenv("STANZA_API_KEY")
)

# Execute deterministic validation
response = client.validate("<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">...</Invoice>")

if response.get("success"):
    print("Verification Success:", response["data"])
else:
    print("Validation Error:", response.get("error"), response.get("code"))

📄 Example Response

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

⚙️ Client Options

Parameter Type Default Description
api_key Optional[str] os.getenv("STANZA_API_KEY") Your Stanza API Key. Required for production quotas.
base_url Optional[str] "https://api.stanzaapi.com/peppol-validator" Public edge API base URL.
timeout int 15 Request timeout in seconds.

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.

About

Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine (python client)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages