getTransactionByUid
The getTransactionByUid method returns a transaction by its unique identifier (UID). If no UID is provided, the method returns the last transaction.
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 togetTransactionByUid.
- The service must be set to ashraitin theparams.
{
    "jsonrpc":"2.0",
    "method":"getTransactionByUid",
    "params":[
        "ashrait",
        {
           "originalUID":"24071711405408830122531"
        }
    ],
    "id":"123454352"
}Request Parameters
The table below describes the request parameters for this method.
| Name | Type | Description | 
|---|---|---|
| originalUID | string | Optional. The UID of the transaction to retrieve. If omitted, the last transaction is returned. | 
Response
A successful request will return a response similar to the one in the code block below:
{  
   "jsonrpc":"2.0",
   "result":{  
    "statusCode": 0,
    "statusMessage": "TRANSACTION APPROVED",
    "appVersion": "01.05.22",
    "retailerId": "0883012013",
    "ecrNo": "1",
    "vuid": "ee5e7af5-7719-4726-992f-0eb2915b992a",
    "tranCode": 1,
    "currency": "376",
    "amount": 100,
    "mutag": 1,
    "mutagName": "Mastercard",
    "manpik": 2,
    "solek": 2,
    "cardNumber": "*********",
    "cardNumberOriginalLength": "************************",
    "expDate": "2305",
    "cardName": "Mastercard",
    "tokenizedCardNumber": "c8ae19356dd1d7e946165fab67a14516",
    "tranType": 1,
    "posEntryMode": 5,
    "isClub": false,
    "isPrepaid": false,
    "creditTerms": 1,
    "uid": "23031212432508830123729",
    "rrn": "948767075   ",
    "authCodeManpik": 1,
    "issuerAuthNum": "0652073",
    "acquirerMerchantID": "6543505",
    "sysTraceNumber": "01001001",
    "authorizationCommStat": "{\"connectRetries\":0,\"connectTotalTime\":555,\"authorizationTotalTime\":744,\"smallBlockedTotalTime\":0}",
    "merchantReceipt":[  
         {"fieldName":"׳¡׳›׳•׳","fieldValue":"1000"},
         {"fieldName":"ATC","fieldValue":"0289"}
      ],
      "customerReceipt":[  
         {"fieldName":"׳¡׳›׳•׳","fieldValue":"1000"},
         {"fieldName":"ATC","fieldValue":"0289"}
      ]
   },
   "id":1
}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