Click the enter code box once you have finished choosing your pet. That is the whole procedure — the code field is part of the pet selection flow rather than a separate menu buried in settings.
Which is why people sometimes cannot find it: they go looking through options and never complete the selection step that makes the box appear. Choose your pet first, then the field is right there.
Have the code exactly as printed before you start. Promotional codes are usually case-insensitive but unforgiving about transposed characters, and a mistyped code gives the same error as an expired one.