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 Started for more details on how the requests are structured and sent.
- The
methodfield must be set togetTransactionByUid. - The service must be set to
ashraitin theparams.
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:Response Parameters
The table below describes the response parameters for this method.| Name | Type | Description |
|---|---|---|
statusCode | integer | Transaction status. A value of 0 indicates a successful (approved) transaction. |
statusMessage | string | Transaction message (e.g., ok) |
mutag | integer | Card brand |
solek | integer | Acquirer |
manpik | integer | Card Issuer |
uid | string | Transaction unique identifier |
posEntryMode | integer | POS Entry Mode, type of card transaction. Values are:
0 (MSR),
5 (CTLS MSR),
40 (Contact EMV),
50 (Phone),
51 (Signature only),
80 (Fallback (err)),
81 (Fallback (no AID)) |
cardNumber | string | Masked personal account number (PAN) |
rrn | string | Transaction authorization number from the authorized entity |
issuerAuthNum | string | Issuer authorization number |
acquirerMerchantID | string | Merchant ID in the acquirer system |
authCodeManpik | integer | Code of authorization. Values are: 0 (Unauthorized transaction), 1 (Authorized by issuer),
2 (Declined by issuer),
3 (Stip approved ABS),
4 (Stip declined ABS),
5 (Voice approval),
6 (Voice declined),
7 (Approved by issuer pre-auth),
8 (Approved by card) |
gatewayToken | string | Gateway token of the card |
appVersion | string | Payment application version |
retailerId | string | Terminal retailer Id |
ecrNo | string | POS identifier |
vuid | string | Vendor unique identifier |
tranCode | string | Transaction Code |
merchantReceipt | array of key/value | Merchant receipt to print or save |
customerReceipt | array of key/value | Customer receipt to print |