Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
---
slug: /posdealers/technical-operations/middleware/helper-existing-cashbox
title: PosSystem API Helper with Existing 1.2 CashBox
---
# How to use PosSystem API helper with an existing 1.2 cashbox

:::info summary

After reading this, you can configure the local PosSystem API Helper and use it with an existing Launcher 1.2 CashBox by setting up a new Launcher 1.3 CashBox alongside it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Launcher 1.3 cashbox is confusing.
Should we say Launcher 2.0 CashBox?


:::

## Introduction

This guide describes how to use the local PosSystem API Helper when you already have a running Launcher 1.2 CashBox. The Helper is configured in a new Launcher 1.3 CashBox and then connected to the existing 1.2 CashBox.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like upper


The process consists of the following main steps:

1. Add and configure the local PosSystem API Helper, following the same steps as described in [Local PosSystem API Helper](helper-possystemapi.md).
2. Create a new Launcher 1.3 CashBox with the Helper assigned.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here?


## Navigate to the existing 1.2 CashBox

To locate your existing Launcher 1.2 CashBox, navigate to `Configuration` / `CashBox` in the fiskaltrust Portal.

![existing-cashbox-1.png](images/existing-cashbox-1.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Navigate to `Configuration` / `CashBox`. |
| ![Number 2](../../images/numbers/circle-2o.png) | Use the search field to filter CashBoxes by name or ID to locate the existing one. |
| ![Number 3](../../images/numbers/circle-3o.png) | Identify the CashBox running Launcher 1.2 by checking the version displayed in the list. |
| ![Number 4](../../images/numbers/circle-4o.png) | Click the expand arrow to reveal the CashBox configuration inline. |

You can verify that the packages are running version 1.2 for example, the Queue will show a package such as `fiskaltrust.service.sqlite` in version 1.2.

## Create a new 1.3 CashBox

Before creating the CashBox, ensure you have already added and configured the local PosSystem API Helper as described in [Local PosSystem API Helper](helper-possystemapi.md).

To create a new CashBox, navigate to `Configuration` / `CashBox` and follow the steps below.

![new-cashbox-1.png](images/new-cashbox-1.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Navigate to `Configuration` / `CashBox`. |
| ![Number 2](../../images/numbers/circle-2o.png) | Click `Add` to create a new CashBox. |
| ![Number 3](../../images/numbers/circle-3o.png) | Enter a **description** for the new CashBox. |
| ![Number 4](../../images/numbers/circle-4o.png) | Select the appropriate **outlet**. |
| ![Number 5](../../images/numbers/circle-5o.png) | `Save` the new CashBox. |

Once saved, click `Edit by list` to configure the components of the new CashBox. Note that for this setup, only the PosSystem API Helper is added to this CashBox, no Queue or SCU is required here.

![new-cashbox-2.png](images/new-cashbox-2.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Scroll down to the **Helpers** section and locate the `fiskaltrust.Middleware.Helper.LocalPosSystemApi` Helper. |
| ![Number 2](../../images/numbers/circle-2o.png) | Activate the Helper by selecting its checkbox. |
| ![Number 3](../../images/numbers/circle-3o.png) | `Save` the CashBox configuration. |

![new-cashbox-3.png](images/new-cashbox-3.png)

At this point you have two CashBoxes: the original Launcher 1.2 CashBox and the new Launcher 1.3 CashBox with the PosSystem API Helper assigned. You can now proceed with connecting them.

## Connect the Helper to the existing 1.2 CashBox

To open the Helper configuration, navigate to `Configuration` / `CashBox` and follow the steps below.

![connect-helper-1.png](images/connect-helper-1.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Navigate to `Configuration` / `CashBox` and locate the new Launcher 1.3 CashBox. |
| ![Number 2](../../images/numbers/circle-2o.png) | Click the expand arrow to reveal the CashBox configuration inline. |
| ![Number 3](../../images/numbers/circle-3o.png) | Locate the PosSystem API Helper in the expanded view and click the gear icon next to it. |
| ![Number 4](../../images/numbers/circle-4o.png) | The Helper configuration window will open. |

In the configuration window, click `Add custom configuration` to reveal the Key and Value input fields.

![connect-helper-2.png](images/connect-helper-2.png)

Enter the following parameters one by one. Use the `+` button next to each row to add the next entry.

![connect-helper-3.png](images/connect-helper-3.png)

| Key | Value |
|-----|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `middlewareaccesstoken` | The **AccessToken** of the existing 1.2 CashBox. |
| `middlewarecashboxid` | The **CashBox ID** of the existing 1.2 CashBox. |
| `middlewareservicefolder` | `C:/ProgramData/fiskaltrust` _(optional, only required if the service folder of the 1.2 CashBox has been changed from the default. Set this to the custom path so the Helper knows where to find the Middleware data.)_ |

![connect-helper-4.png](images/connect-helper-4.png)

Scroll down to confirm the settings and click `Save`.

![connect-helper-5.png](images/connect-helper-5.png)

Both CashBoxes are now connected.

## Download Launcher 1.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add another part for downloading and running Launcher 2.0


Locate the existing 1.2 CashBox in the `Configuration` / `CashBox` view.

![download-launcher-12.png](images/download-launcher-12.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Click `Rebuild configuration` and wait for the success confirmation. |
| ![Number 2](../../images/numbers/circle-2o.png) | Click `Download` and select the correct Launcher 1.2 architecture for your system. |

## Run the Launcher 1.2

Once the Launcher package is downloaded, extract it and run `test.cmd` (or `test.sh` on Unix-based systems) to start the Middleware. For detailed instructions on starting the Launcher and installing it as a service, see [Launcher for Windows, Linux & macOS](launchers/desktop.md).

## Find the Helper URL

To get the Helper URL used for sending requests, navigate to `Configuration` / `CashBox`.

![helper-url-1.png](images/helper-url-1.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | Locate the Launcher 1.3 CashBox and click `Rebuild configuration`. Wait for the success confirmation. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

| ![Number 2](../../images/numbers/circle-2o.png) | Click the expand arrow to reveal the CashBox configuration inline. |
| ![Number 3](../../images/numbers/circle-3o.png) | The Helper URL is displayed below the PosSystem API Helper entry. Use this URL to send requests to the Middleware. |

## Test the PosSystem API Helper

Once the Middleware is running, verify that the PosSystem API Helper is working correctly by sending a test request. The easiest way to do this is to use the [fiskaltrust Developer Portal](https://developer.fiskaltrust.eu/), which provides an interactive interface for sending requests to the Middleware and inspecting the responses.

![fiskaltrustfordevpage.png](images/fiskaltrustfordevpage.png)

Select **POS System API** from the available options.

![fiskaltrustfordev_selectmarket.png](images/fiskaltrustfordev_selectmarket.png)

Select your market and then click **Settings** in the top-right corner.

![fiskaltrustfordev_setsettings_fr.png](images/fiskaltrustfordev_setsettings_fr.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 1](../../images/numbers/circle-1o.png) | In the `Environment` section, select `Local Middleware`. |
| ![Number 2](../../images/numbers/circle-2o.png) | In the `Middleware Endpoint` field, enter the Helper URL from the Launcher 1.3 CashBox found in the previous step. |
| ![Number 3](../../images/numbers/circle-3o.png) | Copy the PIN from the `Configuration` / `CashBox` page, enter it in the field below, then click `Pair`. A confirmation message should appear as shown below. |

![pairedpin.png](images/pairedpin.png)

| steps | description |
|:---------------------:|-------------|
| ![Number 4](../../images/numbers/circle-4o.png) | The **CashBox ID** and **Access Token** fields will be populated with the values of the existing **1.2 CashBox**. |
| ![Number 5](../../images/numbers/circle-5o.png) | Click `Test Connection` — a green **201** response confirms the Helper is working correctly. |

Close **Settings**. You can now use the available endpoints to send requests to the Middleware and verify the Helper's functionality.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading