You will not need to use code position as you should set the keypad codes via Lock Code Manager. It is used though as the unique identifier for the code so if you have three users you would have position 1,2 and 3 with a username and code.
Please go in to devices and show a screenshot of your state variables. Also please verify that lockcodes (under current states) is showing your codes should look like
{"1":{"code":"1234","name":"John"}}
Also what Firmware are you running?
[EDIT]May want to look at this, was going to wait to point you in a direction until I saw your response to make sure it fits, but going to watch a show and don't want to lose the link, follow the link and scroll up a couple and look at the state variables picture, it was missing the entry exit delays. If this is the case the link has a fix:
This was for firmware 2.2.5