Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I need to apply tags in each order whether it's old or a new customer.
if the order count > 1 is an old otherwise new customer.
When I receive an Order/create webhook, I do an additional API call to fetch the associated customer resource which has orders_count.
Most of the time it works well, but sometimes I receive the orders_count 1 when it's 2; if I request again after a few minutes I receive the correct orders_count.
Can anyone suggest how can I get this information accurately every time? Thanks