How can customers edit their account details in the backend?

At what address is customer information saved when an account is created? How can I make the client be able to modify their name, surname, email and password?

Hey @Stokio !

Unfortunately Shopify does not currently provide any method for customers to be able to update their own information from the storefront. This is actually the original reason that we built the Customer Fields app back in 2015, we have since added lots of other features for customized registration, but you can also still use it just for an “edit account form” if that’s all you need.

You can check it out in the Shopify app store here.

1 Like

Actually this is possible and there’s a few different ways to do it. You can use the graphql admin api or the rest admin api. I’ve built wishlists doing exactly this and what it all comes down to is storing data on customer metafields. You will need to create a custom app, which you can do right in the admin, add read and write access for customers and then this app will need to be hosted somewhere. You could use heroku, I don’t like it because the first hit to the server takes a while for the server to warm up. The way I would do it is create a small api hosted on netlify and just use serverless functions.

You will have to send a fetch request to the backend api endpoints you define, and within the edge functions you can hit the admin api. You can’t hit the admin api from the front end, that’s why you need a server side endpoint to send the actual request to the admin api.

Customers can indeed edit their accounts, this is the specific rest endpoint that needs to be hit in order to edit the customer

Hey @Geist , thanks for adding some additional information on this.

You are correct that it is possible, just not directly from the storefront, it requires an app whether it’s a custom app like you recommend or a pre-made public app like Customer Fields. For someone comfortable with coding and using an API, setting up a custom app to accomplish this may be no problem, or others may prefer to use our app which handles all of the code for you and makes it easy to get custom forms set up quickly!