API Error Codes

1、Account、Rights and common erros

error codedescription
1failed or means no
10000client_id does not exist
10001invalid client,wrong client_id or client_secret
10003token does not exist
10004token is invalide or revoked
10007invalid account or invalid password
10011invalid refresh_token
20002not lock admin
30002invalid username, only English character and digits is allowed
30003existing registered users
30004invalid userid to delete
30005password must be md5 encrypted
30006exceeds the restrictions of API call number
30008Cross-site access to user data is prohibited. Please use domain names with the 'cn' prefix to request for Mainland Chinese users, for other region's users please use domain names with the 'eu' prefix to request API endpoints
80000date must be current time, in 5 minutes
80002invalid json format
90000internal server error
-3Invalid Parameter
-2018Permission Denied, many interfaces only allow the lock's top administrator or authorised administrator to request them, some interfaces only require a valid regular key user, please use an access token obtained from a legitimate user's account number and password to request the interface.
-4063Please delete/transfer all yours locks first

2、Lock related errors

error codedescription
-1003Lock does not exist
-2025Frozen lock. Can not operate on it now
-3011Cannot Transfer Lock(s) to Yourself
-4043The function is not supported for this lock
-4056Run out of memory
-4067NB Device is not registered
-4082Auto locking period invalid

3、Ekey related errors

error codedescription
-1008eKey does not exist
-1016An identical Name exists. Please choose a different Name.
-1018This Group does not exist
-1027Cant send eKey to this account which has been bound to another account
-2019You cannot send an eKey to Yourself
-2020You cannot send an eKey to the Admin
-2023Can't change the time period now
-4064Failed. The eKey can only be sent to a registered account

4、Passcode related errors

error codedescription
-1007No password data of this lock
-2009Invalid Password
-3006Invalid Passcode. Passcode should be between 6 - 9 Digits in length
-3007The same passcode already exists. Please use another one
-3008A Passcode that has never been used on the Lock cannot be changed
-3009There is NO SPACE to store Customized Passcodes. Please Delete Un-Used Customized Passcodes and try again

5、Gateway and WiFi lock related errors

error codedescription
-2012The Lock is not connected to any Gateway.
-3002The gateway is offline. Please check and try again.
-3003The gateway is busy. Please try again later.
-3016Cannot Transfer Gateway(s) to Yourself.
-3034Network not configed. Please config the network and try again.
-3035Wifi lock is in power saving mode, please turn off power saving and try again.
-3036The lock is offline. Please check and try again.
-3037The lock is busy. Please try again later.
-4037No such Gateway exists.

6、IC card and Fingerprint related errors

error codedescription
-1021This IC Card does not exist
-1023This Fingerprint does not exist