Open Platform
Skip to content

Administrator recharge ​

https://euapi.ttlock.com/v3/waterMeter/recharge

To recharge using a gateway, if Bluetooth operation is required, please refer to the corresponding app's SDK.

After successful recharge, you need to actively call the meter reading interface to save the latest data to the server.

1 Request example ​

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

json
curl --location -g --request POST 'https://euapi.ttlock.com/v3/waterMeter/recharge'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'waterMeterId=3001' \
--data-urlencode 'rechargeAmount=100.00' \
--data-urlencode 'rechargeM3=100.00' \
--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)
waterMeterIdStringYWater Meter ID
rechargeAmountDoubleYrecharge money amount
rechargeM3DoubleYrecharge water amount

3 Response and example ​

NameTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError Description
json
{
    "errcode": 0,
    "errmsg": "none error message or means yes",
    "description": "表示成功或是"    
}
CopyRight © 2012-2026 TTLock.All Rights Reserved