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.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.
method field needs to be set to getInfo, as shown in the example below:
Request Parameters
The table below describes the request parameters for this method:| Name | Type | Description |
|---|---|---|
params | array | Must contain the value device |
Response
A successful request will return the following response:Response Parameters
The table below describes the response parameters for this method:| Name | Type | Description |
|---|---|---|
statusCode | integer | Operation status (0 = OK, others = errors TBD) |
statusMessage | string | Status description (e.g., “ok”) |
data | string | User-provided input data |