Each code has its own expiration date, which is visible before the purchase of the code (after selecting the denomination) and after its purchase in Execution to date tab > details. After the expiry date, the code becomes inactive.
You will not be refunded for non-use of the code within the deadline. It is also not possible to extend the code expiration date.