TypeError: Cannot read properties of undefined (reading 'rest')

1 0 0

I'm trying to create a customer using REST API, but I can't seem to do so because of this error. 

I don't know much about the Shopify API, and I only followed the steps in the Shopify API to create an app. 


Screenshot 2022-12-27 at 11.22.47 AM.png

Reply 1 (1)

Shopify Expert
96 14 17



You can not create a customer with the password property when using the rest api.  Just the create the customer with the password properties and if the customer was created successfully. Send him an account invite, he will then an email to create his password and can then login.


More info about the customer rest api here.