Development discussions around Shopify APIs
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.
As a business owner, have you ever wondered when your customer's first impression of yo...By Skye Jun 6, 2023
We're excited to announce improvements to the threaded messaging experience in our communi...By TyW May 31, 2023
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...By Jacqui May 30, 2023