Creator
POSThttps://service.invoice-api.xhub.io/api/v1/invoice/de/xrechnung/generate
XRechnung oder ZUGFeRD aus JSON erstellen
Quick Guide
- •Currently only available for Germany. More countries coming soon.
- •Use the Validator to check your XMLs before sending.
- •Content-Type:
application/json - •Auth: Bearer Token (Simuliert)
Requestapplication/json
Format:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Klicke auf "Run" um eine Antwort zu sehen
Code Integration
curl -X POST https://service.invoice-api.xhub.io/api/v1/invoice/de/xrechnung/generate \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"invoiceNumber": "RE-2025-001",
"type": "invoice",
"issueDate": "2025-01-15",
"dueDate": "2025-02-15",
"currency": "EUR",
"seller": {
"name": "Muster GmbH",
"vatId": "DE811128135",
"street": "Musterstraße 1",
"postalCode": "10115",
"city": "Berlin",
"countryCode": "DE",
"email": "info@muster.de",
"phone": "+49 30 12345678",
"registration": "HRB 12345 B",
"ceo": "Max Mustermann",
"bankAccount": {
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX"
}
},
"buyer": {
"name": "Beispiel AG",
"vatId": "DE136695976",
"street": "Beispielweg 42",
"postalCode": "80331",
"city": "München",
"countryCode": "DE"
},
"items": [
{
"position": 1,
"description": "Beratungsleistung",
"quantity": 10,
"unit": "HUR",
"unitPrice": 150,
"taxRate": 19,
"netAmount": 1500,
"taxAmount": 285,
"grossAmount": 1785
},
{
"position": 2,
"description": "Softwarelizenz",
"quantity": 1,
"unit": "C62",
"unitPrice": 499,
"taxRate": 19,
"netAmount": 499,
"taxAmount": 94.81,
"grossAmount": 593.81
}
],
"taxSummary": [
{
"taxRate": 19,
"netAmount": 1999,
"taxAmount": 379.81
}
],
"subtotal": 1999,
"total": 2378.81,
"paymentTerms": {
"dueDays": 30,
"description": "Zahlbar innerhalb von 30 Tagen"
},
"countrySpecific": {
"countryCode": "DE",
"leitwegId": "991-12345-67"
}
}'Recent Calls
Locally savedNo requests executed yet.