addSubRetailer
The addSubRetailer method is used to load sub-retailers into the terminal. This method can only be used if the main retailer is defined as RAV-SAPAK at Shva.
UsedoPeriodicAfter loading new retailers, you should use the
doPeriodicmethod.
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.
In the request, ensure to configure the following:
- The
methodfield must be set toaddSubRetailer. - The service must be set to
ashraitin theparams.
The request needs to include the retailerId list.
{
"jsonrpc": "2.0",
"method": "addSubRetailer",
"id": "123454352",
"params": [
"ashrait",
{
"retailerId": [
"0883806",
"0884806"
]
}
]
}Request Parameters
The table below describes the request parameters for this method.
| Name | Type | Description |
|---|---|---|
retailerId | array | List of retailers. |
Response
A successful request will return the following response:
{
"jsonrpc": "2.0",
"id": "123454352",
"result": {
"statusCode": 0,
"statusMessage": "OK"
}
}Response Parameters
The table below describes the response parameters for this method.
Name | Type | Description |
|---|---|---|
| integer | Transaction status. A value of |
| string | Transaction message (e.g., |
| integer | Card brand |
| integer | Acquirer |
| integer | Card Issuer |
| string | Transaction unique identifier |
| integer | POS Entry Mode, type of card transaction. Values are:
|
| string | Masked personal account number (PAN) |
| string | Transaction authorization number from the authorized entity |
| string | Issuer authorization number |
| string | Merchant ID in the acquirer system |
| integer | Code of authorization. Values are:
|
| string | Gateway token of the card |
| string | Payment application version |
| string | Terminal retailer Id |
| string | POS identifier |
| string | Vendor unique identifier |
| string | Transaction Code |
| array of key/value | Merchant receipt to print or save |
| array of key/value | Customer receipt to print |
Updated about 1 month ago