Product not added to vendor in WCFM marketplace Rest api
-
We created api’s to retreive new vendors from the shop, and want to add products by api to that new vendor. Everything is working EXECP saving the vendor for the new product.
Api, we post to: [website]/wp-json/wcfmmp/v1/products
Example json versions we tried, the store ID =4:
{“name”:”Tandpasta AquaFresh”,”regular_price”:1.99,”stock_quantity”:5,”store”: 4 , “featured_image”: { “src”: “[imgsite]/img/tandpasta.jpg” } }
AND
{“name”:”Tandpasta AquaFresh”,”regular_price”:1.99,”stock_quantity”:5,”store”: { “id”: 4 }, “featured_image”: { “src”: “[imgsite]/img/tandpasta.jpg” } }The product with image is created. Only the ‘store’ is empty: “store”:{},
What can we do to post the new product to the right store? It’s not in the manual.
Maybe we could use a POST to:
/wp-json/wcfmmp/v1/store-vendors/==vendor_id==/products
But in the manual there is only a GET for that url.
- The topic ‘Product not added to vendor in WCFM marketplace Rest api’ is closed to new replies.