1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "invoices": [{
10 "vendor_id": "VEND-42",
11 "vendor_name": "Precision Parts Ltd",
12 "invoice_number": "INV-2026-505",
13 "invoice_date": "2026-11-22",
14 "currency": "USD",
15 "po_number": "PO-8801",
16 "subtotal": "1000.00",
17 "tax_total": "180.00",
18 "grand_total": "1180.00",
19 "lines": [{
20 "sku": "BOLT-M8",
21 "description": "Steel Bolt M8",
22 "quantity": "100",
23 "unit_price": "10.00",
24 "tax_rate_pct": "18.00",
25 "line_total": "1000.00",
26 }],
27 }],
28 "purchase_orders": [],
29}
30
31
32run = client.actor("digicrem/digicrem-ap-invoice-edi-validator").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39