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, asynchronous Rust client library for Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine, built on the Stanza Micro-API Network. Uses pure Rustls TLS (zero C/OpenSSL dependencies) and Tokio for maximum concurrency and safety.
- 🌐 Online Interactive Sandbox: Test your inputs live
- 📚 API Reference & Schemas: View documentation on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
Add to your Cargo.toml:
[dependencies]
stanzaapi-peppol-validator = "1.0.0"
tokio = { version = "1.0", features = ["full"] }Or use cargo add:
cargo add stanzaapi-peppol-validatoruse stanzaapi_peppol_validator::PeppolValidatorClient;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Reads STANZA_API_KEY from environment automatically
// Public edge default: https://api.stanzaapi.com/peppol-validator
let client = PeppolValidatorClient::new(None, None);
let response = client.validate("<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">...</Invoice>").await?;
if response.success {
println!("Verification Success: {:?}", response.data);
} else {
eprintln!("Validation Error: {:?}", response.error);
}
Ok(())
}{
"success": true,
"data": {
"valid": true,
"profile": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"invoice_number": "INV-2026-001"
}
}- Peppol BIS Billing 3.0 & EN 16931 E-Invoice Engine Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
MIT © Stanza — Powered by Stanza.