Documentation
Invoice-api.xhub API Documentation
Everything you need to create, validate, and send e-invoices. From quickstart guides to the full API reference.
bash
1# 1. Set API key2export XHUB_API_KEY=sk_live_...3 4# 2. Create e-invoice5curl -X POST https://service.invoice-api.xhub.io/api/v1/invoice/DE/XRECHNUNG/generate \6 -H "Authorization: Bearer $XHUB_API_KEY" \7 -H "Content-Type: application/json" \8 -d '{9 "seller": {10 "name": "Deine Firma GmbH",11 "vatId": "DE123456789"12 },13 "buyer": {14 "name": "Kunde AG",15 "vatId": "DE987654321"16 },17 "items": [18 { "description": "Beratung", "quantity": 1, "unitPrice": 1500, "taxRate": 19 }19 ]20 }'21 22# ✓ Response: {"success": true, "format": "XRECHNUNG", ...}API Reference
View all APIsCore
Invoice Creator
Generate XRechnung & ZUGFeRD e-invoices
POST /api/v1/invoice/{country}/{format}/generateComing Soon
Validator
Validate e-invoices against KoSIT schemas
POST /api/v1/invoice/{country}/validateCore
Parser
Extract structured data from e-invoices
POST /api/v1/invoice/{country}/{format}/parseComing Soon
Visualizer
Render e-invoices as PDF/HTML
POST /api/v1/invoice/renderComing Soon
Archive
GoBD-compliant long-term archiving
POST /api/v1/invoice/archiveComing Soon
Peppol Gateway
Send e-invoices via the Peppol network
POST /api/v1/peppol/sendCode Examples
No SDK required – just use HTTP requests in your preferred language.
curl
Universally usable in any terminal
curl -X POST https://service.invoice-api.xhub.io/api/v1/invoice/DE/XRECHNUNG/generate \...Node.js
With fetch() or any HTTP client
const res = await fetch('https://service.invoice-api.xhub.io/api/v1/invoice/DE/XRECHNUNG/generate', {...Python
With requests or httpx
response = requests.post(...PHP
With Guzzle or cURL
$response = $client->post('https://service.invoice-api.xhub.io/api/v1/invoice/DE/XRECHNUNG/generate', [...Quick Start in 3 Steps
1
Create API Key
Sign up and create an API key in the dashboard.
sk_live_abc123...2
Send Request
Send an HTTP request to our REST API.
POST /api/v1/invoice/DE/XRECHNUNG/generate3
Receive Invoice
Receive a valid XRechnung or ZUGFeRD back.
{ "status": "valid" }