Open Platform
Skip to content

Get passage mode configuration of a lock ​

https://cnapi.sciener.com/v3/lock/getPassageModeConfig

1 Request example ​

javascript
curl --location --request GET 'https://cnapi.sciener.com/v3/lock/getPassageModeConfig?clientId=4773aa036f7f49c68d876bb4be85c80c&accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f&lockId=3827&date=1626674054000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYclient_id from Create application
accessTokenStringYAccess token,refer to: Get access token
lockIdIntYLock ID, generated by Lock init
dateLongYCurrent time (timestamp in millisecond)

3 Response and example ​

ParameterTypeDescription
passageModeIntPassage mode: 1-on, 2-off
startDateIntStart time of cyclic, in minutes, for example 480 for 8:00
endDateIntEnd time of cyclic, in minutes, for example 1080 for 18:00
isAllDayIntAll Hours: 1-YES, 2-NO, if is all hours, then startDate and endDate params is ignored.
weekDaysJsonArray[Int]Week days, for example: [1,7], for monday and sunday.
autoUnlockIntAuto unlock:1-on, 2-off, set to 1 then the lock will auto unlock at the time the passage mode start
{
    "passageMode": 1, 
    "startDate": 480,
    "endDate": 1080,
    "isAllDay": 2,
    "weekDays": [1,2,3],
    "autoUnlock": 1
}
CopyRight © 2012-2026 Sciener.All Rights Reserved