The 4-digit code is always written on the product’s packaging and in the instructions.
You can follow the short videos step by step and watch them over and over if you think you missed something. The smart thing about Onbox is also that you always have the instructions for your pet gate by your fingertips if you need to move it someday.