Skip to main content
The getConfig method is used to retrieve the current terminal configuration. It returns a complete configuration object with various system settings, such as printer usage, supported transaction types, and UI behavior. This method is often used with setConfig to read and update the terminal configuration.

Request

JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Started for more details on how the requests are structured and sent.
In the request, the method field needs to be set to getConfig, and the params must include the fixed value device as shown in the example request below:

Request Parameters

The table below describes the request parameters for this method:

Response

A successful request will return a response similar to the one in the code block below:

Response Parameters

Below is a table with all the possible response parameters and their description: