Hi,
We are using the Storefront GraphQL API to retrieve cart details by cart ID. However, we’re receiving null for the buyerIdentity field—even when the user is logged in to the storefront and has added or updated items in the cart. We expect the buyerIdentity to be populated in this scenario.
Hey @Dipesh_Patel - that does sound odd for sure, buyerIdentity should be populating if the buyer is logged in on the storefront. Would you be able to share an X-Request-ID from the API response headers you’re seeing attached to an API response from us where the buyerIdentity array is empty?
Happy to take a closer look into this for you - let me know if I can clarify anything on my end here
Hey @Alan_G , thanks for the quick response!
Yes, the issue occurs even when the customer is logged in. Here’s one of the ‘X-Request-ID’ values from a response where buyerIdentity is coming through as null
:
4f71cfc8-0cc6-4b37-9c2b-243909f04e86-1749192582
Let me know if you need additional details. Appreciate your help!
Thanks @Dipesh_Patel - I did a little digging on my end into the logs and can confirm it’s showing up as null when I replicate the query internally on my end too.
Out of curiosity, is your test shop using accelerated/dynamic checkout? It looks like it may be similar to this issue: Issue with buyerIdentity returning null
Let me know if deactivating accelerated checkout fixes this, or if you already have it deactivated/need to keep it activated and I can dig into this further for you - hope this helps a bit!