1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "watchId": "customer-watch-1",
10 "mode": "snapshot",
11 "sourceStatus": "complete",
12 "rightsAttestation": {
13 "customerControlsOrIsAuthorizedToUseData": True,
14 "noCredentialsOrSecretsSubmitted": True,
15 "unfetchedReferencePolicyAccepted": True,
16 "attestedAt": "2026-08-09T09:00:00Z",
17 "attestorId": "customer-operator-1",
18 },
19 "containers": [{
20 "containerNumber": "MSCU1234566",
21 "carrier": "customer-declared-carrier",
22 "billOfLading": None,
23 "bookingNumber": None,
24 "promisedEta": "2026-08-12T12:00:00Z",
25 "freeTimeEnd": "2026-08-15T12:00:00Z",
26 "originUnlocode": "NLRTM",
27 "destinationUnlocode": "USLAX",
28 }],
29 "events": [{
30 "eventId": "customer-event-1",
31 "containerNumber": "MSCU1234566",
32 "eventType": "gate_in",
33 "eventTime": "2026-08-08T09:00:00Z",
34 "receivedAt": "2026-08-08T09:05:00Z",
35 "locationUnlocode": "NLRTM",
36 "plannedLocationUnlocode": None,
37 "plannedTime": None,
38 "source": "customer-system",
39 "reference": "ref:customer-evidence-1",
40 }],
41 "tariffAssumptions": {
42 "currency": "USD",
43 "demurragePerDay": 0,
44 "detentionPerDay": 0,
45 },
46}
47
48
49run = client.actor("zinin/container-exception-evidence").call(run_input=run_input)
50
51
52print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
53for item in client.dataset(run.default_dataset_id).iterate_items():
54 print(item)
55
56