Hi @paull
Our Get a job ETA endpoint allows you to get an estimated time of arrival to the pickup address for a given job, meaning that if you request an instant job (without “pickup_at”), it will tell you the amount of minutes (40 minutes, in your example) that is going to take to the driver to arrive to the given pick up address. If you schedule a job in the future, it will tell you how much the driver is going to take to arrive to the origin from the scheduled time.
Using that endpoint you can then determine when to order a Stuart delivery or when to start preparing a scheduled order.
You can check here the ETA endpoint’s different use cases.
Cheers