Shopify password update using Shopify API



PHP Snippet 1:

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

PHP Snippet 2:

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

PHP Snippet 3:

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

PHP Snippet 4:

$password = array(
          "customer"=>array(
              'id'=>$customerid,
              'password'=> $new_password,
              'password_confirmation'=>$confirm_password    

          )
      );
$customer = $shopify("PUT /admin/customers/$customerid.json" , $password);