Get transaction list
POST
/api/payment-gateway/v1/payments/transaction-list-2
Criteria
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
req_time
string
required
merchant_id
string
required
from_date
string
optional
YYYY-MM-DD HH:mm:ss
. Default value is today at 00:00:00
.to_date
string
optional
YYYY-MM-DD HH:mm:ss
. Default value is today at 23:59:59
.from_amount
number <double>
optional
to_amount
number <double>
optional
status
string
optional
APPROVED
, PRE-AUTH
, REFUNDED
, PENDING
, DECLINDED
, CANCELLED
. No case sensitive , if you want to query multiple values please separate value by comma.page
string
optional
1
pagination
string
optional
40
, maximum value is 1000
.hash
string
required
req_time
, merchant_id
, from_date
, to_date
, from_amount
, to_amount
,status
, page
, and pagination
with public_key
.
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 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 '/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
data
array [object {21}]
optional
transaction_id
string
optional
transaction_date
string
optional
apv
string
optional
payment_status
string
optional
APPROVED
: Transaction successfully completed with the full purchase amount.PRE-AUTH
: Transaction successfully processed with a pre-authorization hold on funds pending final capture.REFUNDED
: Transaction has been fully or partially refunded.PENDING
: Transaction is awaiting payment completion by the payer.DECLINED
: Transaction has been declined.CANCELLED
: Merchant canceled the pre-authorization or closed the transaction.payment_status_code
integer
optional
0
: APPROVED, PRE-AUTH2
: PENDING3
: DECLINDED4
: REFUNDED7
: CANCELLEDoriginal_amount
number <double>
optional
original_currency
string
optional
KHR
: For Khmer Riel transactionUSD
: For US Dollar transactiontotal_amount
number <double>
optional
discount_amount
number <double>
optional
refund_amount
number <double>
optional
payment_amount
number <double>
optional
payment_currency
string
optional
first_name
string
optional
last_name
string
optional
email
string
optional
phone
string
optional
bank_ref
string
optional
payment_type
string
optional
N/A
: Those pending for payment.ABA Pay
: Transaction made with ABA Account (ABA Mobile)Alipay
: Transaction made with Alipay.Wechat
: Transaction made with WeChat pay.KHQR
: Trnasaction made with KHQR.VISA
: Transaction made with Visa card.MC
: Transacion made with Mastercard.JCB
: Transaction made with JCB cardCUP
: Transaction made with UPI card.payer_account
string
optional
bank_name
string
optional
card_source
string
optional
ONUS
: Transaction made with ABA CardOFFUS_DOMESTIC
: Transaction made with local card issue by other banksOFFUS_INTERNATIONAL
: Transaction made with internal card.page
string
optional
pagination
string
optional
40
and maximum of 1000
.status
object
optional
code
optional
00
: Success!1
: Wrong hash8
: Invalid merchant profile11
: Internal server error429
: Rate limit exceeded.message
string
optional
code
for the details.tran_id
string
optional
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"
}
}