I need to build a new page restrict to customers, which will have a form to change some customer basic data, like first name, last name, phone, etc.
I’ll submit this form and change the information using Ajax / API, through a custom JS file. What is the best way to do that according to authentication and security?
To be honest, I didn’t understand very well the Shopify documentation. I’ve been trying to call the REST admin API, but I don’t have success with the PUT method. I also didn’t understand how to create a custom APP and call the REST API from that.
You can look into the following tutorials on how to build a Shopify App in NodeJS that can utilize the Admin API. This should help you get started, but feel free to ask more or make a new forum post if you have any specific questions
Exactly! You cannot change the Shopify fields/data structure. To add these fields that you are saying, you can use meta fields. But, the problem is, to change any meta field, you need to do it through a custom app because Shopify doesn’t allow any POST or PUT method from your store.