WooCommerce + WC Vendor + API
-
Hi All!
I have a question regarding WooCommerce and the API.
I use WC Vendor, so i have multiple vendors on my site.
I want to allow my vendors to use the API that comes with WooCommerce.Everything works fine, until external sites are about to fetch the products.
It seems that the capability read_private_products has to be enabled to retreive the products at all.
But if it is, it get ALL products – from other vendors as well.So if User “Alan” auths against external site, and tries to fetch all the products that belongs to him, he also get everyone elses products.
While in the admin panel, the vendor only see’s his own products.
Is it possible to use the API to only get the products that one vendor has?
I have authed against the API with the User, and i run the GET Query https://url/wp-json/wc/v3/products/This is the last thing i have on my checklist before upgrading to pro and going live with the site – so this is really important for me!
Thank you!
- The topic ‘WooCommerce + WC Vendor + API’ is closed to new replies.