1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "documents": [{
10 "documentNumber": "INV-1001",
11 "date": "2026-10-04",
12 "dueDate": "2026-11-03",
13 "buyer": {
14 "name": "Northwind Studio",
15 "address": """200 Market Street
16Springfield, IL 62701""",
17 },
18 "items": [
19 {
20 "description": "Website redesign",
21 "quantity": 1,
22 "unitPrice": 2400,
23 },
24 {
25 "description": "Hosting",
26 "details": "12 months",
27 "quantity": 12,
28 "unit": "mo",
29 "unitPrice": 15,
30 },
31 ],
32 "taxRate": 8.25,
33 }],
34 "defaults": {
35 "currency": "USD",
36 "seller": {
37 "name": "Example Design Co.",
38 "address": """1 Main Street
39Anytown, CA 94000""",
40 "email": "billing@example.com",
41 },
42 "paymentInstructions": "Bank transfer to account 000000, or pay online.",
43 "terms": "Payment due within 30 days.",
44 },
45}
46
47
48run = client.actor("examsens.ai/document-generator").call(run_input=run_input)
49
50
51print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55