I have a scenario instigated by a webhook. I need to send a guest an email once their reservation has been confirmed. The issue is, Airbnb does not automatically supply the guest’s email so once their reservation is confirmed, a webhook is sent (without their email address) then I have to ask for their email address.
So basically I have a few routers set up after the webhook depending on whether we have their email address. One of the routes does an API call to see if they have supplied their email yet. I want to make this call every 4 hours until there is an email address, then send the guest an email.
What is the best solution for this?