1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "invoice": {
9 "invoice_number": "INV-2026-0042",
10 "vendor_name": "Acme Cloud Components Ltd.",
11 "vendor_tax_id": "DE123456789",
12 "issue_date": "2026-11-28",
13 "due_date": "2026-12-28",
14 "currency": "USD",
15 "tax_rate": 0.0825,
16 "line_items": [
17 {
18 "description": "Dedicated Compute Node",
19 "quantity": 3,
20 "unit_price": 19.99,
21 "line_total": 59.97,
22 },
23 {
24 "description": "Data Transfer Tier",
25 "quantity": 2,
26 "unit_price": 0.15,
27 "line_total": 0.3,
28 },
29 ],
30 "subtotal": 60.27,
31 "tax_amount": 4.97,
32 "total": 65.24,
33 } }
34
35
36run = client.actor("snowy_divide_r1t/structured-invoice-line-validator").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43