shopifyshopify-apishopify-storefront-api

Customer First Name & Last Name Not Found In Shopify Get Orders API


I am calling the below Shopify GET Orders API

/admin/api/2024-01/orders.json?status=any

  JSON response for customer data is as below:

enter image description here

But I want to get the customer's first name, last name, mobile, email, and other customer data. 

Please help to get the same. 


Solution

  • In order to work with Shopify, at the Admin API level, you have to set the privacy settings of your App, where you promise to not mess around with customer info should they grant you permission to see it. So for a custom App, not in App store, just fill it all out and ask for permission to see customer info. You get it. For a public App, they review your request, so you have to wait.

    In your Partner account, for the App, under API keys, you'll find the links to privacy settings.