1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "bills": [
12 {
13 "id": "2026-0042",
14 "account": "CH4431999123000889012",
15 "creditor": {
16 "name": "Robert Schneider AG",
17 "street": "Rue du Lac",
18 "houseNumber": "1268",
19 "postalCode": "2501",
20 "city": "Biel",
21 "country": "CH"
22 },
23 "debtor": {
24 "name": "Pia-Maria Rutschmann-Schnyder",
25 "street": "Grosse Marktgasse",
26 "houseNumber": "28",
27 "postalCode": "9400",
28 "city": "Rorschach",
29 "country": "CH"
30 },
31 "amount": 1949.75,
32 "currency": "CHF",
33 "reference": "210000000003139471430009017",
34 "additionalInformation": "Order of 15 June 2026",
35 "language": "fr"
36 }
37 ]
38};
39
40
41const run = await client.actor("najx/swiss-qr-bill-generator").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51