1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "authorizedDataOnly": True,
10 "disputes": [
11 {
12 "disputeId": "du_demo_alpha",
13 "sourceRecordId": "exportDisputeA",
14 "provider": "stripe",
15 "reason": "product_not_received",
16 "status": "needs_response",
17 "providerDeadline": "2026-10-14T12:00:00Z",
18 "orderId": "orderAlpha",
19 "fulfillmentType": "physical",
20 },
21 {
22 "disputeId": "du_demo_beta",
23 "sourceRecordId": "exportDisputeB",
24 "provider": "stripe",
25 "reason": "subscription_canceled",
26 "status": "needs_response",
27 "orderId": "orderBeta",
28 "fulfillmentType": "digital",
29 },
30 {
31 "disputeId": "du_demo_gamma",
32 "provider": "stripe",
33 "reason": "duplicate",
34 "status": "won",
35 "providerDeadline": "2026-10-13T12:00:00Z",
36 },
37 ],
38}
39
40
41run = client.actor("afkdigital/dispute-evidence-readiness-checker").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48