1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "scopes": [
12 {
13 "id": "synthetic-cycle-count-shortage",
14 "sku": "SKU-AURORA-100",
15 "location": "WH-NORTH-BIN-A01",
16 "period": {
17 "start": "2026-09-01T00:00:00.000Z",
18 "end": "2026-09-02T00:00:00.000Z"
19 },
20 "opening": {
21 "quantity": "100",
22 "unit": "each"
23 },
24 "movements": [
25 {
26 "id": "MOV-AURORA-RECEIPT-001",
27 "type": "RECEIPT",
28 "quantity": "10",
29 "unit": "each",
30 "occurredAt": "2026-09-01T08:00:00.000Z"
31 },
32 {
33 "id": "MOV-AURORA-SHIPMENT-001",
34 "type": "SHIPMENT",
35 "quantity": "7",
36 "unit": "each",
37 "occurredAt": "2026-09-01T15:00:00.000Z"
38 }
39 ],
40 "systemClosing": {
41 "quantity": "103",
42 "unit": "each"
43 },
44 "physicalCount": {
45 "quantity": "100",
46 "unit": "each"
47 }
48 }
49 ]
50};
51
52
53const run = await client.actor("ceddl/inventory-movement-reconciliation-evidence-gate").call(input);
54
55
56console.log('Results from dataset');
57console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
58const { items } = await client.dataset(run.defaultDatasetId).listItems();
59items.forEach((item) => {
60 console.dir(item);
61});
62
63