Password Update Update Using Shopify API

Can I update a password for a user or customer that already exists in Shopify using the Shopify API?

+4
source share
4 answers

The user endpoint is available for Shopify Plus stores, but it is currently read-only - without using this API API via

https://docs.shopify.com/api/reference/user

+1
source

Although the API documentation does not say anything about changing the client password, you can really change the client password using the endpoint PUT / admin / customers / # {id} .json. Please note that my answer is for customers only, not for users.

, . .

:

PUT/admin/customers/5206361102.json

{
  "customer": {
    "id": 5206361102,
    "password": "mypass2",
    "password_confirmation": "mypass2"
  }
}

, GET/admin/customers/search.json, .

, :

GET/admin/customers/search.json?query=email:customeremail@customerdomain.com

:

{
  "customer": {
    "id": 5206556238,
    ... other parameters ...
  }
}

@spviradiya , , .

+1
        PUT /admin/customers/#{id}.json
    {
      "customer": {
        "id": 207119551,
        "password": "newpass",
        "password_confirmation": "newpass",
        "send_email_welcome": false
      }
    }
+1

NO, now this is not possible in the regular store of the API store. Let this type of function be expanded to the next plus version, but, frankly, Plus is expensive, so very rare people using it are compared to a regular store in a store.

0
source

All Articles