交易查询
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
Name
Type
Description
merchantNo*
String
商户ID
verifySign*
String
参数签名
reference*
String
商家系统中交易的发票编号
{
"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
参数
类型
描述
ret_msg
String
响应返回消息
ret_code
String
响应返回码
结果对象
参数
类型
描述
amount
String
交易金额。 当您使用USD作为付款货币时,它将返回
currency
String
交易货币: "USD"
transactionNo
String
2Pay系统中的交易ID
reference
String
商家系统中交易的发票编号
status
String
交易状态
settleCurrency
String
标识结算货币的三位字符货币代码
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