Get transaction list

Base URL: https://checkout-sandbox.payway.com.kh/Copy to clipboard
POST

This API allows merchants to retrieve a list of transactions filtered by specific criteria, such as transaction date, amount, payment type, and more. It supports pagination and is designed for both in-store and online profiles, providing secure and efficient access to recent transaction records.
Criteria

  • Both instore and online profile
  • Allow only by outlet, cannot get all transaction from all outlet which is under one business profile
  • Can filter from any date range in the past to current day with maximum 3 days (included today)
  • All parameters used in the hash string must follow the exact sequence defined in the API documentation
  • Maximum request per minute: 50 requests

Request

Header Params
stringrequired

Example: application/json

Body Params application/json

stringrequired

Request date and time in UTC format as YYYYMMDDHHmmss.

stringrequired

A unique merchant key which provided by ABA Bank.

stringoptional

Start date for filtering transactions, in the format YYYY-MM-DD HH:mm:ss. Default value is today at 00:00:00.

stringoptional

End date for filtering transactions, in the format YYYY-MM-DD HH:mm:ss. Default value is today at 23:59:59.

numberoptional

Search transactiion that has purchased amount from

numberoptional

Search transactiion that has purchased amount to

stringoptional

Possible values: APPROVED, PRE-AUTH, REFUNDED, PENDING, DECLINDED, CANCELLED. No case sensitive , if you want to query multiple values please separate value by comma.

stringoptional

Current page index. Default value: 1

stringoptional

Total number of recorde per page. Default value 40, maximum value is 1000.

stringrequired

Base64 encode of hash hmac sha512 encryption of concatenates values req_time, merchant_id, from_date, to_date, from_amount, to_amount, status, page , and pagination with public_key.

PHP Sample Code

// public key provided by ABA Bank
$api_key = "API KEY PROVIDED BY ABA BANK";
// Prepare the data to be hashed
$b4hash = $req_time . $merchant_id . $from_date . $to_date . $from_amount . $to_amount . $status . $page . $pagination;
// Generate the HMAC hash using SHA-512 and encode it in Base64
$hash = base64_encode(hash_hmac('sha512', $b4hash, $api_key, true));

Example

{
    "req_time": "",
    "merchant_id": "",
    "from_date": null,
    "to_date": null,
    "from_amount": "",
    "to_amount": "",
    "status": null,
    "page": "",
    "pagination": "",
    "hash": ""
}
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R

Responses