With smart locks, you can basically set up codes
https://support.smartthings.com/hc/en-us/articles/200958090-Smart-Locks-in-the-SmartThings-Classic-app
There is a paid app that offers that and much more:
Marketplace is only available in the SmartThings Classic app