Skip to main content

10.2 Query merchant’s fiat currency orders (OTC payment)

#Brief description: This interface is used to query the merchant's legal currency payment orders (OTC payment), and the order details can be viewed according to the order number.

Query parameters​

Parameter nameTypeRequiredParameter meaningParameter description
orderIdstringNoPlatform order numberChoose 1 from our platform order number or merchant’s local order number
localOrderIdstringNoMerchant’s local order numberChoose 1 of 2 merchant’s local order number or our platform’s order number
keystringYesMerchant keyapiKey
signstringYesSignatureSee Signature Algorithm for details
Request json sample​
{  
"key": "9yUreYgTRtit39Dy",
"orderId": 274224939517780,
"sign": "07792d2cf97811d3f2e7bd98edb477e3"
}

Return value​

Parameter nameTypeParameter meaningParameter description
codeint32Request statusReturn code, 0 means the business is successful, otherwise it represents a different error
successbooleanSuccess statusSuccess identification, consistent with code=0, used for compatibility history
messagestringDescriptionError message. If there is an error, the error message returned
datajsonReturn dataSee the parameters below for details
Return to Example​
{
"code": 0,
"success": true,
"message": null,
"data": {
"merchantId": 302992856974,
"merchantUserId": null,
"orderId": "456290286215493",
"localOrderId": "D19C27AEC95C00297881P",
"status": "SUCCESS",
"currency": "CNY",
"amount": "95",
"notifyTime": 1770192373305,
"orderCreateTime": 1770192298091
}
}
data parameter description​
Parameter nameTypeParameter meaningParameter description
orderIdstringOrder number
merchantIdint64Merchant ID
merchantUserIdstringMerchant user ID (null if not passed by the merchant)
localOrderIdstringOrder number
statusenumOrder StatusPROCESSING:处理中| SUCCESS:已完成|FAIL:已失败
currencystringOrder currency
amountstringOrder amount
orderCreateTimeint64Order creation timestamp