Check Transaction Status
This API gets the transaction status corresponding to requested OrderId for specific merchant.
HTTP RequestPOST /v2/gateway/api/query
Attribute | Type | Required | Description |
---|---|---|---|
partnerCode | String | Integration information | |
requestId | String | Unique ID of each request | |
orderId | String | ID of order that needs to be checked. | |
lang | String | Language of returned message (vi or en ) | |
signature | String | Signature to check information. Use Hmac_SHA256 algorithm with data in format: accessKey=$accessKey&orderId=$orderId&partnerCode=$partnerCode &requestId=$requestId |
Example request
{
"partnerCode": "123456",
"requestId": "1527246504579",
"orderId": "1527246478428",
"signature": "13be80957a5ee32107198920fa26aa85a4ca238a29f46e292e8c33dd9186142a",
"lang": "en"
}
Attribute | Type | Required | Description |
---|---|---|---|
partnerCode | String | Integration information | |
requestId | String | Unique ID of each request | |
orderId | String | Partner Transaction ID Regex: ^[0-9a-zA-Z]([-_.]*[0-9a-zA-Z]+)*$ | |
extraData | String | Extra Data. Default: value transmitted by merchant in captureWallet API | |
amount | Long | Payment amount | |
transId | Long | MoMo's transaction ID | |
payType | String | Payment method. web or qr . Default: "" if it is not a payment | |
resultCode | int | Result Code | |
refundTrans | List | List of refund transactions | |
message | String | Error description based on lang | |
responseTime | Long | Time to respond payment results to partner Format: timestamp | |
paymentOption | String | Account/Card has been used to pay for the transaction: momo ,pay_later |