1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "payload": {
9 "movements": [
10 {
11 "destination": "PLANT",
12 "movement_id": "D-0001",
13 "quantity": 35,
14 "sku": "BATH_TOWEL",
15 "source": "CLIENT_A",
16 "timestamp": "2026-01-05T08:00:00-05:00",
17 "type": "dispatch",
18 "unit": "pieces",
19 },
20 {
21 "destination": "CLIENT_A",
22 "movement_id": "R-0001",
23 "quantity": 20,
24 "sku": "BATH_TOWEL",
25 "source": "PLANT",
26 "timestamp": "2026-01-06T08:00:00-05:00",
27 "type": "receipt",
28 "unit": "pieces",
29 },
30 ],
31 "openings": [{
32 "account": "CLIENT_A",
33 "quantity": 100,
34 "sku": "BATH_TOWEL",
35 "unit": "pieces",
36 }],
37 "policy": {
38 "period": {
39 "end": "2026-02-01T00:00:00-05:00",
40 "start": "2026-01-01T00:00:00-05:00",
41 },
42 "timezone": "America/New_York",
43 "tracked_accounts": ["CLIENT_A"],
44 },
45 } }
46
47
48run = client.actor("usta/linenbalance-laundry-piece-reconciliation").call(run_input=run_input)
49
50
51print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55