Check transaction
POST
/api/payment-gateway/v1/payments/check-transaction-2
💡
Request
Header Params
Content-Type
stringÂ
required
Example:
application/json
Body Params application/json
req_time
stringÂ
required
merchant_id
stringÂ
required
tran_id
stringÂ
required
hash
stringÂ
required
merchant_id
, and tran_id
with public_key
.
Example
{
"req_time": "20250213065545",
"merchant_id": "ec000002",
"tran_id": "17394277693",
"hash": "4slqXzgVig09Hf...2vgALgdENA=="
}
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/check-transaction-2' \
--header 'Content-Type: application/json' \
--data-raw '{
"req_time": "20250213065545",
"merchant_id": "ec000002",
"tran_id": "17394277693",
"hash": "4slqXzgVig09Hf...2vgALgdENA=="
}'
Responses
🟢200OK
application/json
Body
data
objectÂ
optional
payment_status_code
integerÂ
optional
0
: APPROVED, PRE-AUTH2
: PENDING3
: DECLINDED4
: REFUNDED7
: CANCELLEDtotal_amount
numberÂ
optional
original_amount
numberÂ
optional
refund_amount
numberÂ
optional
discount_amount
numberÂ
optional
payment_amount
numberÂ
optional
payment_currency
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.transaction_date
stringÂ
optional
status
objectÂ
optional
Examples
{
"data": {
"payment_status_code": 0,
"total_amount": 0.1,
"original_amount": 0.1,
"refund_amount": 0,
"discount_amount": 0,
"payment_amount": 0.1,
"payment_currency": "USD",
"apv": "753786",
"payment_status": "APPROVED",
"transaction_date": "2025-02-13 13:55:25"
},
"status": {
"code": "00",
"message": "Success!",
"tran_id": "17394277693"
}
}