Skip to content

Payment Query

Request URL

methodurl
POST/api/pay/payment/query/v1

Header Information

Header ParameterDescription
timestampRequest timestamp
nonceRandom value
countryCountry code (KH)
app_codeApplication ID

Request Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
signStringyesSignature
Request Example
{
"merchantOrderNo": "OrderNoExample",
"sign": "YOUR_SIGN"
}

Response Parameters

FieldTypeRequiredLengthDescription
merchantOrderNoStringyes32Merchant order number
tradeNoStringyesPlatform order number
paymentTypeIntyesPayment method: 2001-KHQR or 2002-KHQR_USD
transactionAmountStringyesOrder transaction amount
amountStringyesPayment amount
statusIntyesOrder status: 1-Processing, 2-Success, 3-Failed
serviceAmountStringyesService fee, e.g., 18.02
paymentInfoStringyesMain payment information actually used for payment
errorMessageStringnoOrder failure error message
statementListObjectnoPayment transaction information
— paymentSingleOrderNoStringyesSingle payment transaction number
— paymentStatementAmountStringyesSingle payment amount
— paymentStatementStatusIntyesSingle transaction status: 2-Success, 3-Failed
— paymentStatementStatusNameStringyesTransaction status name
— serviceAmountStringyesService fee = fixed fee + transaction amount × service fee rate
— serviceRateStringyesService fee rate
— immServiceStringyesFixed fee
— paymentTypeIntyesActual payment method: 2001-KHQR or 2002-KHQR_USD
— completeTimeStringyesCompletion time in local timezone, format: yyyy-MM-dd HH:mm:ss
Response Example
{
"code": 200,
"data": {
"merchantOrderNo": "OrderNoExample",
"tradeNo": "TS2501010001KH0000000000000000",
"paymentType": 2001,
"transactionAmount": "10000.00",
"amount": "10000.00",
"status": 2,
"serviceAmount": "105.00",
"paymentInfo": "https://www.paymentLinkExample.com",
"errorMessage": null,
"statementList": [
{
"paymentSingleOrderNo": "TSOPaymentOrderNoExample",
"paymentStatementAmount": "10000.00",
"paymentStatementStatus": 2,
"paymentStatementStatusName": "Payment Success",
"serviceAmount": "105.00",
"serviceRate": "0.0100",
"immService": "5.00",
"paymentType": 2001,
"completeTime": "2025-01-01 00:00:00"
}
]
},
"msg": "success",
"traceId": "0801113131dd4951a36d19022a31b303.94.17423567008990449"
}

Error Codes

Error CodeError MessageHandling Solution
412Please try again laterPlease try again later
414*Correct the corresponding parameter
416Application not foundCheck and correct the app_code
434Merchant order not existCheck the submitted merchant order number
500Business ErrorPlease contact us
Error Response Example
{
"code": 416,
"data": null,
"msg": "Application not found",
"traceId": "0801113131dd4951a36d19022a31b303.94.17423567008990449"
}