Development discussions around Shopify APIs
I am trying to get a list of all of our customers IDs, Emails, and Phone numbers. My first step is to see if I can get those and then move on to pagination. I can get the ID and the email no problem, but phone always comes back as 'None'.
My current endpoint looks like this:
With an output like this:
{'id': Fake ID Here, 'email': 'Fakeemail@fake.com', 'phone': None}
It is like this for every ID I get back. I can check with their IDs against our exported CSV and I can see a phone number there so I do not understand why it is not showing up in my API call.
I can see that phone is a property of the API and when I query all customer data I can see a phone number there as 'phone': XXXXXXXXX
https://shopify.dev/api/admin/rest/reference/customers/customer
Just like the last question I asked, I have figured this out. The phone number is under the address field for our stores.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023