Skip to main content

Check Transaction Status

This API gets the transaction status corresponding to requested OrderId for specific merchant.

HTTP Request

POST /v2/gateway/api/query

AttributeTypeRequiredDescription
partnerCodeStringIntegration information
requestIdStringUnique ID of each request
orderIdStringID of order that needs to be checked.
langStringLanguage of returned message (vi or en)
signatureStringSignature 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"
}
HTTP Response
AttributeTypeRequiredDescription
partnerCodeStringIntegration information
requestIdStringUnique ID of each request
orderIdStringPartner Transaction ID
Regex: ^[0-9a-zA-Z]([-_.]*[0-9a-zA-Z]+)*$
extraDataStringExtra Data. Default: value transmitted by merchant in captureWallet API
amountLongPayment amount
transIdLongMoMo's transaction ID
payTypeStringPayment method. web or qr. Default: "" if it is not a payment
resultCodeintResult Code
refundTransListList of refund transactions
messageStringError description based on lang
responseTimeLongTime to respond payment results to partner
Format: timestamp
paymentOptionStringAccount/Card has been used to pay for the transaction: momo,pay_later