Query Order
Description
Query the NFT checkout status.
Test environment
https://api-nft-sbx.alchemytech.cc/nft/openapi/query/trade?orderNo=xxxxxxx
Production environment
https://openapi-nft.alchemypay.org/nft/openapi/query/trade?orderNo=xxxxxx
Http method
- GET
Http header
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
appId | Y | string | Partner unique ID, once a merchant has been on-boarded with Alchemy Pay, the merchant will be provided with the credentials with appId and appSecret |
timestamp | Y | string | UTC time with 13 digit to represent time in milliseconds, expiration period is 5 minutes. |
sign | Y | string | SHA1(appId + appSecret + timestamp), please refer to Sign demo for Initiate API |
Http body
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
orderNo | N | string | ACH system order ID |
merchantOrderNo | N | string | Merchant 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
Element | Remarks |
---|---|
NEW | new order |
PAY_SUCCESS | fiat payment succeed |
PAY_FAIL | fiat payment fail |
TIME_OUT | time out |
Updated about 2 months ago