we are facing the below issue when we try to find an account by email after creating the customer with a few seconds delay,
However, after a few minutes when we make the same Get call, it responds with the customer object. Can someone share your thoughts on this behavior of Shopify GetCall?
Below are the X-Request-ID 's for both CreateCustomer and GetCustomerByEmail for reference,
CreateCustomer X-Request-ID : c15dc6c2-9593-46a7-a5fa-b154edaaba28
GetCustomerByEmail X-Request-ID : dc1dff47-6638-4659-98a3-fa44a2560419
All I know is from a lot of API use over the years, the Customer objects are managed separately from other aspects of Shopify resources, like products and orders. So that is why you used to get orders delivered by webhooks without Customer records! They had shipped incomplete objects back in the day. I am sure that happens less these days, but I also see in my code, from time immemorial that I also used to get orders with no shipping address. Imagine that. How to deal with that? So is that because the Customer, with their shipping address, is a resource that was once again unavailable at the time of the object handling?
All I am saying is, if you are playing with Customer resources, and you expect instant, correct answers to any questions, you might want to think twice. It appears the wiring of Customer inside the platform is subject to some strange quirks of timing and "readiness". Of course, that could just be bunk too. YMMV.
Have you created a collection on your online store and experienced an issue with adding yo...By Ollie Aug 24, 2022
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022