Nuki/WordPress/WooCommerce - How to create two codes for one product

As an agency, we developed a WooCommerce online shop with WordPress for our client and connected it to Nuki. Our client rents out products via this online shop and the products are stored in a warehouse that is secured with a Nuki lock. Customers can rent the products for a period of their choice via the online shop. After paying via the shop, they receive a confirmation email with the Nuki code, which enables them to collect their rented product from the warehouse themselves.

It would be ideal if a code for collection and a code for return could be created automatically. Alternatively, the code would only be valid for the period for which the customer has rented the product. So if he rents for 3 days, the code is valid for 3 days, if he rents for 5 days, the code is valid for 5 days and so on, and the code getting deactivated as soon as the rental period expires. Is there such an option?