1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feeSchedules": [{
10 "id": "stripe_us_card",
11 "rules": [{
12 "percent": "2.9",
13 "fixed": "0.30",
14 }],
15 }],
16 "text": {
17 "items": """id,Type,Amount,Currency,Created (UTC)
18ch_1,charge,100.00,usd,2026-10-01 09:12:44
19ch_2,charge,250.00,usd,2026-10-01 14:03:10
20ch_3,charge,40.00,usd,2026-10-02 08:45:31
21re_1,refund,25.00,usd,2026-10-02 16:20:05""",
22 "settlements": """id,Amount,Currency,Arrival Date
23po_1,314.25,usd,2026-10-05""",
24 },
25}
26
27
28run = client.actor("davidcondrey/wl-reconcile-ledger").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35