Query Order
Introduction
Merchant call this api for query order status and order information.
Domains
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
API Description
Request Method: GET
Request Parameters
Header Parameters:
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 |
Body Parameters:
One of orderNo
or merchantOrderNo
is required.
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
orderNo | N | string | ACH system order ID |
merchantOrderNo | N | string | Merchant defined order ID |
Response Parameters
{
"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
}
}
Payment Status
Element | Remarks |
---|---|
NEW | new order |
PAY_SUCCESS | fiat payment succeed |
PAY_FAIL | fiat payment fail |
TIME_OUT | time out |
Updated about 1 month ago