1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "cover": {
10 "originalContract": "100000.00",
11 "netChanges": "5000.00",
12 "contractToDate": "105000.00",
13 "completedStored": "42000.00",
14 "retainage": "4200.00",
15 "earnedLessRetainage": "37800.00",
16 "previousCertificates": "20000.00",
17 "currentDue": "18000.00",
18 "balanceToFinish": "67200.00",
19 },
20 "lines": [
21 {
22 "id": "MEP-01",
23 "scheduled": "100000.00",
24 "previousWork": "25000.00",
25 "currentWork": "10000.00",
26 "stored": "5000.00",
27 "completedStored": "40000.00",
28 "retainage": "4000.00",
29 "balance": "60000.00",
30 },
31 {
32 "id": "CO-01",
33 "scheduled": "5000.00",
34 "previousWork": "0.00",
35 "currentWork": "2000.00",
36 "stored": "0.00",
37 "completedStored": "2000.00",
38 "retainage": "200.00",
39 "balance": "3000.00",
40 },
41 ],
42 "approvedChanges": [{
43 "id": "CO-01",
44 "amount": "5000.00",
45 }],
46 "previousCertified": "20000.00",
47}
48
49
50run = client.actor("wheresprada/construction-pay-application-check").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57