removeSubRetailer

The removeSubRetailer method removes a sub-retailer from the terminal.

Request

📘

JSON-RPC 2.0

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

In the request, ensure to configure the following:

  • The method field must be set to removeSubRetailer .
  • The service must be set to ashrait in the params.
{
    "jsonrpc": "2.0",
    "method": "removeSubRetailer",
    "params": [
        "ashrait",
        {
            "retailerId": "0883012"
        }
    ],
    "id": "123454352"
}

Request Parameters

The params array contains the service name followed by a dictionary.

NameTypeDescription
retailerIdstringThe ID of the sub-retailer to remove.

Response

A successful call returns a status code and message.

{
    "jsonrpc": "2.0",
    "id": "123454352",
    "result": {
        "statusCode": 0,
        "statusMessage": "OK"
    }
}

Response Parameters

The result object contains the following fields:

NameTypeDescription
statusCodeintegerThe status of the operation. 0 indicates success.
statusMessagestringA message describing the status, such as "OK".