Skip to content
logo
  • Products
    • Amwal Checkout
    • Merchant App
    • Merchant Control Panel
  • Pricing
  • Developers
  • About us
  • Contact Us
Edit Content
  • Products
    • Amwal Checkout
    • Merchant App
    • Merchant Control Panel
  • Pricing
  • Developers
  • About us
  • Contact Us
Login
Get Started
Login
Get Started
BA Booking

BA Booking

2
  • BA Booking overview
  • BA Booking Installation
amwalpay woocommerce

Woocommerce

2
  • Overview
  • Woocommerce Installation
CS-Cart

CS Cart

2
  • CS-Cart Overview
  • CS CART Installation
Shopify

Shopify

2
  • Shopify Overview
  • Shopify Installation
odoo

Odoo

2
  • Odoo Overview
  • Odoo Installation
whmcs

WHMCS

2
  • WHMCS Overview
  • WHMCS Installation
Magento

Magento

2
  • Magento 2 Overview
  • Magento Installation
Opencart

Opencart

2
  • OpenCart Overview
  • Opencart Installtion
ZenCart

ZenCart

2
  • ZenCart Overview
  • Zencart Installation
Drupal

Drupal

2
  • Drupal Overview
  • Drupal Installation
PrestaShop

PrestaShop

2
  • PrestaShop Overview
  • PrestaShop Installation
Contact Form 7

Contact Form 7

2
  • Contact Form 7 Overview
  • Contact Form 7 Installation
Joomla

Joomla

2
  • Joomla Overview
  • Joomla Installation
AMWAL INTEGRATED PAYMENT LINK

Integrated Payment Link

1
  • Implementation
Android SDk

Native Android SDK

2
  • Pre Requisites
  • Implementation
ios SDk

Native iOS SDK

3
  • Apple Pay Specific Configuration
  • Pre Requisites
  • Implementation
React SDk

React Native SDK

1
  • Implementation

Laravel Package

2
  • Installation
  • Configuration

Flutter SDK

2
  • Implementation
  • Flutter SDK Overview

SMARTBOX

5
  • Express ApplePay Implementation
  • Offsite Implementation
  • Pre Requisites
  • Implementation
  • Acquiring Session Token

Merchant Cloud Notification

1
  • Merchant Cloud Notification Integration Guide

Secure Hash Calculation

1
  • Secure Hash Calculation

Wp Travel Engine

1
  • Installation

Webhooks

8
  • Encryption and Decryption
  • Refund Payment
  • Void Payment
  • Get Transaction by ID
  • Transactions with Statistics
  • Transactions Summary
  • Delete Customer Token
  • Pay by Token
View Categories
  • Home
  • Amwal Pay Developer Portal
  • Webhooks
  • Get Transaction by ID

Get Transaction by ID

Overview #

The Get Transaction by ID API allows merchants to retrieve detailed information about a specific transaction using its unique transactionId.

The response provides transaction details including the transaction amount, payment method, card information, merchant and terminal information, transaction status, host response data, and available transaction actions.


Environment #

EnvironmentBase URL
UAT / Stagehttps://test.amwalpg.com:14443
Productionhttps://webhook.amwalpg.com

Endpoint #

POST

/Transaction/GetByTransactionId

Content Type #

application/json


Request #

Request Headers #

HeaderRequiredValue
Content-TypeYesapplication/json

Request Method #

POST

Sample Request #

{
    "transactionId": "7d8fcf50-f075-11ed-b792-9d1241b63248",
    "merchantId": 74417,
    "secureHashValue": "F4E6DA26CAA0A5B6C2EB5B350098E7E31BDD8C41E7BBD984091F36A87EBD6F54"
}

Request Parameters #

FieldRequiredTypeConstraintsDescriptionExample
transactionIdYesString—Unique identifier of the transaction to retrieve.7d8fcf50-f075-11ed-b792-9d1241b63248
merchantIdYesNumericMaximum 19 charactersUnique identifier of the merchant associated with the transaction.74417
secureHashValueYesString—Secure hash value used to validate the integrity and authenticity of the request.F4E6DA26CAA0A5B6C2EB5B350098E7E31BDD8C41E7BBD984091F36A87EBD6F54

Response #

Successful Response #

A successful request returns success: true and transaction details in the data object.

Sample Success Response #

