Last Transaction Query

Last updated: August 1, 2026  |  Guide version: 1.0.8

Used to get the last transaction information from the backend. Mainly called if there is a problem while getting the transaction result. In certain scenarios (app crash, timeout, etc.) this API can be used to check the status of a transaction if it is unknown. "OrderID" is a client reference ID which should be created and passed to the payment app while initiating the transaction; once queried, this orderID is returned so the merchant app can verify it matches to determine transaction status.

Call example

App2AppRequest app2AppRequest = new App2AppRequest();

// Optional to add register/config parameters

app2AppService.getLastTxn(app2AppRequest, eventListener);

Request and response

Request

"lastTxn": {
  "registerParameters": {
    "terminalId": "00192118",
    "merchantId": "000000009041042",
    "activationCode": "testCode"
  }
}

Success response

"appLastTxn": {
  "transaction_id": "302684069304",
  "transaction_date": "230126",
  "amount": "700",
  "approvalCode": "00",
  "card_number": "0516",
  "orderId": "167471801514",
  "authorizationId": "00",
  "approvedStatus": "1",
  "transactionType": "200",
  "stan": "00",
  "txnMti": "00",
  "transaction_time": "102726",
  "batchNumber": "00"
}

Error response

"response": {
  "a2aCode": "1008",
  "a2aMessage": "No transaction found"
}

See also