1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "statement_format": "AUTO",
12 "statement_payload": `:20:STMT20261122
13:25:DE89370400440532013000
14:28C:00123/001
15:60F:C261121EUR10000,00
16:61:2611221122C2500,00NTRFINV-2026-881//BANKREF01
17:86:166?20INVOICE INV-2026-881 PAYMENT?31DE12500105170648489890?32ACME GMBH
18:62F:C261122EUR12500,00
19-`,
20 "erp_entries": [
21 {
22 "erp_id": "ERP-INV-881",
23 "date": "2026-11-22",
24 "amount": "2500.00",
25 "direction": "CREDIT",
26 "reference": "INV-2026-881",
27 "counterparty": "ACME GMBH"
28 }
29 ]
30};
31
32
33const run = await client.actor("digicrem/digicrem-multibank-statement-bridge").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43