{
    "success": true,
    "responseCode": null,
    "message": "Success",
    "data": {
        "idN": 344637,
        "id": "7d8fcf50-f075-11ed-b792-9d1241b63248",
        "transactionTime": "2023-05-18T15:00:44.8333333+00:00",
        "amount": 3000,
        "totalAmount": 0,
        "tips": 0,
        "convFees": 0,
        "cardNumber": "400000000XXXXXXXXXXX0002",
        "cardHolderName": "john doe",
        "cardHolderEmail": null,
        "cardHolderMobile": null,
        "responseCode": "0",
        "responseCodeName": "Approved",
        "isRefunded": false,
        "isCaptured": false,
        "transactionMethodId": 4,
        "hostId": 3,
        "currencyId": 512,
        "currency": "OMR",
        "transactionTypeId": 2,
        "transactionType": "Purchase",
        "originalTransactionId": null,
        "merchantBranchId": null,
        "stan": null,
        "terminalTypeId": 3,
        "requestSourceId": 6,
        "terminalType": null,
        "channelType": 1,
        "methodName": "Card ECommerce",
        "bankId": null,
        "aggregatorId": null,
        "aggregator": null,
        "transactionTypeDisplayName": "Purchase",
        "amsTransactionStatusId": null,
        "orderId": "6fa95e22-bdd8-4949-9857-9f2297804629",
        "merchantName": "LuluMasqat",
        "merchantId": 34440,
        "terminalId": 169151,
        "digitalTransaction": null,
        "hostData": {
            "HostName": "OmanNetPg",
            "TransactionId": "2222222222222",
            "Rrn": "123456789012",
            "TrackId": "T12345",
            "PaymentId": "11111111111111",
            "Result": "00",
            "Reason": "Transaction has been applied successfully."
        },
        "transactionActions": {
            "canRefund": false,
            "canVoid": false,
            "canCapture": false
        }
    },
    "errorList": null
}

Response Parameters #

General Response #

FieldTypeDescriptionExample
successBooleanIndicates whether the request was successfully processed.true
responseCodeStringResponse code returned by the API.00
messageStringResponse message describing the result.Success
dataObjectContains the detailed transaction information.Object
errorListString ArrayList of errors. This should be empty or null for a successful response.null

Transaction Identification #

FieldTypeDescriptionExample
data.idNNumericNumeric identifier associated with the transaction.344637
data.idStringUnique identifier of the transaction.7d8fcf50-f075-11ed-b792-9d1241b63248
data.transactionTimeStringDate and time when the transaction occurred.2023-05-18T15:00:44.8333333+00:00
data.orderIdStringOrder identifier associated with the transaction.6fa95e22-bdd8-4949-9857-9f2297804629

Transaction Amount and Fees #

FieldTypeDescriptionExample
data.amountNumericTransaction amount before tips or fees.3000
data.totalAmountNumericTotal transaction amount including tips and fees.0
data.tipsNumericAmount of tips included in the transaction.0
data.convFeesNumericConvenience fees associated with the transaction.0

Cardholder Information #

FieldTypeDescriptionExample
data.cardNumberStringMasked card number used for the transaction.400000000XXXXXXXXXXX0002
data.cardHolderNameStringName of the cardholder.john doe
data.cardHolderEmailStringEmail address of the cardholder.null
data.cardHolderMobileStringMobile phone number of the cardholder.null

Security: Card information is returned in masked form. Merchants should not attempt to store or expose sensitive card information beyond applicable security and compliance requirements.


Transaction Status #

FieldTypeDescriptionExample
data.responseCodeStringCode indicating the outcome of the transaction.0
data.responseCodeNameStringDescription associated with the transaction response code.Approved
data.isRefundedBooleanIndicates whether the transaction has been refunded.false
data.isCapturedBooleanIndicates whether the transaction has been captured.false
data.amsTransactionStatusIdNumericIdentifier for the transaction status within AMS.null

Transaction Type and Payment Method #

FieldTypeDescriptionExample
data.transactionTypeIdNumericIdentifier for the transaction type.2
data.transactionTypeStringDescription of the transaction type.Purchase
data.transactionTypeDisplayNameStringDisplay name of the transaction type.Purchase
data.transactionMethodIdNumericIdentifier for the transaction method used.4
data.methodNameStringName of the payment method used.Card ECommerce
data.originalTransactionIdStringIdentifier of the original transaction, where applicable.null

Terminal and Channel Information #

FieldTypeDescriptionExample
data.terminalTypeIdNumericIdentifier for the type of terminal used.3
data.terminalTypeStringDescription of the terminal type.null
data.terminalIdNumericUnique identifier of the terminal used.169151
data.channelTypeNumericCommunication channel through which the transaction was processed.1
data.requestSourceIdNumericIdentifier for the source of the transaction request.6
data.hostIdNumericIdentifier of the host system that processed the transaction.3
data.stanStringSystem Transfer Authorization Number associated with the transaction.null

Merchant Information #

