Get transactions from the gateway

Get transactions with the transaction ID or the merchant transaction ID

If a payment successfully passes the gateway to be processed, you can obtain the transaction result using the transaction reports in the Reporting API.


Get a transaction using the transaction ID

To get a transaction report by the transaction ID, send a GET request over HTTPS to the /query/{id} endpoint.

Here is an example in cURL format. Replace the {id} with the transaction ID and use your own channel ID and auth token.

curl -G https://eu-test.oppwa.com/v3/query/{id} \
 -d "entityId={channelId}" \
 -H "Authorization: Bearer {auth_token}"

Here is an example response.

{
  "result":{
    "code":"800.900.300",
    "description":"user authorization failed"
  },
  "buildNumber":"cdc35b9b47cbd49c68b5209f22c12ce72a676733@2025-10-02 16:34:45 +0000",
  "timestamp":"2025-10-08 11:57:48.486+0000",
  "ndc":"8a8294174b7ecb28014b9699220015ca_54963f3d525b4829a95e1a8c7a090b40"
}

Get transactions using your merchant transaction ID

You can also get transactions using a merchant transaction ID as a query parameter. This will return all the transactions in a list. Replace the {merchant_transaction_id} with your merchant transaction ID and use your own channel ID and auth token.

curl -G https://eu-test.oppwa.com/v3/query \
 -d "merchantTransactionId={merchant_transaction_id}" \
 -d "entityId={channelId}" \
 -H "Authorization: Bearer {auth_token}"

For more details, see the Gateway documentation on reporting.