It varies. The expiration date is always displayed on your vouchers/voucher codes.
Generally, vouchers/voucher codes are valid for 30 days or less. The 30 days starts from the day you are notified that you have received a voucher.
If you receive a voucher code via email, the expiry date of the vouchers/voucher codes will be indicated in the email.