You will find it in Valencia, standing in front of Yulgar. That is the spot players report for the deadly pet code, and Yulgar's shop being right there makes it easy to remember.
Keep in mind that AdventureQuest Worlds codes are frequently time-limited or event-specific, so if the code has expired you will need to watch the game's official news feed for the current one rather than an old list.