Skip to main content
GET
/
open-api
/
v1
/
merchant
/
token
curl --request GET \
  --url https://sandbox-openplatform.keysecure.io/open-api/v1/merchant/token \
  --header 'Content-Type: application/json' \
  --header 'Api-Key: your_api_key' \
  --header 'Timestamp: 1716307200000'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "access_token": "",
    "expired_time": 1
  }
}
Obtains a merchant API access token used for authentication on subsequent API calls. This endpoint only requires Api-Key and Timestamp — no Access-Token is needed.

Request Headers

Api-Key
string
required
apiKey (merchant credential, bound to IP whitelist)
Timestamp
string
required
Unix timestamp in milliseconds. The deviation from the server time must be within 60 seconds, and future timestamps are not accepted.
Content-Type
string
default:"application/json"
Fixed to application/json

Response Parameters

code
number
Response status code. 0 indicates success.
msg
string
Response message.
data
object
Response data.
curl --request GET \
  --url https://sandbox-openplatform.keysecure.io/open-api/v1/merchant/token \
  --header 'Content-Type: application/json' \
  --header 'Api-Key: your_api_key' \
  --header 'Timestamp: 1716307200000'
{
  "code": 0,
  "msg": "Success",
  "data": {
    "access_token": "",
    "expired_time": 1
  }
}