Chat with us, powered by LiveChat

WCMp bundle is available at a slashed price

Grab It Now

List all products by vendor REST api

List all products by vendor REST api2019-03-15T04:25:42-05:00

Home Support Forum Theme and Plugin Support List all products by vendor REST api

Theme and Plugin Support

List all products by vendor REST api Resolved

Tagged: 

  • Author
    Posts
  • offersindia
    Participant
    Post count: 5

    Hiiii support team
    I have used WCMP rest api for getting all products by vendor. but it does not shows all products by vendor, shows only specific products.
    i am stuck at it. please revert.
    thanks.

  • WCMp Admin
    Keymaster
    Post count: 8441

    Hello @offersindia,

    Thanks for get in touch with us.

    Did you already tried with the “vendor=[vendor_id]” parameter too as stated on our document – https://wc-marketplace.github.io/rest-api-docs/#list-a-specific-product-by-a-vendor

    If not can you please check the same again, because that is being used to filter vendor’s products.

  • offersindia
    Participant
    Post count: 5

    yes i have already check “vendor=[vendor_id]” parameter. but still it is not showing all products.
    ” /wp-json/wc/v2/products/?vendor=[vendor_id] ” with using this api.
    Does it have any limitation on getting response from woocommerce for WCMP rest api?

  • offersindia
    Participant
    Post count: 5

    api only returns 10 products for vendor.

  • Enthusiastic Purnendu
    Member
    Post count: 9

    Hello,

    We extented WooCommerce product API. Hence please follow the parameters from here – https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-products

    Its showing 10 as because that is the number of product should return in a single page. Rest will come under pagination. You may check the WooCommerce API parameters to get all products.

  • offersindia
    Participant
    Post count: 5

    yes.. got it. thank you.

  • Enthusiastic Purnendu
    Member
    Post count: 9

    You are welcome @offersindia

The topic ‘List all products by vendor REST api’ is closed to new replies.