UNPKG

@casoon/invoice-generator

Version:

Generate PDF invoices, XRechnung XML, and ZUGFeRD PDF/A-3 from JSON data with TypeScript support

80 lines 2.16 kB
{ "sender": { "name": "Max Mustermann", "company": "Musterfirma GmbH", "address": { "street": "Musterstraße 123", "postalCode": "12345", "city": "Musterstadt" }, "contactInfo": { "phone": "+49 123 456789", "mobile": "+49 987 654321", "email": "max.mustermann@example.com", "website": "www.musterfirma.de" }, "businessOwner": "Max Mustermann", "vatId": "DE123456789" }, "recipient": { "name": "Testkunde AG", "address": { "street": "Teststraße 456", "postalCode": "54321", "city": "Teststadt" } }, "details": { "invoiceNumber": "RE2025001", "customerNumber": "K001", "invoiceDate": "01.02.25", "deliveryDate": "01.02.25", "servicePeriod": "01-03/2025", "dueDate": "08.02.25", "vatId": "DE123456789" }, "salutation": { "greeting": "Sehr geehrte Damen und Herren,", "introduction": "wir bedanken uns für Ihren Auftrag und erlauben uns, wie folgt zu berechnen:" }, "items": [ { "description": "Webhosting Premium, Gebühr für example.com - Premium Hosting mit SSL-Zertifikat, automatischen Backups und 99.9% Uptime-Garantie", "quantity": 3, "unit": "Stück", "vatRate": 19, "unitPrice": 25.00, "total": 75.00, "currency": "EUR" }, { "description": "Domain-Management, Gebühr für example.de - Domain-Registrierung und DNS-Management mit automatischer Verlängerung", "quantity": 1, "unit": "Stück", "vatRate": 19, "unitPrice": 15.00, "total": 15.00, "currency": "EUR" } ], "totals": { "netAmount": 90.00, "vatRate": 19.00, "vatAmount": 17.10, "grossAmount": 107.10, "currency": "EUR" }, "paymentInfo": { "paymentTerms": "Zahlbar ohne Abzug bis zum 08.02.25", "dueDate": "08.02.25", "bank": "Testbank AG", "accountHolder": "Max Mustermann", "iban": "DE12 3456 7890 1234 5678 90", "bic": "TESTDE12XXX" }, "metadata": { "createdWith": "Invoice Generator", "creationDate": "2025-02-01T07:30:37Z", "filename": "test-invoice.json" } }