Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Retrieve Customer response is not giving all fields

Retrieve Customer response is not giving all fields

VKH
Visitor
2 0 0

Hi Team,

 

I am using the 2024-04 version of Shopify api. I am working with Retrieve Customer API and am seeing a weird behavior of first_name, last_name, email and phone fields missing from the response. Can you please help me understand this behavior. Thanks in advance!

 

https://your-development-store.myshopify.com/admin/api/2024-04/customers.json

https://your-development-store.myshopify.com/admin/api/2024-04/customers/207119551.json

 

Thanks,

VKH

Replies 2 (2)

VKH
Visitor
2 0 0

I am using a free trial version of Shopify. Can you confirm if the basic version of Shopify API(2024-04) does not return PII(Personally Identifiable Information) like first_name, last_name, phone, email in its retrieve customer api response.

 

Thanks,

VKH

ShopifyDevSup
Shopify Staff
1453 238 524

Hey @VKH

 

This isn't necessarily a limitation of the API version, but a limitation on the store plan. In order to access PII through a custom app, the store will need to be on the Shopify plan or higher. 

 

If you're looking to do some testing, I would recommend setting up a development store for that: https://help.shopify.com/en/partners/dashboard/managing-stores/development-stores 

 

Development stores have all of the features of the advanced plan, so you won't experience this limitation.

 

Hope that helps, 

 

- Kyle G.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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