Fetch Token

Test environment

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

Prod environment

https://openapi.alchemypay.org/merchant/getToken

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 - Header

639

Request sample - Body

632

Response sample

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "id": "z1//LCqqoEoYloBXVODzPg==",
        "accessToken": "ACH7833164893ACHvJoJTBRF/b1sUp0Hq9Amo8C8NdSYwK+5ldXCtRcGMqEDudadzZ14999bggdpJPBzxKLSe5XzCmdMNmETMjbong==",
        "email": "O2Mp5tDOQk3hQFXPlQDBBUuJDUTklzdMujrrKM0XUbg="
    }
}

Note