Shopify Integration
Coming SoonAutomatic e-invoices for your Shopify store. XRechnung and ZUGFeRD with every order – ready for the B2B mandate from 2025.
Shopify App in Development
Our official Shopify App is currently in development. In the meantime, you can integrate Invoice-api.xhub via Shopify Webhooks and automation platforms like n8n or Make.com.
Features
Automatic E-Invoice
Automatically create XRechnung or ZUGFeRD with every order
B2B Detection
Automatic detection of B2B customers by VAT ID
Peppol Delivery
Direct delivery to business customers via Peppol network
PDF Attachment
Hybrid ZUGFeRD PDF automatically attached to order confirmation
Webhook Integration (Available Now)
Shopify Webhooks
Use Shopify Webhooks to automatically create e-invoices for orders.
orders/createNew order created
orders/fulfilledOrder fulfilled
orders/paidOrder paid
customers/createNew customer registered
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 with n8n/Make
Connect Shopify with Invoice-api.xhub via an automation platform of your choice.
- 1
Create Shopify Webhook
Admin → Settings → Notifications → Webhooks
- 2
Create n8n/Make Workflow
Trigger: Webhook, Action: HTTP Request
- 3
Transform Data
Shopify format → Invoice-api.xhub format
- 4
Create E-Invoice
POST /api/v1/invoice/de/xrechnung/generate to 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};Use Cases
B2B Orders
Automatic XRechnung for all B2B customers with VAT ID
- 1Customer provides VAT ID at checkout
- 2Shopify webhook on payment receipt
- 3Invoice-api.xhub creates XRechnung
- 4E-invoice sent via email
Government Orders
XRechnung with routing ID for public sector clients
- 1Capture routing ID as custom field
- 2Order is placed
- 3Create XRechnung with routing ID
- 4Direct delivery via Peppol
Hybrid Invoices
ZUGFeRD PDF as default for all orders
- 1Every order triggers workflow
- 2Create ZUGFeRD 2.1 COMFORT
- 3Attach PDF to confirmation email
- 4Archiving in Invoice-api.xhub