Get Token
Introduction
Merchant get user token by this API.
Domains
Test Environment: https://api-nft-sbx.alchemytech.cc//nft/openapi/merchant/getToken
Prod Environment: https://openapi-nft.alchemypay.org/nft/openapi/merchant/getToken
API Description
Request Method: POST
Content-Type: application/json
Request Parameters
Header Parameters:
Parameter | Required | Type | Description |
---|---|---|---|
appId | Y | string | Unique identifier for the application |
timestamp | Y | string | Current UTC 13-digit timestamp, valid for 5 minutes |
sign | Y | string | Signature, SHA1(appId + appSecret + timestamp),refer to Check on signature |
Body Parameters:
Element | Mandatory | Data Type | Remarks |
---|---|---|---|
Y | string | end user’s email |
Request Parameter Example:
{
"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 6 days ago