Open Platform
Skip to content

Meter reading by tenant ​

https://cnapi.ttlock.com/v3/electricMeterUser/syncState

Tenants use the gateway to read meters. If Bluetooth operation is required, please refer to the corresponding APP's SDK.

This interface doesn't require accessToken

1 Request example ​

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

json
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/electricMeterUser/syncState'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'electricMeterId=3001' \
--data-urlencode 'type=2' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
dateLongYCurrent time (timestamp, in milliseconds)
electricMeterIdStringYElectricity meter ID
typeIntY2- Through the gateway

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