Query Order

Description

Query the NFT checkout status.

Test environment

https://openapi-test.alchemypay.org/nft/openapi/query/trade

Production environment

https://openapi.alchemypay.org/nft/openapi/query/trade

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

ElementMandatoryData TypeRemarks
orderNoNstringACH system order ID
merchantOrderNoNstringMerchant defined order ID

in Query API, either orderNo or merchantOrderNo is necessary.

Http response sample

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "amount": "888", //
        "fiat": "USD", //3 digit CODE
        "orderNo": "994864610797428736",
        "payTime": "2022-07-08 15:18:43",
        "payType": "CREDIT_CARD",
        "type": "MARKET/MINT",
        "name":"NFT name",
        "quantity": "1", //NFT amount,MINT
        "uniqueId":"#10001", // NFT Unique Identity ,MARKET
        "appId": "3sst5rng5cf1n1ei",
        "merchantOrderNo":"10000001",
        "message": "",
        "status": "PAY_SUCCESS" // Fiat payment status
    }
}

Payjment status

ElementRemarks
NEWnew order
PAY_SUCCESSfiat payment succeed
PAY_FAILfiat payment fail
TIME_OUTtime out