Codes are used to facilitate access to a WiFi network in combination with a splash page.
For example, a code can be used to provide event guests at a hotel with guest WiFi access on a specific day. Codes are provided with an expiration date. The client upload and download speed can be adapted for each code.
The difference between codes and vouchers is that vouchers do not expire after you have made them.