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
  • Transactions with Statistics

Transactions with Statistics

Overview #

The Transactions with Statistics API allows merchants to retrieve transaction records along with aggregated transaction statistics for a specified date range.

The response provides:

  • Total sales for the requested period
  • Total number of transactions
  • Available merchant balance
  • Detailed transaction records
  • Transaction status information
  • Available transaction actions
  • Pagination information

Environment #

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

Endpoint #

POST

/Transaction/GetTransactionsWithStatistics

Content Type #

application/json


Request #

Request Headers #

HeaderRequiredValue
Content-TypeYesapplication/json

Request Method #

POST

Sample Request #

{
    "currentPage": 1,
    "dateFrom": "22/02/2022",
    "dateTo": "22/04/2023",
    "merchantId": "62142",
    "pageSize": 10,
    "requestDateTime": "2024-04-22 19:42:16",
    "secureHashValue": "DA1757DDC762454D447CE31ECF1CC1A16DE1737924A9FD0ED0D6454CDFC2672B"
}

Request Parameters #

FieldRequiredTypeConstraintsDescriptionExample
merchantIdYesNumericMaximum 19 charactersUnique identifier of the merchant.74417
currentPageNoNumericMaximum 10 charactersPage number to retrieve. Starts from 1. Default value is 1.1
pageSizeNoNumericMaximum 10 charactersNumber of records returned per page. Default value is 20.20
dateFromYesStringValid date in dd/MM/yyyy formatStart date used to filter transactions.08/05/2023
dateToYesStringValid date in dd/MM/yyyy formatEnd date used to filter transactions.09/10/2023
requestDateTimeYesStringValid UTC date/timeDate and time when the request was generated.2023-03-08T20:51:38.401Z
secureHashValueYesString—Secure hash value used to validate the integrity and authenticity of the request.84EB3BF8F62EF25717D1E9E13C3CFB719A890980BBF2631AFD8965182ADE1754

Date Format: dateFrom and dateTo must be provided in dd/MM/yyyy format.

Pagination: currentPage starts from 1. If currentPage and pageSize are not provided, their default values are 1 and 20, respectively.


Response #

Successful Response #

A successful request returns the transaction statistics and a paginated collection of transaction records.

Sample Success Response #

{
    "success": true,
    "responseCode": null,
    "message": "Success",
    "data": {
        "transactionsSummary": {
            "totalSale": 1000,
            "totalSaleFormatted": "1000.000",
            "numberOfTransactions": 2,
            "availableBalance": 1994,
            "availableBalanceFormatted": "1994.000"
        },
        "records": [
            {
                "id": "3f461f43-a01b-49a7-b000-5f951a3ebb8c",
                "idN": 344928,
                "transactionTypeName": "Purchase",
                "transactionDateTime": "2023-07-22T23:39:30.1227703+03:00",
                "amount": 500,
                "currency": "OMR",
                "responseCodeName": "Approved",
                "merchantName": "74417-LuluMasqatGrocery",
                "transactionTypeDisplayName": "Purchase",
                "merchantRefNumber": 10020,
                "merchantId": 74417,
                "terminalId": 380024,
                "dueAmount": 497,
                "isSettled": false,
                "isRefunded": false,
                "isCaptured": false,
                "isCredit": true,
                "transactionActions": {
                    "canRefund": false,
                    "canVoid": true,
                    "canCapture": false
                }
            },
            {
                "id": "d61e92aa-6709-471f-866d-0d43ca5186c0",
                "idN": 344926,
                "transactionTypeName": "Purchase",
                "transactionDateTime": "2023-07-22T23:38:01.0719229+03:00",
                "amount": 500,
                "currency": "OMR",
                "responseCodeName": "Approved",
                "merchantName": "74417-LuluMasqatGrocery",
                "transactionTypeDisplayName": "Purchase",
                "merchantRefNumber": 10020,
                "merchantId": 74417,
                "terminalId": 380024,
                "dueAmount": 497,
                "isSettled": false,
                "isRefunded": false,
                "isCaptured": false,
                "isCredit": true,
                "transactionActions": {
                    "canRefund": false,
                    "canVoid": true,
                    "canCapture": false
                }
            }
        ],
        "total": 2,
        "hasNext": false
    },
    "errorList": null
}

Response Parameters #

General Response #

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

Transaction Summary #

The data.transactionsSummary object contains aggregated transaction information for the specified date range.

FieldTypeDescriptionExample
data.transactionsSummary.totalSaleNumericTotal sales transaction amount for the specified period.1000
data.transactionsSummary.totalSaleFormattedStringFormatted total sales transaction amount for the specified period.1000.000
data.transactionsSummary.numberOfTransactionsNumericTotal number of sales transactions for the specified period.15
data.transactionsSummary.availableBalanceNumericAvailable merchant balance.854.224
data.transactionsSummary.availableBalanceFormattedStringFormatted available merchant balance.854.224

Transaction Records #

The data.records array contains the individual transaction records returned for the requested period and page.

FieldTypeDescriptionExample
data.records.idStringUnique identifier of the transaction record.3f461f43-a01b-49a7-b000-5f951a3ebb8c
data.records.idNNumericNumeric identifier of the transaction record.344928
data.records.transactionTypeNameStringType of transaction.Purchase
data.records.transactionDateTimeStringDate and time when the transaction was processed.2023-07-22T23:39:30.1227703+03:00
data.records.amountNumericAmount of the transaction.500
data.records.currencyStringCurrency of the transaction.OMR
data.records.responseCodeNameStringResponse received from the payment gateway.Approved
data.records.merchantNameStringName of the merchant.74417-LuluMasqatGrocery
data.records.transactionTypeDisplayNameStringDisplay name of the transaction type.Purchase
data.records.merchantRefNumberNumericMerchant reference number associated with the transaction.10020
data.records.merchantIdNumericUnique identifier of the merchant.74417
data.records.terminalIdNumericUnique identifier of the terminal used for the transaction.380024
data.records.dueAmountNumericTotal net amount of the executed transaction.497

Transaction Status #

The transaction record contains Boolean fields indicating its current status.

FieldTypeDescriptionExample
data.records.isSettledBooleanIndicates whether the transaction has been settled.false
data.records.isRefundedBooleanIndicates whether the transaction has been refunded.false
data.records.isCapturedBooleanIndicates whether the transaction has been captured.false
data.records.isCreditBooleanIndicates whether the transaction has been credited.true

Transaction Actions #

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

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

Example #

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

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


Pagination #

The API supports pagination through the currentPage and pageSize request parameters.

The response provides additional pagination information in the data object.

FieldTypeDescriptionExample
data.totalNumericTotal number of transaction records matching the request criteria.2
data.hasNextBooleanIndicates whether another page of transaction records is available.false

Pagination Example #

"data": {
    "records": [],
    "total": 2,
    "hasNext": false
}

When hasNext is true, the merchant can request the next page by incrementing the currentPage value.


Failure Response #

If the request cannot be processed, the API returns success: false along with a response code and error details.

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
Get Transaction by IDTransactions Summary
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 Summary
  • Transaction Records
  • Transaction Status
  • Transaction Actions
    • Example
  • Pagination
    • Pagination 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