Home How to set customer role via json rest api in woocommerce
Reply: 0

How to set customer role via json rest api in woocommerce

user624
1#
user624 Published in May 24, 2018, 11:14 pm

When creating a customer or updating a customer, the role parameter is read only by default. so what I'm needing here is to be able to nominate the role for the customer when they are created or updated via the REST API. The default REST calls in this case the path is wp-json/wc/v2/customers and want to assign different role to customer.

Any idea how to do it. What I'm getting here is the documentation :

https://woocommerce.github.io/woocommerce-rest-api-docs/v3.html#customers

Nothing else . How to use it in hooks in functions file. If I'm on right track

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.345652 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO