Discussing APIs and development related to customers, discounts, and order management.
Adding customers through the GraphQL API, and the calls succeed - however they never show up in the Admin UI?? If I request the customers from the API then they are returned - so they are IN THE SYSTEM but they just dont show up in the Shopify Customers Admin section. Whats the deal?
Hi Ftballguy45,
This does sound like an unusual issue. It could be due to a few reasons:
Data Sync issue: There might be a delay in syncing the data between the GraphQL API and the Admin UI. Wait for some time and then check again.
Filter/View issue: Make sure there are no active filters/views in the Customers section of the Admin UI that might be hiding the new customers.
API issue: If you're using a specific version of the API, it might have some bugs. Try using a different version of the API.
Try testing out the above and seeing if you can determine / fix the issue. Hope this helps.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thank you for the quick reply! I tried all of those things last night and nothing worked - it must have been something on the Shopify backend. I just now tried again, creating new customers and they are showing up in the Admin UI. Just for your bug tracking team - this seemed to happen after I used the segment filter in the Admin UI alot, alongside making alot of deletes from the Admin UI and API adds/deletes. I am testing an import of customer accounts using the API. Something seems to get hung up where the Admin UI is not in sync with data from the API
Heres some of the weirdness. After adding ~5K customers via the API, then using the bulk delete in the Admin UI, it starts doing weird stuff
Glad to hear they're appear now as expected - if I had to guess it's possible some caching issues might be at play due to deletes happening through both the admin and API - and perhaps some conflicts from both methods being used. Will inform our dev team about this however.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog