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

ECR

5
  • ECR SDK for iOS Cocoapods
  • ECR SDK for iOS SPM
  • Android ECR
  • Flutter ECR
  • React Native ECR
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

4
  • Express ApplePay Implementation
  • Offsite Implementation
  • Pre Requisites
  • Implementation

Merchant Cloud Notification

1
  • Merchant Cloud Notification Integration Guide

Secure Hash Calculation

1
  • Secure Hash Calculation

Wp Travel Engine

1
  • Wp Travel Engine Installation

Webhooks

12
  • Get Order by Merchant Reference
  • Get Transaction by Merchant Reference
  • Acquiring Session Token
  • Initialize Payment
  • 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 Order by Merchant Reference

Get Order by Merchant Reference

This API retrieves orders associated with a specific merchantReference.


1. Environments #

EnvironmentBase URLFull Endpoint
UAT / Testhttps://test.amwalpg.com:14443https://test.amwalpg.com:14443/GetOrderByMerchantReference
Productionhttps://webhook.amwalpg.comhttps://webhook.amwalpg.com/GetOrderByMerchantReference

Note: Complete all development and certification against the UAT environment. Switch to the production URL only after AMWAL Pay confirms production enablement for this API on your merchant profile.


2. Endpoint #

HTTP Method: POST

Path:

/GetOrderByMerchantReference

UAT #

https://test.amwalpg.com:14443/GetOrderByMerchantReference

Production #

https://webhook.amwalpg.com/GetOrderByMerchantReference

3. Prerequisites #

Before using this API, ensure that:

  • You have an active AMWAL Pay merchant account.
  • A valid numeric merchantId is available.
  • Your merchant is enabled to use the required webhook/API functionality.
  • A valid merchant secure-hash key has been provided by AMWAL Pay.
  • Requests are sent over HTTPS.
  • The request uses Content-Type: application/json.

4. Headers #

HeaderRequiredValue
Content-TypeYesapplication/json

5. Request #

The request requires the merchant ID, merchant reference, request timestamp, and a valid secureHashValue.

Sample Request #

{
    "merchantId": 182121,
    "merchantReference": "344223",
    "requestDateTime": "20260824105500",
    "secureHashValue": "YOUR_SECURE_HASH"
}

Request Parameters #

Field NameTypeRequiredDescriptionSample Value
merchantIdIntegerYesUnique AMWAL Pay merchant identifier.182121
merchantReferenceStringYesMerchant’s order/invoice reference. The API searches for orders matching this value.344223
requestDateTimeStringYesRequest timestamp used for authentication and replay protection.20260824105500
secureHashValueStringYesHMAC-SHA256 secure hash generated using the merchant secure-hash key.1370505A11CB...

6. Secure Hash Generation #

Every request must include a valid secureHashValue.

Hash Input #

Exclude secureHashValue from the hash calculation.

The fields should be sorted alphabetically and concatenated in the following format:

merchantId={merchantId}&merchantReference={merchantReference}&requestDateTime={requestDateTime}

For the sample request:

merchantId=182117&merchantReference=344223&requestDateTime=20260824105500

Generate an HMAC-SHA256 hash using the merchant secure-hash key and convert the resulting digest to uppercase hexadecimal.

Example:

{
    "secureHashValue": "YOUR_GENERATED_HASH"
}

Security: Never expose or store the merchant secure-hash key in client-side JavaScript, mobile applications, or other publicly accessible code.


7. API Response #

The API returns a standard response envelope containing the matching orders in the data array.

A single merchantReference may return multiple orders.

Sample Successful Response #

