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.

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

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

GilesLabastilla
Visitor
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)

jazz-jay
Shopify Partner
96 14 17

Hi,

 

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.

banned