FieldTypeDescriptionExample
data.merchantNameStringName of the merchant associated with the transaction.LuluMasqat
data.merchantIdNumericUnique identifier of the merchant.34440
data.merchantBranchIdNumericIdentifier of the merchant branch where the transaction occurred.null

Currency Information #

FieldTypeDescriptionExample
data.currencyIdNumericIdentifier of the currency used for the transaction.512
data.currencyStringName or code of the currency used.OMR

Bank and Aggregator Information #

FieldTypeDescriptionExample
data.bankIdNumericIdentifier of the bank associated with the transaction or card.null
data.aggregatorIdNumericIdentifier of the payment aggregator involved in the transaction.null
data.aggregatorObjectInformation about the payment aggregator involved in the transaction.null

Digital Transaction Information #

FieldTypeDescriptionExample
data.digitalTransactionObjectContains digital transaction information, when applicable.null

Host Response Data #

The data.hostData object contains information returned by the payment host.

FieldTypeDescriptionExample
data.hostData.HostNameStringName of the host system that processed the transaction.OmanNetPg
data.hostData.TransactionIdStringTransaction identifier assigned by the host system.2222222222222
data.hostData.RrnStringRetrieval Reference Number associated with the transaction.123456789012
data.hostData.TrackIdStringUnique tracking identifier associated with the transaction.T12345
data.hostData.PaymentIdStringPayment identifier assigned by the host system.11111111111111
data.hostData.ResultStringResult returned by the host system.00
data.hostData.ReasonStringDescription or reason returned by the host system.Transaction has been applied successfully.

Host Response Example #

"hostData": {
    "HostName": "OmanNetPg",
    "TransactionId": "2222222222222",
    "Rrn": "123456789012",
    "TrackId": "T12345",
    "PaymentId": "11111111111111",
    "Result": "00",
    "Reason": "Transaction has been applied successfully."
}

Transaction Actions #

The transactionActions object indicates which operations are currently available for the transaction.

FieldTypeDescriptionExample
data.transactionActions.canRefundBooleanIndicates whether the transaction can be refunded.false
data.transactionActions.canVoidBooleanIndicates whether the transaction can be voided.false
data.transactionActions.canCaptureBooleanIndicates whether the transaction can be captured.false

Example #

"transactionActions": {
    "canRefund": false,
    "canVoid": false,
    "canCapture": false
}

A value of true indicates that the corresponding transaction action is available.


Failure Response #

If the transaction cannot be retrieved, the API returns success: false along with a response code and error information.

Sample Failure Response #

{
    "success": false,
    "responseCode": "02",
    "message": "Merchant Not Found",
    "data": null,
    "errorList": [
        "Merchant Not Found"
    ]
}

Failure Response Parameters #

FieldTypeDescriptionExample
successBooleanIndicates whether the request was successfully processed.false
responseCodeStringResponse code returned by the API.02
messageStringResponse message describing the failure.Merchant Not Found
dataObjectTransaction data. This is null when the request fails.null
errorListString ArrayList containing one or more errors describing the failure.["Merchant Not Found"]

Common Failure Example #

Merchant Not Found #

{
    "success": false,
    "responseCode": "02",
    "message": "Merchant Not Found",
    "data": null,
    "errorList": [
        "Merchant Not Found"
    ]
}

The Merchant Not Found error indicates that the supplied merchantId could not be identified or is not valid for the requested operation.

Note: Use the appropriate merchant credentials and environment-specific configuration when switching between UAT and Production.

Updated on August 10, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Void PaymentTransactions with Statistics
Table of Contents
  • Overview
  • Environment
  • Endpoint
    • Content Type
  • Request
    • Request Headers
    • Request Method
    • Sample Request
  • Request Parameters
  • Response
    • Successful Response
      • Sample Success Response
  • Response Parameters
    • General Response
  • Transaction Identification
  • Transaction Amount and Fees
  • Cardholder Information
  • Transaction Status
  • Transaction Type and Payment Method
  • Terminal and Channel Information
  • Merchant Information
  • Currency Information
  • Bank and Aggregator Information
  • Digital Transaction Information
  • Host Response Data
    • Host Response Example
  • Transaction Actions
    • Example
  • Failure Response
    • Sample Failure Response
  • Failure Response Parameters
  • Common Failure Example
    • Merchant Not Found

Secure. Seamless – Powering Payments for Every Business.

Sign Up
Support

4th Floor, Majan Tower Building
North Al Ghubrah, P.O. Box 233, P.C 118
Muscat, Sultanate of Oman

: support@amwal-pay.com

📞 : +96824121845

Resources
  • Developers
  • Careers
Company
  • About us
  • Contact Us
  • Contact Sales
  • Partners

2026 © AmwalPay. All Rights Reserved.

  • Terms & Conditions
  • Privacy Policy