Fetch Token
Test environment
https://api-nft-sbx.alchemytech.cc//nft/openapi/merchant/getToken
Prod environment
https://openapi-nft.alchemypay.org/nft/openapi/merchant/getToken
Http method
- POST
- Content-Type: application/json
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 |
---|---|---|---|
Y | string | end user’s email |
Request sample - Body
{
"email": "[email protected]"
}
Response sample
{
"success": true,
"returnCode": "0000",
"returnMsg": "SUCCESS",
"extend": "",
"data": {
"id": "0SRTSiMeHuVsghfkCCjpnQ==",
"email": "sQiRfS/xy/cHWFHXmEsSVA==",
"accessToken": "amLscAfRB5GUOzDWnlcT" //user token,validate period is 7200s
}
}
Updated 4 months ago