Customer API Password Reset

Brian_Chong
Shopify Partner
2 0 0

Is it possible to reset an Account password via the Customer API? 

 

0 Likes
Josh_Brown2
Shopify Partner
40 0 7

Yes, you can. Here's an example:

PUT https://key:pass@yourshop.myshopify.com/admin/customers/207119551.json
'{
  "customer": {
    "id": 207119551,
    "password": "sherbetlemon",
     "password_confirmation": "sherbetlemon"
  }
}'
0 Likes
Brian_Chong
Shopify Partner
2 0 0

Sorry, I meant something more along the lines of automatically initiating the "Forgot your password?" process. I want to verify that the user's email address is still valid.

0 Likes
Josh_Brown2
Shopify Partner
40 0 7

I see. As far as I know, that is not possible using the API.

Depending on your store, you could look at deleting and re-creating the account as a possible workaround (with "send_email_invite": true). If you do decide to follow that option, keep in mind that it would affect the order history and other sorts of data, like the customer ID.

Sorry,

Josh

0 Likes