There are two kinds, and they go in different places.
Discount codes
A discount code takes money off a plan. On Plans, enter it in the code field, press Apply, and check the new price before you pay. Codes are limited in number and in time.
Panotour codes
A Panotour code adds Panotours to your account, sometimes for good and sometimes for a while; the code says which. Enter it on Billing in your account menu and press Redeem Code. The new limit applies straight away, on any plan, free included.