Discussions
API Calls after webhook don't show up-to-date information
8 months ago by Matias G H
Our team uses Webhooks to identify Order Status changes in the RoseRocket system.
When an order is considered "dispatched", we poll information from orders, legs and manifests to know the driver of the order. But when doing so, the manifest associated with that order still has no Driver ID. If we run the same code a few minutes later, the information is correctly shown in the API responses.
Is there some processing between the Order status update and the API getting the latest data? What should we do to prevent this happening?