Fetch Token

Test environment

https://openapi-test.alchemypay.org/nft/openapi/merchant/getToken

Prod environment

Http method

  • POST
  • Content-Type: application/json

Http header

ElementMandatoryData TypeRemarks
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
emailYstringend 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
    }
}