Shopify Integration
Coming SoonAutomatische E-Rechnungen für deinen Shopify-Shop. XRechnung und ZUGFeRD bei jeder Bestellung – ready für die B2B-Pflicht ab 2025.
Shopify App in Entwicklung
Unsere offizielle Shopify App ist aktuell in Entwicklung. In der Zwischenzeit kannst du invoice-api.xhub über Shopify Webhooks und Automatisierungsplattformen wie n8n oder Make.com integrieren.
Features
Automatische E-Rechnung
Bei jeder Bestellung automatisch XRechnung oder ZUGFeRD erstellen
B2B-Erkennung
Automatische Erkennung von B2B-Kunden anhand USt-ID
Peppol-Versand
Direkter Versand an Geschäftskunden via Peppol-Netzwerk
PDF-Anhang
Hybride ZUGFeRD-PDF automatisch an Bestellbestätigung anhängen
Webhook-Integration (Jetzt verfügbar)
Shopify Webhooks
Nutze Shopify Webhooks um bei Bestellungen automatisch E-Rechnungen zu erstellen.
orders/createNeue Bestellung erstellt
orders/fulfilledBestellung versendet
orders/paidBestellung bezahlt
customers/createNeuer Kunde registriert
1// Shopify Webhook → invoice-api.xhub2// Konfiguriere in Shopify Admin → Settings → Notifications → Webhooks3 4// Webhook Payload von Shopify (orders/paid)5{6 "id": 820982911946154508,7 "email": "kunde@beispiel.de",8 "billing_address": {9 "company": "Musterfirma GmbH",10 "address1": "Musterstraße 123",11 "city": "Berlin",12 "zip": "10115",13 "country_code": "DE"14 },15 "line_items": [16 {17 "title": "Premium Widget",18 "quantity": 2,19 "price": "99.00"20 }21 ],22 "tax_lines": [23 { "rate": 0.19, "price": "37.62" }24 ]25}Integration mit n8n/Make
Verbinde Shopify mit invoice-api.xhub über eine Automatisierungsplattform deiner Wahl.
- 1
Shopify Webhook erstellen
Admin → Settings → Notifications → Webhooks
- 2
Workflow in n8n/Make erstellen
Trigger: Webhook, Action: HTTP Request
- 3
Daten transformieren
Shopify-Format → invoice-api.xhub-Format
- 4
E-Rechnung erstellen
POST /api/v1/invoice/de/xrechnung/generate an invoice-api.xhub API
1// n8n/Make Workflow: Shopify → invoice-api.xhub2 3// 1. Trigger: Shopify Webhook (orders/paid)4// 2. Transform: Shopify → invoice-api.xhub Format5// 3. Action: POST https://service.invoice-api.xhub.io/api/v1/invoice/de/xrechnung/generate6 7const invoiceData = {8 type: "zugferd-2.1",9 seller: {10 name: "Dein Shop Name",11 vatId: "DE123456789",12 address: {13 street: "Shopstraße 1",14 city: "Hamburg",15 zip: "20095",16 country: "DE"17 }18 },19 buyer: {20 name: shopifyOrder.billing_address.company,21 vatId: shopifyOrder.customer.tax_id, // Falls vorhanden22 address: {23 street: shopifyOrder.billing_address.address1,24 city: shopifyOrder.billing_address.city,25 zip: shopifyOrder.billing_address.zip,26 country: shopifyOrder.billing_address.country_code27 }28 },29 items: shopifyOrder.line_items.map(item => ({30 description: item.title,31 quantity: item.quantity,32 unitPrice: parseFloat(item.price),33 vat: 1934 })),35 reference: `SHOP-${shopifyOrder.id}`36};Anwendungsfälle
B2B-Bestellungen
Automatische XRechnung für alle B2B-Kunden mit USt-ID
- 1Kunde gibt USt-ID bei Checkout an
- 2Shopify Webhook bei Zahlungseingang
- 3invoice-api.xhub erstellt XRechnung
- 4E-Rechnung wird per Email versendet
Behörden-Aufträge
XRechnung mit Leitweg-ID für öffentliche Auftraggeber
- 1Leitweg-ID als Custom Field erfassen
- 2Bestellung wird aufgegeben
- 3XRechnung mit Leitweg-ID erstellen
- 4Direkter Versand via Peppol
Hybrid-Rechnungen
ZUGFeRD-PDF für alle Bestellungen als Standard
- 1Jede Bestellung triggert Workflow
- 2ZUGFeRD 2.1 COMFORT erstellen
- 3PDF an Bestätigungsmail anhängen
- 4Archivierung in invoice-api.xhub