query method allows the client application to poll the terminal for the current status of a specific transaction using its requestId or transactionId. This serves as a critical safety mechanism for handling network timeouts or application crashes, ensuring the POS and the terminal remain in sync regarding the payment outcome.
Use this method to:
- Recover transaction states by checking the final outcome if the original response was lost due to a connection drop.
- Verify the current status of a transaction—such as pending, authorized, or declined—without re-triggering the payment logic.
- Retrieve transaction metadata for local logging, auditing, and reconciliation support.
Requests
To query a transaction, you must provide the identifier associated with the original request. The following example shows a typical request:Parameter Definitions
The table below describes the parameters available for this request:Responses
The terminal returns the current known state of the transaction. If the transaction is still in progress, the response will reflect its current phase. The following example shows a typical response:Response Parameters
Thedata object will contain the most recent information available for that specific request: