1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "left": [
12 {
13 "id": "INV-100",
14 "amount": "1000.00",
15 "currency": "GBP",
16 "date": "2026-09-01",
17 "scope": "example-ledger",
18 "partyKey": "customer-a",
19 "reference": "INV-100"
20 },
21 {
22 "id": "INV-200",
23 "amount": "1200.00",
24 "currency": "GBP",
25 "date": "2026-09-01",
26 "scope": "example-ledger",
27 "partyKey": "customer-b",
28 "reference": "INV-200"
29 },
30 {
31 "id": "INV-301",
32 "amount": "300.00",
33 "currency": "GBP",
34 "date": "2026-09-01",
35 "scope": "example-ledger",
36 "partyKey": "customer-c"
37 },
38 {
39 "id": "INV-302",
40 "amount": "200.00",
41 "currency": "GBP",
42 "date": "2026-09-01",
43 "scope": "example-ledger",
44 "partyKey": "customer-c"
45 },
46 {
47 "id": "INV-400",
48 "amount": "250.00",
49 "currency": "GBP",
50 "date": "2026-09-01",
51 "scope": "example-ledger",
52 "partyKey": "customer-d"
53 }
54 ],
55 "right": [
56 {
57 "id": "PAY-100",
58 "amount": "1000.00",
59 "currency": "GBP",
60 "date": "2026-09-01",
61 "scope": "example-ledger",
62 "partyKey": "customer-a",
63 "reference": "INV-100"
64 },
65 {
66 "id": "PAY-201",
67 "amount": "700.00",
68 "currency": "GBP",
69 "date": "2026-09-01",
70 "scope": "example-ledger",
71 "partyKey": "customer-b",
72 "reference": "INV-200"
73 },
74 {
75 "id": "PAY-202",
76 "amount": "500.00",
77 "currency": "GBP",
78 "date": "2026-09-01",
79 "scope": "example-ledger",
80 "partyKey": "customer-b",
81 "reference": "INV-200"
82 },
83 {
84 "id": "PAY-300",
85 "amount": "500.00",
86 "currency": "GBP",
87 "date": "2026-09-01",
88 "scope": "example-ledger",
89 "partyKey": "customer-c"
90 },
91 {
92 "id": "PAY-401",
93 "amount": "250.00",
94 "currency": "GBP",
95 "date": "2026-09-01",
96 "scope": "example-ledger",
97 "partyKey": "customer-d"
98 },
99 {
100 "id": "PAY-402",
101 "amount": "250.00",
102 "currency": "GBP",
103 "date": "2026-09-01",
104 "scope": "example-ledger",
105 "partyKey": "customer-d"
106 }
107 ]
108};
109
110
111const run = await client.actor("zahi90/reconproof").call(input);
112
113
114console.log('Results from dataset');
115console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
116const { items } = await client.dataset(run.defaultDatasetId).listItems();
117items.forEach((item) => {
118 console.dir(item);
119});
120
121