Query Order

Test environment

https://openapi-test.alchemypay.org/merchant/query/trade?orderNo=1000974004706615296

Prod environment

https://openapi.alchemypay.org/merchant/query/trade?orderNo=994814767274139648

Http method

  • GET

Http header

ElementMandatoryData TypeRemarks
access-tokenYstringaccessToken from Fetch Token API
appIdYstringPartner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret
timestampYstringUTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes.
signYstringSHA1(appId + appSecret + timestamp), please refer to Sign demo for Initiate API

Http body

NULL

Request sample - header

  • either orderNo or merchantOrderNo can be used in query API
https://openapi-test.alchemypay.org/merchant/query/trade?orderNo=994814767274139648
https://openapi-test.alchemypay.org/merchant/query/trade?merchantOrderNo=1001060398435147776
771771

Response sample

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "amount": "100.00000000",
        "orderNo": "1001060398435147776",
        "address": "TSx82tWNWe5Ns6t3w94Ye3Gt6E5KeHSoP8",
        "payTime": null,
        "crypto": "USDT",
        "network": "TRX",
        "cryptoPrice": "0.00000000",
        "payType": "CREDIT_CARD",
        "cryptoQuantity": "0.00000000",
        "appId": "jcudotl1hwyvxhdp",
        "fiat": "USD",
        "status": "PENDING"//PENDING, PAY_FAIL, PAY_SUCCESS, BUY_SUCCESS, TRANSFER, CANCEL, FINISHED
    }
}

Response status details

ElementRemarks
PENDINGthe transaction is being processed
CANCELcancel order
PAY_FAILfiat payment failed
PAY_SUCCESSfiat payment succeed
BUY_SUCCESScrypto buying succeed
TRANSFERcrypto in transfer
FINISHEDend user received the crypto