Get a transaction details
POST
/api/payment-gateway/v1/payments/transaction-detail
🚨
Request
Header Params
Content-Type
stringÂ
required
Example:
application/json
Body Params application/json
req_time
stringÂ
required
merchant_id
stringÂ
required
<= 20 characters
tran_id
stringÂ
required
<= 20 characters
hash
stringÂ
required
req_time
, merchant_id
, and tran_id
, encrypted using your public_key
.
Example
{
"req_time": "20250213084236",
"merchant_id": "ec000002",
"tran_id": "17394277693",
"hash": "QskVi2gEctW...j7Td6kEi/KLPvGcK3ZiA=="
}
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-detail' \
--header 'Content-Type: application/json' \
--data-raw '{
"req_time": "20250213084236",
"merchant_id": "ec000002",
"tran_id": "17394277693",
"hash": "QskVi2gEctW...j7Td6kEi/KLPvGcK3ZiA=="
}'
Responses
🟢200OK
application/json
Body
data
objectÂ
optional
transaction_id
stringÂ
optional
payment_status_code
numberÂ
optional
0
- APPROVED, PRE-AUTH2
- PENDING3
- DECLINDED4
- REFUNDED7
- CANCELLEDpayment_status
stringÂ
optional
APPROVED
– Payment was completed successfully or captured.PRE-AUTH
– Payment is held under pre-authorization, pending capture.PENDING
– Awaiting completion from the payer.DECLINED
– The payment was declined.REFUNDED
– The payment has been refunded fully or partially.CANCELLED
– The transaction or pre-authorization was cancelled.original_amount
numberÂ
optional
original_currency
stringÂ
optional
payment_amount
numberÂ
optional
payment_currency
stringÂ
optional
total_amount
numberÂ
optional
refund_amount
numberÂ
optional
discount_amount
numberÂ
optional
apv
stringÂ
optional
transaction_date
stringÂ
optional
first_name
stringÂ
optional
last_name
stringÂ
optional
email
stringÂ
optional
phone
stringÂ
optional
bank_ref
stringÂ
optional
payment_type
stringÂ
optional
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 is made with ABA bank card.OFFUS_DOMESTIC
: Transaction is made with other local bank card.OFFUS_INTERNATIONAL
: Transaction is made with other international bank cardtransaction_operations
array [object {4}]Â
optional
status
objectÂ
optional
Examples
{
"data": {
"transaction_id": "17394277693",
"payment_status_code": 0,
"payment_status": "APPROVED",
"original_amount": 0.1,
"original_currency": "USD",
"payment_amount": 0.1,
"payment_currency": "USD",
"total_amount": 0.1,
"refund_amount": 0,
"discount_amount": 0,
"apv": "753786",
"transaction_date": "2025-02-13 13:55:25",
"first_name": "test",
"last_name": "test",
"email": "test1234@gmail.com",
"phone": "086720539",
"bank_ref": "100FT30148462274",
"payment_type": "ABA Pay",
"payer_account": "*327",
"bank_name": "ABA Bank",
"card_source": "",
"transaction_operations": [
{
"status": "Completed",
"amount": 0.1,
"transaction_date": "2025-02-13 13:55:25",
"bank_ref": "100FT30148462274"
}
]
},
"status": {
"code": "00",
"message": "Success!",
"tran_id": "17394277693"
}
}