Obtain AccessToken
Interface address: /api/v1/user/get-access-token
Description: Merchants obtain AccessTokens via this interface and complete a shared login when placing orders with webSDK.
Request input parameters
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| String | Y | ||
| loginIp | String | Y | IP |
| deviceId | String | N | Device ID |
| clientType | String | N | Device Type: Defaults to 1 1: WEB 2: H5 3: iOS 4: Android 5: Other |
Output parameters
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| accessToken | String | Y | AccessToken |
| expiredTime | String | Y | Expiration timestamp. Unit: millisecond. Example: 1716533044217 |