/einvoice • v0.1.0
EN 16931 E-Invoice (Peppol BIS / XRechnung / Factur-X) Pre-Flight API
Deterministic EN 16931 UBL 2.1 & CII XML validator for Peppol BIS 3.0, XRechnung, and Factur-X ahead of EU ViDA.
Deterministic CoreZero-PHI / Zero-PCISHA-256 Audit Receipts
Core REST Endpoints
Base path: https://api.contextapi.dev/einvoice (or /api/einvoice via local portal proxy).
| Method | Path | Cost | Capabilities |
|---|---|---|---|
| POST | /v1/einvoice/evaluate | 1 credit | Deterministic EN 16931 UBL 2.1 & CII XML validator for Peppol BIS 3.0, XRechnung, and Factur-X ahead of EU ViDA. |
| GET | /v1/einvoice/audit/{receipt_id} & /v1/einvoice/audit | 1 credit | Retrieve tenant-isolated SHA-256 einvoi_* audit receipts and retention metadata. |
Quickstart & Hosted MCP Integration
Call REST directly or register https://api.contextapi.dev/einvoice/mcp in your AI agent.
Quickstart — Deterministic Pre-Flight Evaluation
curl -X POST "https://api.contextapi.dev/einvoice/v1/einvoice/evaluate" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"identifier": "SAMPLE-001", "jurisdiction": "EU"}'→ {"status": "PASS", "valid": true, "audit_receipt": {"receipt_id": "einvoi_..."}}Hosted Streamable HTTP MCP (1 Tool + Resource)
Register in .cursor/mcp.json (or use npx -y mcp-remote for Claude Desktop):
{
"mcpServers": {
"contextapi-einvoice": {
"url": "https://api.contextapi.dev/einvoice/mcp",
"headers": { "X-API-Key": "${CONTEXTAPI_API_KEY}" }
}
}
}- evaluate_einvoiceTool
Lets AI agents validate EN 16931 / Peppol BIS / XRechnung / Factur-X invoices before submission and store a SHA-256 audit receipt.
- contexteinvoice://vault/statusResource
Exposes live audit vault receipt counts and service readiness for agent pre-flight health checks.