Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
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.
User | RANK |
---|---|
6 | |
5 | |
5 | |
4 | |
4 |