• Resolved cornevanberkel

    (@cornevanberkel)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hello,
    Our Apis are based mainly on the vendors. They are used when the vendor is logged in. After fetching the vendor’s login token if a product is created with that token the product is automatically assigned to that product.

    Thread Starter cornevanberkel

    (@cornevanberkel)

    Do you have a documentation for how to login using api?

    Our purpose is, we have 1 shop with 50 pickup locations. When we have a new products, they have to be added to each pickup location with the right stock.

    Each pickup location is a vendor and customers could only order for 1 pickup location in 1 order.

    So from our stock-system i have to create all the products for all the vendors. The pickup locations (vendors) do not login to the system, they only use the order emails for pickup. So we realy need to post the product to the system with the right vendor_id.

    If you need to make a change in the api for that and we have to pay for it, that’s not a problem, then we need to know wat the costs are.

    Plugin Author WC Lovers

    (@wclovers)

    Hello,
    We received yours email and will continue the discussions over email.

    I want each seller to create their own tokens to integrate with various invoice and ERP issuers. Is this possible using the WCFM Rest API? If it’s correct, how can we enable this via WCFM frontend?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Product not added to vendor in WCFM marketplace Rest api’ is closed to new replies.