Open Platform
Skip to content

Generate an executeToken that can be used for top-ups. ​

https://euapi.ttlock.com/v3/electricMeter/createExecuteToken

Before both gateway top-up and APP SDK Bluetooth top-up, you need to request this interface to obtain the executeToken.

Then, pass the obtained executeToken as a parameter to either the gateway top-up or the APP SDK Bluetooth top-up.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

json
curl --location -g --request POST 'https://euapi.ttlock.com/v3/electricMeter/createExecuteToken'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'electricMeterId=3001' \
--data-urlencode 'rechargeKwh=100' \
--data-urlencode 'rechargeAmount=100' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
accessTokenStringYAccess token, obtain by calling get access token API
dateLongYCurrent time (timestamp, in milliseconds)
electricMeterIdStringYElectricity meter ID
rechargeKwhDoubleYRecharge amount
rechargeAmountStringYRecharge amount

3 Response and example ​

NameTypeDescription
executeTokenStringexecuteToken
json
{
    "executeToken": 11223344
}
CopyRight © 2012-2026 TTLock.All Rights Reserved