1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "invoiceNumber": "INV-001",
10 "issueDate": "",
11 "dueDate": "",
12 "fromName": "Your Company Name",
13 "fromAddress": "Your Address",
14 "fromEmail": "you@example.com",
15 "toName": "Client Name",
16 "toAddress": "Client Address",
17 "toEmail": "client@example.com",
18 "items": [
19 {
20 "description": "Web Development Service",
21 "quantity": 1,
22 "unitPrice": 500,
23 },
24 {
25 "description": "Hosting (1 year)",
26 "quantity": 2,
27 "unitPrice": 50,
28 },
29 ],
30 "taxRate": 0,
31 "discountPercent": 0,
32 "currency": "$",
33 "notes": "Payment due within 30 days.",
34 "generateHTML": True,
35}
36
37
38run = client.actor("moving_beacon-owner1/invoice-generator-input").call(run_input=run_input)
39
40
41print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
42for item in client.dataset(run["defaultDatasetId"]).iterate_items():
43 print(item)
44
45