getSubRetailer method retrieves a list of all sub-retailers loaded on the terminal and shows their current status.
Request
JSON-RPC 2.0All methods in TweezerComm follow a JSON-RPC 2.0 structure. See Integration for more details on how the requests are structured and sent.
- The
methodfield must be set togetSubRetailer. - The service must be set to
ashraitin theparams.
Request Parameters
This method doesnโt require any parameters beyond the standard service name.Response
A successful call returns the list of sub-retailers and their status.Response Parameters
Theresult object contains the following fields:
| Name | Type | Description |
|---|---|---|
statusCode | integer | The status of the operation. 0 indicates success. |
statusMessage | string | A message describing the status, such as โOKโ. |
subRetailers | array of objects | A list containing sub-retailer objects. See table below. |
Sub-Retailer Object Structure
Each object in thesubRetailers array has the following structure:
| Name | Type | Description |
|---|---|---|
retailerId | string | The unique identifier for the sub-retailer. |
retailerName | string | The name of the sub-retailer (may be empty). |
isActivated | boolean | true if the sub-retailer was added to the terminal successfully. |
isStartWork | boolean | true only after a doPeriodic call has been successfully run. |