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:
Interface Description
Test: https://openapi-test.alchemypay.org
Prod: https://openapi.alchemypay.org
Path:POST /open/api/v4/merchant/getToken
Header Parameters:
Parameter | Mandatory | Type | Remarks |
---|---|---|---|
appId | Y | string | App unique identifier |
timestamp | Y | string | Current UTC 13-digit timestamp, valid within 5 minutes |
sign | Y | string | Signature, you can refer to the signature here. |
Body Parameters:
Parameter | Mandatory | Type | Remarks |
---|---|---|---|
Y | string | user 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"
Updated 4 months ago