{
    "success": true,
    "responseCode": null,
    "message": "Success",
    "data": [
        {
            "orderId": "4ef3bb32-d320-42fc-8466-edc5cdfd85df",
            "orderIdN": 27000,
            "orderKey": "4QNJ8KOMG5",
            "merchantReference": "432",
            "amount": 1.501,
            "currency": 512,
            "currencyName": "OMR",
            "isPaid": true,
            "status": "Paid",
            "expireDateTime": "2026-09-01T19:22:14.731558",
            "payerName": "",
            "requestDateTime": "2026-09-03T16:48:11.163431",
            "captureDatetime": "2026-09-03T16:51:44.371479",
            "serviceDescription": null,
            "udf": "{\"v1\":\"test value 1\",\"v2\":\"test value   2\",\"v3\":\"test value 3\",\"v4\":\"test value 4\"}",
            "receiptNumber": "624915651668",
            "cardNumber": "40000000*****002",
            "cardType": "VISA",
            "authCode": "293030"
        }
    ],
    "errorList": null
}

8. Response Parameters #

8.1 Response Envelope #

Field NameTypeDescriptionSample Value
successBooleanIndicates whether the API request was successfully processed.true
responseCodeString / NullAMWAL Pay response code. May be null for a successful response.null
messageStringHuman-readable response message.Success
dataArrayContains the list of orders matching the supplied merchantReference.[...]
errorListArray / NullContains validation or processing errors.null

8.2 Order Object #

Each object inside the data array represents an order.

Field NameTypeDescriptionSample Value
orderIdString (GUID)Unique identifier of the order.3e072b86-4921-467b-85e0-4a7750c38505
orderIdNIntegerInternal numeric order identifier.26990
orderKeyStringUnique order key generated by AMWAL Pay.O053KVCNME
merchantReferenceStringMerchant reference associated with the order.344223
amountDecimalOrder amount in major currency units.1.501
currencyIntegerNumeric currency identifier.512
currencyNameStringCurrency name corresponding to the currency ID.OMR
isPaidBooleanIndicates whether the order has been successfully paid.true
statusString Indicates whether the order has been Paid, Not Paid, or Cancelled by customer.Paid
expireDateTimeString (DateTime)Date and time when the order/payment link expires.2026-09-01T18:03:32.641189
payerNameStringName of the payer, when available.""
serviceDescriptionString / NullDescription of the service/order, when available.null
udfString (JSON)User-defined field containing custom merchant data passed during payment initialization.{"v1":"test value 1","v2":"test value 2","v3":"test value 3","v4":"test value 4"}
receiptNumberNumericUnique receipt number associated with the payment624915651668
cardNumberNumericCard number used for payment400000******0002
cardTypeStringCard type used for paymentVisa
authCodeNumericAuthorization code293030
requestDateTimeString (DateTime)Order creation datetime2026-09-03T16:48:11.163431
captureDatetimeString (DateTime)Payment paid datetime2026-09-03T16:51:44.371479

#


11. cURL Example #

UAT #

curl --location 'https://test.amwalpg.com:14443/GetOrderByMerchantReference' \
--header 'Content-Type: application/json' \
--data '{
    "merchantId": 182131,
    "merchantReference": "344223",
    "requestDateTime": "20260824105500",
    "secureHashValue": "YOUR_SECURE_HASH"
}'

Production #

curl --location 'https://webhook.amwalpg.com/GetOrderByMerchantReference' \
--header 'Content-Type: application/json' \
--data '{
    "merchantId": 182131,
    "merchantReference": "344223",
    "requestDateTime": "20260824105500",
    "secureHashValue": "YOUR_SECURE_HASH"
}'
Updated on September 7, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Get Transaction by Merchant Reference
Table of Contents
  • 1. Environments
  • 2. Endpoint
    • UAT
    • Production
  • 3. Prerequisites
  • 4. Headers
  • 5. Request
    • Sample Request
    • Request Parameters
  • 6. Secure Hash Generation
    • Hash Input
  • 7. API Response
    • Sample Successful Response
    • 8. Response Parameters
      • 8.1 Response Envelope
    • 8.2 Order Object
    • 11. cURL Example
      • UAT
      • Production

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