You do not. There is no code box for Moshlings — the mechanic is gardening.
Buy seed combinations from the stand and plant three in your garden, then wait roughly a day for them to grow. If the combination matches a Moshling's requirements, it will move in. If it does not, you get nothing and try again.
Because each Moshling wants a different mix, the process is mostly trial, error and patience. Seed availability rotates too, so a combination you cannot complete today may be possible next week.