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.
- 🌐 Live Web Playground: Test your inputs online
- 📚 API Documentation: View full schema on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
pip install stanzaapi-peppol-validatorimport 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")){
"success": true,
"data": {
"valid": true,
"profile": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"invoice_number": "INV-2026-001"
}
}| 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. |
- Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
MIT © Stanza — Powered by Stanza.