Query Order

Description

Query order

Path

POST open/api/payment/query

Request Parameter

ParameterSignMandatoryTypeLengthRemarks
appIdYYstring64AEON order number
merchantOrderNoYYstring64merchant order number
signNYstring256sign

Response Parameter

ParameterSignTypeLengthRemarks
orderNoYString64AEON order number
orderStatusYString32Order status
userIdYString128User ID(email or phone number)
merchantOrderNoYString64Merchant order number
orderCurrencyYString32Currency of order (USD/EUR)
orderAmountYString16Amount of order (cent)
payCryptoRateYString16Rate of payment crypto (to USDT)
payFiatRateYString16Rate of payment fiat (to USD)
payCryptoCurrencyYString32Cryptocurrency of payment
payCryptoVolumeYString16Cryptocurrency payment amount
payCryptoNetworkYString32Cryptocurrency payment network
addressYString256Address for user transfer
hxAddressYString256Hash address
failReasonYString256Fail reason
feeYString16Transaction fee
customParamNObject512Expend parameter
settlementAmountNstring16Amount of settlement
settlementCurrencyNstring16Currency of settlement
orderTimeNstring64UTC+8 time zone, format: yyyy-MM-dd hh:mm:ss
payTimeNstring64UTC+8 time zone, format: yyyy-MM-dd hh:mm:ss
payMethodNstring16only affect while using WALLET CONNECT and TON CONNECT
Payment method user used
fromAddressNstring256only affect while using WALLET CONNECT and TON CONNECT
User address for token transfer

Order Status

CodeDetails
INITWaiting for user payment
PROCESSINGDuring the payment process
COMPLETEDPayment success
CLOSEPayment close
TIMEOUTPayment cancel
FAILEDPayment failure
DELAY_SUCCESSOrder overtime and payment success
DELAY_FAILEDOrder overtime and payment failed

Fail Reason

CodeDetails
crypto or network inconsistentCurrency or network doesn't match the order
Your payment amount is lower than this orderUser payment amount lower than order amount
Due to fluctuations in the currency price, your payment amount cannot fulfill this orderThe price fluctuation higher than payment slippage

Response Example

SUCCESS

{
    "address": "T9ys1EqRenWmUGCXx4ASDFGHJY1CtA",
    "fee": "2",
    "hxAddress": "461d48491a9cea3df9c63afd14c39f36dbcd49015502bf900081956bf97ae465",
    "merchantOrderNo": "to_4bc9603b12345685",
    "orderAmount": "100",
    "orderCurrency": "USD",
    "orderNo": "300217231234569729",
    "orderStatus": "COMPLETED",
    "payCryptoCurrency": "USDT",
    "payCryptoNetwork": "TRX",
    "payCryptoRate": "1",
    "payCryptoVolume": "102",
    "payFiatRate": "1",
    "settlementAmount": "100",
    "settlementCurrency": "USD",
    "sign": "C615A4F6436CAA308D342E7C49D0164765D3563EC3E3E61F889E9B46BB1E6F1EEEB28280DA233B81E31591C8B1A33C0EE7969CD3",
    "userId": "[email protected]"
}

CLOSE

{
    "payCryptoCurrency": "USDT",
    "payCryptoNetwork": "Ethereum",
    "payCryptoRate": "123.4",
    "payCryptoVolume": "123",
    "payFaitRate": "1.23",
    "address": "bf3c3192b04aa5445678b0010d66583797740d8de8d442bc182123",
    "customParam": "customParam",
    "failReason": "crypto or network inconsistent",
    "fee": "1.1",
    "hxAddress": "461d48491a9cea3df9c63afd14c39f36dbcd49015502bf900081956bf97ae465",
    "merchantOrderNo": "9999999999",
    "orderAmount": "12",
    "orderCurrency": "EUR",
    "orderNo": "300217177567252640030",
    "orderStatus": "CLOSE",
    "userId": "[email protected]"
}