When a smart lock door code is generated for a reservation, it may take several minutes for it to appear in Guesty.
If you use Automated Messages with a custom field to send guests their door code, set the scheduled sending time to one hour after confirmation for last-minute reservations. This will give the code enough time to appear in Guesty and be inserted into the message. Otherwise, the message will be sent at confirmation, without the code.
We recommend following our Automated Messages best practices and setting up separate messages for last-minute reservations.