A few spaces requested for cobot to support expiring day passes. That means that coworkers can buy day passes, but if they don’t use them within a certain amount of time they will expire.
As this only affects a small part of the spaces on cobot I was hesitant to add it to the core site (which is already complex enough). Instead I sat down yesterday and built this feature as an extension that uses the cobot API (granted, I had to extend the API to support it. If you need an API extension for your use case let me know, I can add those easily).
The script I built runs once a day as a cron job, checks if there are any unused day passes older than 30 days and deletes them. When it does it will also send an email to notify the space. The source code is up on GitHub.
If you want to use that extension for your space you can either install it yourself (I recommend heroku as it’s free, but any other server will do) or just let me know and I can add you to our installation.