The setConfig method applies configuration settings to the terminal. These can include settings such as deposit server preferences, enabling the manual interface, or forcing a reset. It is recommended that you call setConfig on each device initialization to ensure consistent configuration.

Request

📘

JSON-RPC 2.0

All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Get Startedfor more details on how the requests are structured and sent.

In the request, the method field needs to be set to setConfig and the params must include the service name and a dictionary of configuration fields, as shown in the example request below:

{
    "jsonrpc": "2.0",
    "method": "setConfig",
    "id": "1234567890",
    "params": [
        "device",
        {
            "ashraitServer": "NAYAX",
            "manualInterface": true,
            "reset": true
        }
    ]
}

Request Parameters

See the table below for a description of the available request parameters for this method.

NameTypeDescription
ashraitServerstringThe deposit server to use (e.g., "NAYAX").
manualInterfaceboolEnable or disable manual card entry.
resetboolWhether to apply the configuration with reset.

Response

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

{
    "jsonrpc": "2.0",
    "id": "1234567890",
    "result": {
        "statusCode": 0
    }
}

Response Parameters

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

NameTypeDescription
statusCodeintegerOperation status (0 = success)