1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "invoice": {
9 "invoice_number": "INV-2026-0001",
10 "issue_date": "2026-07-29",
11 "due_date": "2026-08-28",
12 "delivery_date": "2026-07-29",
13 "currency": "EUR",
14 "invoice_type_code": "380",
15 "buyer_reference": "BUYER-REF-1001",
16 "purchase_order_reference": "PO-2026-1001",
17 "seller": {
18 "name": "Example Supplier GmbH",
19 "address": {
20 "line1": "Musterstrasse 10",
21 "city": "Berlin",
22 "postal_code": "10115",
23 "country_code": "DE",
24 },
25 "vat_id": "DE123456789",
26 "registration_id": "HRB12345",
27 "endpoint_id": "4000001123452",
28 "endpoint_scheme": "0088",
29 "email": "billing@example-supplier.test",
30 "contact_name": "Billing Team",
31 "phone": "+49 30 1234567",
32 },
33 "buyer": {
34 "name": "Example Buyer GmbH",
35 "address": {
36 "line1": "Einkaufsweg 20",
37 "city": "Hamburg",
38 "postal_code": "20095",
39 "country_code": "DE",
40 },
41 "vat_id": "DE987654321",
42 "registration_id": "HRB54321",
43 "endpoint_id": "4000001987658",
44 "endpoint_scheme": "0088",
45 "email": "accounts@example-buyer.test",
46 },
47 "lines": [{
48 "id": "1",
49 "description": "Consulting services",
50 "quantity": "2",
51 "unit_code": "HUR",
52 "unit_price": "500.00",
53 "tax_rate": "19",
54 "tax_category": "S",
55 }],
56 "payment": {
57 "means_code": "30",
58 "reference": "INV-2026-0001",
59 "iban": "DE89370400440532013000",
60 "bic": "COBADEFFXXX",
61 },
62 "notes": ["Generated sample for technical preflight."],
63 "extensions": { "facturx": {
64 "profile": "en16931",
65 "language": "de",
66 "template": "modern",
67 "accent_color": "#184E77",
68 "footer_text": "Thank you for your business.",
69 } },
70 } }
71
72
73run = client.actor("kamerozkan/zugferd-facturx-pdf-generator").call(run_input=run_input)
74
75
76print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
77for item in client.dataset(run.default_dataset_id).iterate_items():
78 print(item)
79
80