1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "documentUrls": [
10 "https://raw.githubusercontent.com/itplr-kosit/xrechnung-testsuite/v2026-08-31/src/test/business-cases/standard/01.01a-INVOICE_ubl.xml",
11 "https://raw.githubusercontent.com/ZUGFeRD/mustangproject/b0c60e456e63596b3ec3ac76e94374dc6e109c4f/library/src/test/resources/ZF252_Beispiele/3.%20EN16931/E05_Einfach/E05_01_Einfach_fx.pdf",
12 ],
13 "invoices": [{
14 "number": "INV-1001",
15 "issueDate": "2026-11-04",
16 "dueDate": "2026-12-04",
17 "currency": "EUR",
18 "buyerReference": "991-12345-67",
19 "seller": {
20 "name": "Example Software GmbH",
21 "vatId": "DE123456789",
22 "electronicAddress": {
23 "value": "DE123456789",
24 "scheme": "9930",
25 },
26 "address": {
27 "line1": "Hauptstraße 1",
28 "city": "Berlin",
29 "postalCode": "10115",
30 "countryCode": "DE",
31 },
32 "contact": {
33 "name": "Billing",
34 "phone": "+49 30 000000",
35 "email": "billing@example.com",
36 },
37 },
38 "buyer": {
39 "name": "Kunde AG",
40 "vatId": "DE987654321",
41 "electronicAddress": {
42 "value": "DE987654321",
43 "scheme": "9930",
44 },
45 "address": {
46 "line1": "Marktplatz 3",
47 "city": "München",
48 "postalCode": "80331",
49 "countryCode": "DE",
50 },
51 },
52 "payment": {
53 "meansCode": "58",
54 "accounts": [{ "id": "DE02120300000000202051" }],
55 "remittanceInformation": "INV-1001",
56 },
57 "lines": [{
58 "name": "Consulting",
59 "quantity": 8,
60 "unitCode": "HUR",
61 "netPrice": 120,
62 "vatCategory": "S",
63 "vatRate": 19,
64 }],
65 }],
66}
67
68
69run = client.actor("bahs/e-invoice-reader-converter").call(run_input=run_input)
70
71
72print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
73for item in client.dataset(run.default_dataset_id).iterate_items():
74 print(item)
75
76