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": "Fornitore Esempio SRL",
19 "address": {
20 "line1": "Via Roma 10",
21 "city": "Milano",
22 "postal_code": "20121",
23 "country_code": "IT",
24 "region": "MI",
25 },
26 "vat_id": "IT12345678901",
27 "tax_id": "12345678901",
28 "registration_id": "MI-1234567",
29 },
30 "buyer": {
31 "name": "Cliente Esempio SRL",
32 "address": {
33 "line1": "Via Torino 20",
34 "city": "Roma",
35 "postal_code": "00184",
36 "country_code": "IT",
37 "region": "RM",
38 },
39 "vat_id": "IT98765432109",
40 "tax_id": "98765432109",
41 },
42 "lines": [{
43 "id": "1",
44 "description": "Servizi di consulenza",
45 "quantity": "2",
46 "unit_code": "HUR",
47 "unit_price": "500.00",
48 "tax_rate": "22",
49 "tax_category": "S",
50 }],
51 "payment": {
52 "means_code": "30",
53 "reference": "INV-2026-0001",
54 "iban": "IT60X0542811101000000123456",
55 },
56 "notes": [],
57 "extensions": { "fatturapa": {
58 "transmission_format": "FPR12",
59 "document_type": "TD01",
60 "recipient_code": "ABC1234",
61 "transmission_progressive": "00001",
62 "seller_tax_regime": "RF01",
63 } },
64 } }
65
66
67run = client.actor("kamerozkan/fatturapa-invoice-generator").call(run_input=run_input)
68
69
70print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
71for item in client.dataset(run.default_dataset_id).iterate_items():
72 print(item)
73
74