1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "clientName": "Acme Corporation",
10 "clientEmail": "billing@acmecorp.com",
11 "invoiceNumber": "INV-2023-001",
12 "companyName": "Your Business Name",
13 "companyDetails": """123 Business St, City, Country
14contact@example.com
15+1 234 567 890""",
16 "invoiceDate": "2023-09-15",
17 "dueDate": "2023-10-15",
18 "accentColor": "#213448",
19 "currencySymbol": "$",
20 "paymentTerms": "Payment due within 15 days.",
21 "paymentDetails": """Bank Name: XYZ Bank
22Account Number: 1234567890
23IFSC: xyz
24UPI: example@upi""",
25 "logoUrl": "https://example.com/logo.png",
26 "signatureUrl": "https://example.com/signature.png",
27}
28
29
30run = client.actor("powerful_bachelor/invoice-generator-pro").call(run_input=run_input)
31
32
33print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35 print(item)
36
37