Login Free Instructions

If you want users to skip the step of entering the email verification code, you can use this interface to get the accessToken and splice the obtained parameters into your redirection link.

🚧

Please use this interface after confirming your user's email address. If you cannot guarantee the authenticity of your user's email address, please do not use this interface

After the acquisition, the user's accessToken is valid for 10 days and can be used repeatedly. If the user token is obtained again, if the user's login status is valid at this time, the token will still be returned.

After obtaining the toaccessTokenken, you need to URLEncode it and splice it into the Page link (change the URL request parameter name accessToken to the token). Example:

https://ramptest.alchemypay.org/?crypto=USDT&network=BSC&appId=f83Is2y7L425rxl8&token=ACH8945766425%40ACH%40kklzDn3K%2FBvuSXs559OQfQ%3D%3D%40PAY%40cwqgsiyILMYNuMjhxhaQLpCX1hnntIqfL%2BV7uEqNu6I%3D%40IO%40g5aBrOrzxrfzsqs8W0cKR4VBugBZBSH5gYLOoL1eHICLR3GTygMCaCN3RvIMaeOUmy9PAVmFImjz%2B4uXR1MpRg%3D%3D#/index

Interface Description

Test: https://openapi-test.alchemypay.org

Prod: https://openapi.alchemypay.org

Path:POST /merchant/getToken

Header Parameters:

ParameterMandatoryTypeRemarks
appIdYstringApp unique identifier
timestampYstringCurrent UTC 13-digit timestamp, valid within 5 minutes
signYstringSHA1(appId + appSecret + timestamp), perform SHA1 hash calculation on the string concatenated by the three parameters to generate hexadecimal characters, the sign method can refer here

Body Parameters:

ParameterMandatoryTypeRemarks
emailYstring用户email

Example

Request parameters:

{
	"email": "[email protected]"
}

Return parameter:

{
    "success": true,
    "returnCode": "0000",
    "returnMsg": "SUCCESS",
    "extend": "",
    "data": {
        "id": "kklzDn3K/BvuSXs559OQfQ==",
        "accessToken": "ACH8945766425@ACH@kklzDn3K/BvuSXs559OQfQ==@PAY@cwqgsiyILMYNuMjhxhaQLpCX1hnntIqfL+V7uEqNu6I=@IO@g5aBrOrzxrfzsqs8W0cKR4VBugBZBSH5gYLOoL1eHICLR3GTygMCaCN3RvIMaeOUmy9PAVmFImjz+4uXR1MpRg==",
        "email": "cwqgsiyILMYNuMjhxhaQLpCX1hnntIqfL+V7uEqNu6I="
    },
    "traceId": "642e6990f3481462c6185b310ba2120b"