Automatyzacja Faktur ze Stripe do XRechnung & ZUGFeRD
Przekształcaj standardowe faktury Stripe Invoicing w certyfikowane elektroniczne faktury XRechnung 3.0.2 XML oraz hybrydowe ZUGFeRD 2.3 PDF/A-3.
Customer billed; Stripe fires invoice.finalized.
Maps Leitweg-ID, calculates 2-decimal VAT, validates Schematron (<18ms).
XRechnung 3.0.2 XML + ZUGFeRD 2.3 PDF/A-3 delivered to customer.
Upuść tutaj fakturę PDF, plik XML UBL/CII lub CSV
Bezpieczne przetwarzanie w pamięci • Audyt bez rejestracji • Obsługuje inFakt, Fakturownia, wFirma, Comarch, Stripe i SAP
| # | Description | Qty | Unit Price | VAT | Line Net |
|---|
Raport Walidacji Schematron
AUDITING2-Minute Webhook Recipes (Node.js & Python)
Automate compliance directly in your billing pipeline. When Stripe finalizes an invoice, generate and send a certified hybrid ZUGFeRD PDF/A-3 or XRechnung XML automatically.
// Node.js (Express) Webhook Listener for Stripe Invoices
const express = require('express');
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);
const app = express();
app.post('/webhook', express.raw({ type: 'application/json' }), async (req, res) => {
const sig = req.headers['stripe-signature'];
const event = stripe.webhooks.constructEvent(req.body, sig, process.env.STRIPE_WEBHOOK_SECRET);
if (event.type === 'invoice.finalized') {
const invoice = event.data.object;
// Call EightyFive Compliance API to generate certified ZUGFeRD PDF/A-3 & XRechnung
const response = await fetch('https://einvoice.eightyfive.cloud/api/export-zugferd-pdf', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + process.env.EF_LICENSE_KEY
},
body: JSON.stringify({
invoiceNumber: invoice.number,
issueDate: new Date(invoice.created * 1000).toISOString().slice(0, 10),
currency: invoice.currency.toUpperCase(),
mandate: 'xrechnung-3.0',
seller: {
name: 'Your SaaS Company Inc.',
vatId: 'DE123456789',
country: 'DE',
address: 'Tech Park 1, 10115 Berlin'
},
buyer: {
name: invoice.customer_name || invoice.customer_email,
vatId: invoice.customer_tax_ids?.[0]?.value || '',
buyerReference: invoice.metadata?.leitweg_id || '04011000-12345-06',
country: invoice.customer_address?.country || 'DE'
},
lines: invoice.lines.data.map(item => ({
description: item.description,
quantity: item.quantity || 1,
unitPrice: (item.price.unit_amount / 100),
vatRate: item.tax_rates?.[0]?.percentage || 19,
vatCategory: 'S'
}))
})
});
const zugferdPdfBuffer = await response.arrayBuffer();
console.log('Generated compliant ZUGFeRD PDF/A-3:', zugferdPdfBuffer.byteLength, 'bytes');
}
res.json({ received: true });
});
# Python (FastAPI) Webhook Listener for Stripe Invoices
import os, requests
from fastapi import FastAPI, Request, Header, HTTPException
import stripe
stripe.api_key = os.getenv("STRIPE_SECRET_KEY")
app = FastAPI()
@app.post("/webhook")
async def stripe_webhook(request: Request, stripe_signature: str = Header(...)):
payload = await request.body()
event = stripe.Webhook.construct_event(payload, stripe_signature, os.getenv("STRIPE_WEBHOOK_SECRET"))
if event["type"] == "invoice.finalized":
invoice = event["data"]["object"]
# Transform into compliant German XRechnung 3.0.2 / ZUGFeRD
res = requests.post(
"https://einvoice.eightyfive.cloud/api/export-zugferd-pdf",
headers={"Authorization": f"Bearer {os.getenv('EF_LICENSE_KEY')}"},
json={
"invoiceNumber": invoice["number"],
"issueDate": invoice["created"],
"currency": invoice["currency"].upper(),
"mandate": "xrechnung-3.0",
"seller": {"name": "SaaS Corp", "vatId": "DE123456789", "country": "DE"},
"buyer": {
"name": invoice.get("customer_name"),
"buyerReference": invoice.get("metadata", {}).get("leitweg_id", "04011000-12345-06"),
"country": "DE"
},
"lines": [{"description": line["description"], "quantity": line["quantity"], "unitPrice": line["amount"]/100, "vatRate": 19} for line in invoice["lines"]["data"]]
}
)
with open(f"{invoice['number']}_zugferd.pdf", "wb") as f:
f.write(res.content)
return {"status": "success"}
Frequently Asked Questions About Stripe E-Invoicing
Direct normative answers aligned with CEN EN 16931-1, KoSIT XRechnung 3.0.2, OpenPeppol BIS Billing 3.0, and Saudi ZATCA Fatoora Phase 2 technical specifications.
Dlaczego standardowe faktury ze Stripe są odrzucane w Niemczech i UE?
Jak przekazać niemiecki identyfikator Leitweg-ID w Stripe?
Jak działa automatyczna integracja przez Stripe Webhook?
Czy obsługiwana jest procedura odwrotnego obciążenia (Reverse Charge)?
Przejrzyste Licencje Self-Service
Natychmiastowa aktywacja bez rozmów handlowych. Odblokuj pojedynczą pilną fakturę lub wybierz pakiet miesięczny.
Pakiet Pojedynczej Faktury
Przekonwertuj i napraw 1 pilną fakturę natychmiast. Bez subskrypcji.
- Unlimited fixes & XML/PDF exports for 7 full days
- Full KoSIT, EN 16931, Peppol & ZATCA Audit
- Export UBL 2.1 XML + Hybrid ZUGFeRD PDF/A-3
- Includes ZATCA Phase 2 TLV QR & Leitweg-ID Check
Plan Pro Eksporter & B2B
Do 250 faktur/mies., równoległy audyt 50 plików, Bearer REST API, certyfikaty audytu i zapisane profile.
- Up to 250 Certified E-Invoices / month
- Parallel Batch Audit (up to 50 files/batch)
- Bearer REST API & Audit Certificates PDF
- All Mandates: XRechnung, ZUGFeRD, Peppol, ZATCA, UAE & EU
- Saved Supplier IBAN, VAT ID & Buyer Routing Profiles
Biuro Rachunkowe & Multi-Podmiot
Nielimitowane numery NIP/VAT, 2 500 konwersji/mies., API Webhook i Portal Dostawców.
- Unlimited Client VAT / Tax Registration IDs
- Up to 2,500 Conversions & Audits / month
- Full REST Webhook API (Make, Zapier, n8n, SAP)
- Branded Supplier Compliance Gate Portal