The getInfo method retrieves basic metadata about the payment device, including hardware and manufacturer information, serial numbers, and the current timestamp. This can be useful for device diagnostics, remote inventory, and configuration validation.

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 getInfo, as shown in the example below:

{
    "jsonrpc": "2.0",
    "method": "getInfo",
    "params": [
        "device"
    ],
    "id": "4309656"
}

Request Parameters

The table below describes the request parameters for this method:

NameTypeDescription
paramsarrayMust contain the value device

Response

A successful request will return the following response:

{
    "jsonrpc": "2.0",
    "id": "4309656",
    "result": {
        "statusCode": 0,
        "statusMessage": "ok",
        "manufacturer": "LANDI",
        "model": "APOS A8OVS",
        "serialNumber": "215RCA893253",
        "nayaxSerialNumber": "0904041822134284",
        "timeStampEpoch": 1721214919337,
        "timeStampString": "17/07/2024 14:15:19"
    }
}

Response Parameters

The table below describes the response parameters for this method:

NameTypeDescription
statusCodeintegerOperation status (0 = OK, others = errors TBD)
statusMessagestringStatus description (e.g., "ok")
datastringUser-provided input data