Keypad with sync problems to manage pins

I try to make an interface to manage pins with time start and time end. I face problems that the keypad not store correct the commands i send. I try to delete a pin from keypad wih the correct command - get a response ok and the pin stay there and after send several times it delete random. Try Sync and same problem.
Anyone face this?

The Web API is asynchronous. When you send a command you will get an immediate OK response. Once the server has received the API call it will try to reach the Smart Lock and change/delete the code (all the codes are stored on the Smart Lock itself). This usually takes some seconds. If the connection to the Smart Lock is broken or unstable it might not work at all and you get unreliable results.

Therefore, you need to wait some seconds after posting the command. You also need to make sure that the Smart Lock is reachable via the bridge when you send the command.