Transaction Query
TranQuery
POST
https://api.2pay.co/online/v1/tran-query
This API is used to query transaction details via transaction ID in the merchant services system.
Request Body
merchantNo*
String
ID of a merchant.
verifySign*
String
The merchants should verify the signature to ensure the response is from the server and not modified by any others.
reference*
String
The reference number of a trasaction in the merchant services system.
{
"ret_code": "000100",
"ret_msg": "success",
"result": {
"transactionNo": "0f72c718-4a33-47ca-81fe-c228p3a8d08d",
"reference": "8678528c-8c1c-4ff7-79a3-4f32afa6e2c6",
"amount": 1.99,
"status": "pending",
"currency": "USD",
"settleCurrency": "USD"
}
}
Response
Parameter
Type
Description
ret_msg
String
Return response message.
ret_code
String
Return response status code.
Result Object
Parameter
Type
Description
amount
String
The amount of a transaction.
This parameter will be returned when the transaction currency is "USD".
currency
String
Currency supported by 2Pay is "USD".
transactionNo
String
The transaction ID of 2Pay system.
reference
String
The reference number of a trasaction in the merchant services system.
status
String
Transaction status.
settleCurrency
String
Currency code from ISO 4217.
Potential value:"USD".
curl --location --request POST 'https://api.2pay.co//app-data-search/v1/tran-query' \
--header 'Content-Type: application/json' \
--data-raw '{
"merchantNo": "M1659370901281867",
"reference": "8677528c-8b1c-4bf7-79a3-9291jwil",
"verifySign": "{{verifySign}}"
}'
Last updated