1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "invoices": [{
9 "invoiceNumber": "INV-001",
10 "invoiceDate": "2024-01-15",
11 "dueDate": "2024-02-15",
12 "currency": "USD",
13 "seller": {
14 "name": "Acme Corporation",
15 "address": "123 Business Street",
16 "city": "New York",
17 "state": "NY",
18 "zipCode": "10001",
19 "country": "USA",
20 "email": "billing@acme.com",
21 "phone": "+1-555-0100",
22 },
23 "client": {
24 "name": "Client Company Inc",
25 "address": "456 Client Avenue",
26 "city": "Boston",
27 "state": "MA",
28 "zipCode": "02101",
29 "country": "USA",
30 "email": "ap@client.com",
31 },
32 "lineItems": [
33 {
34 "description": "Web Development Services",
35 "quantity": 40,
36 "unitPrice": 150,
37 "taxRate": 10,
38 "discount": 0,
39 },
40 {
41 "description": "Hosting Services",
42 "quantity": 1,
43 "unitPrice": 500,
44 "taxRate": 10,
45 "discount": 50,
46 },
47 ],
48 "paymentTerms": "Net 30",
49 "notes": "Thank you for your business!",
50 "template": "modern",
51 "primaryColor": "#007bff",
52 }] }
53
54
55run = client.actor("haimantika/invoice-apify-actor").call(run_input=run_input)
56
57
58print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
59for item in client.dataset(run["defaultDatasetId"]).iterate_items():
60 print(item)
61
62