curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/merchant/client/C202605220001/token \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"client_access_token": "",
"expires_in": 300
}
}
Card
Issue PCI Client Access Token
GET
/
open-api
/
v1
/
merchant
/
client
/
{card_no}
/
token
curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/merchant/client/C202605220001/token \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"client_access_token": "",
"expires_in": 300
}
}
Issues a one-time Client Access Token for use with the PCI iframe.
Request Headers
string
required
apiKey (merchant credential, bound to IP whitelist)
string
required
Unix timestamp in milliseconds. The deviation from the server time must be within 60 seconds, and future timestamps are not accepted.
string
required
Login token (required for all interfaces except Get Token).
string
default:"application/json"
Fixed to
application/jsonPath Parameters
string
required
Card order number.
Response Parameters
number
Response status code.
0 indicates success.string
Response message.
curl --request GET \
--url https://sandbox-openplatform.keysecure.io/open-api/v1/merchant/client/C202605220001/token \
--header 'Content-Type: application/json' \
--header 'Api-Key: your_api_key' \
--header 'Timestamp: 1716307200000' \
--header 'Access-Token: your_access_token'
{
"code": 0,
"msg": "Success",
"data": {
"client_access_token": "",
"expires_in": 300
}
}
