Developer Suite
Register Sandbox
Register Sandbox
  1. Ecommerce Checkout
  • Overview
  • API Endpoints
  • Ecommerce Checkout
    • Purchase
      POST
    • Get a transaction details
      POST
    • Close transaction
      POST
    • Check transaction
      POST
    • Refund API
      POST
    • Get transaction list
      POST
    • Exchange rate
      POST
  • Checkout Plugins
    • Prestashop
    • Woocommerce
  • Credentials on File
    • Link Account
      POST
    • Link Card
      POST
    • Payment
      POST
    • Renew Token
      POST
    • Get token details
      POST
    • Remove token
      POST
  • ABA QR API
    • QR API
      POST
  • Payment Link
    • Create payment link
      POST
    • Get payment link details
      POST
  • Pre-auth
    • Complete pre-auth transactions
      POST
    • Complete pre-auh transaction with payout
      POST
    • Cancel pre-purchase transaction
      POST
  • Payout
    • Payout
    • Update a beneficiary status
    • Add a beneficiary to whitelist
  • KHQR Guideline
  • Resources
  1. Ecommerce Checkout

Get transaction list

POST
/api/payment-gateway/v1/payments/transaction-list-2
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

Body Params application/json

Example
{
    "req_time": "20250213081756",
    "merchant_id": "ec000002",
    "from_date": null,
    "to_date": null,
    "from_amount": "0.01",
    "to_amount": "1000",
    "status": null,
    "page": "1",
    "pagination": "40",
    "hash": "o1mDvIjTyzoFcN7zvm7...aUYAGXjsx4Ej0E6P2CoxtOQ=="
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://checkout-sandbox.payway.com.kh//api/payment-gateway/v1/payments/transaction-list-2' \
--header 'Content-Type: application/json' \
--data-raw '{
    "req_time": "20250213081756",
    "merchant_id": "ec000002",
    "from_date": null,
    "to_date": null,
    "from_amount": "0.01",
    "to_amount": "1000",
    "status": null,
    "page": "1",
    "pagination": "40",
    "hash": "o1mDvIjTyzoFcN7zvm7...aUYAGXjsx4Ej0E6P2CoxtOQ=="
}'

Responses

🟢200OK
application/json
Body

Examples
{
    "data": [
        {
            "transaction_id": "17394307767",
            "transaction_date": "2025-02-13 14:13:00",
            "apv": "N/A",
            "payment_status": "PENDING",
            "payment_status_code": 2,
            "payment_type": "N/A",
            "original_amount": 0.2,
            "original_currency": "USD",
            "total_amount": 0.2,
            "discount_amount": 0,
            "refund_amount": 0,
            "payment_amount": 0,
            "payment_currency": ""
        },
        {
            "transaction_id": "17394277693",
            "transaction_date": "2025-02-13 13:55:25",
            "apv": "753786",
            "payment_status": "APPROVED",
            "payment_status_code": 0,
            "payment_type": "ABA Pay",
            "original_amount": 0.1,
            "original_currency": "USD",
            "total_amount": 0.1,
            "discount_amount": 0,
            "refund_amount": 0,
            "payment_amount": 0.1,
            "payment_currency": "USD"
        },
        {
            "transaction_id": "17394277224",
            "transaction_date": "2025-02-13 13:22:47",
            "apv": "N/A",
            "payment_status": "PENDING",
            "payment_status_code": 2,
            "payment_type": "N/A",
            "original_amount": 0.1,
            "original_currency": "USD",
            "total_amount": 0.1,
            "discount_amount": 0,
            "refund_amount": 0,
            "payment_amount": 0,
            "payment_currency": ""
        }
    ],
    "page": "1",
    "pagination": "40",
    "status": {
        "code": "00",
        "message": "Success!",
        "tran_id": "244935541251140"
    }
}
Previous
Refund API
Next
Exchange rate