Change user password using woocommerce rest api in Android Change user password using woocommerce rest api in Android wordpress wordpress

Change user password using woocommerce rest api in Android


I had the same problem using Ionic3 for building an App with woocommerce as backend.

The following code worked for me, but you need to find a way to figure out the customer id.

updateCustomer(){    this.customer.id=YOUR_CUSTOMER_ID;    this.customer.password = NEW_PASSWORD;    this.WooCommerce.putAsync("customers/" + this.customer.id, {customer: this.customer}).then((res)=>{      if(JSON.parse(res.body).customer){        console.log('customer updated');      }    }, (err)=>{      console.log(err.body)    })}