1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "asOf": "2026-10-01T12:00:00.000Z",
10 "currencyScales": {
11 "USD": 2,
12 "EUR": 2,
13 },
14 "transactions": { "csv": """processor,account,currency,id,payoutId,category,gross,fee,net,date
15stripe,merchant-001,USD,txn-001,po-001,charge,100.00,3.00,97.00,2026-09-20
16stripe,merchant-001,USD,txn-002,po-001,refund,-10.00,0.00,-10.00,2026-09-21
17stripe,merchant-001,USD,txn-002,po-001,refund,-10.00,0.00,-10.00,2026-09-21
18shopify,store-002,USD,00003,payout-002,charge,50.00,2.00,48.00,2026-09-22
19paypal,seller-003,EUR,adj-004,payout-003,charge,20.00,2.00,18.00,2026-09-22
20""" },
21 "payouts": { "csv": """processor,account,currency,id,amount,status,expectedArrivalDate,mode
22stripe,merchant-001,USD,po-001,87.00,paid,2026-09-25,automatic
23shopify,store-002,USD,payout-002,45.00,paid,2026-09-25,automatic
24paypal,seller-003,EUR,payout-003,18.00,paid,2026-09-26,automatic
25""" },
26 "deposits": { "csv": """processor,account,currency,id,amount,postingDate,reference
27stripe,merchant-001,USD,bank-001,87.00,2026-09-25,explicit-reference-001
28stripe,merchant-001,USD,unrelated-same-amount,87.00,2026-09-25,other-payment
29shopify,store-002,USD,bank-002,45.00,2026-09-25,explicit-reference-002
30paypal,seller-003,EUR,bank-003,18.00,2026-09-26,unlinked-credit
31""" },
32 "depositLinks": { "csv": """processor,account,currency,payoutId,depositId,allocation
33stripe,merchant-001,USD,po-001,bank-001,
34shopify,store-002,USD,payout-002,bank-002,
35""" },
36 "transactionCoverage": [
37 {
38 "processor": "stripe",
39 "account": "merchant-001",
40 "currency": "USD",
41 "startDate": "2026-09-01",
42 "endDate": "2026-10-01",
43 "complete": True,
44 },
45 {
46 "processor": "shopify",
47 "account": "store-002",
48 "currency": "USD",
49 "startDate": "2026-09-01",
50 "endDate": "2026-10-01",
51 "complete": True,
52 },
53 {
54 "processor": "paypal",
55 "account": "seller-003",
56 "currency": "EUR",
57 "startDate": "2026-09-01",
58 "endDate": "2026-10-01",
59 "complete": True,
60 },
61 ],
62 "bankCoverage": [
63 {
64 "processor": "stripe",
65 "account": "merchant-001",
66 "currency": "USD",
67 "startDate": "2026-09-01",
68 "endDate": "2026-10-01",
69 "complete": True,
70 },
71 {
72 "processor": "shopify",
73 "account": "store-002",
74 "currency": "USD",
75 "startDate": "2026-09-01",
76 "endDate": "2026-10-01",
77 "complete": True,
78 },
79 {
80 "processor": "paypal",
81 "account": "seller-003",
82 "currency": "EUR",
83 "startDate": "2026-09-01",
84 "endDate": "2026-10-01",
85 "complete": False,
86 },
87 ],
88}
89
90
91run = client.actor("h_murdock/processor-payout-exceptions").call(run_input=run_input)
92
93
94print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
95for item in client.dataset(run.default_dataset_id).iterate_items():
96 print(item)
97
98