getRetailerInfo
The getRetailerInfo method allows you to verify the merchant's name and ID. This is useful for confirming that a terminal was configured correctly after installation or setup.
Request
JSON-RPC 2.0All 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, ensure to configure the following:
- The methodfield must be set togetRetailerInfo.
- The service must be set to ashraitin theparams.
{
    "jsonrpc": "2.0",
    "method": "getRetailerInfo",
    "params": [
        "ashrait"
    ],
    "id": "136bdaa3"
}Request Parameters
This method doesn't require any parameters beyond the standard service name.
Response
A successful call returns the retailer's identification details.
{
    "jsonrpc": "2.0",
    "id": "136bdaa3",
    "result": {
        "id": "0883012013",
        "name": "MODULARITY 12",
        "transmitTime": 1721217720
    }
}Response Parameters
The table below describes the response parameters for this method.
| Name | Type | Description | 
|---|---|---|
| id | string | The unique identifier for the retailer. | 
| name | string | The registered name of the retailer. | 
| transmitTime | integer | The time the information was transmitted, in Unix epoch format. | 
Updated about 1 month ago