How to get qty of a product using rest apiGet multiple product images using REST APIMagento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]Magento2: Get all orders using REST API?Magento 2 Rest Api get Products List including qty fieldexport products Magento 2.1.9How to get product quantity by using REST API product filterGet all simple product with REST APIMagento 2 add an attribute to product using restHow to Update Magento 2 configurable child products price by REST APIHow to get all product details using multiple product id/sku in array REST API

Why did my leaking pool light trip the circuit breaker, but not the GFCI?

Use real text instead of lipsum in moderncv quote alignment

Can you move between the attacks of a Twinned Booming Blade

What instances can be solved today by modern solvers (pure LP)?

How can I get a file's size with C++17?

Old story where computer expert digitally animates The Lord of the Rings

What is a "tittering order"?

Who pays for increased security measures on flights to the US?

Did Snape really give Umbridge a fake Veritaserum potion that Harry later pretended to drink?

Show that there are infinitely more problems than we will ever be able to compute

Why did moving the mouse cursor cause Windows 95 to run more quickly?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

How can solar sailed ships be protected from space debris?

A student "completes" 2-week project in 3 hours and lies about doing it himself

Was Wolfgang Unzicker the last Amateur GM?

Term for a character that only exists to be talked to

What do you call the angle of the direction of an airplane?

Does this house rule, for determining hit point maximum, make characters weaker than RAW?

Does this circuit have marginal voltage level problem?

How to widen the page

How did sloshing prevent the Apollo Service Module from moving safely away from the Command Module and how was this fixed?

"Best practices" for formulating MIPs

How to compute the number of centroids for K-means clustering algorithm given minimal distance?

Can the word "coexist" be used for more than two things/people/subjects/... etc?



How to get qty of a product using rest api


Get multiple product images using REST APIMagento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]Magento2: Get all orders using REST API?Magento 2 Rest Api get Products List including qty fieldexport products Magento 2.1.9How to get product quantity by using REST API product filterGet all simple product with REST APIMagento 2 add an attribute to product using restHow to Update Magento 2 configurable child products price by REST APIHow to get all product details using multiple product id/sku in array REST API






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to get product info including the product qty how can i achieve it.



Currently i am using



rest/default/V1/products?searchCriteria



To get all the product but it is missing qty attribute in it.



Here is the result



 [0] => stdClass Object
(
[id] => 346
[sku] => WATCH
[name] => WATCH
[attribute_set_id] => 4
[price] => 3
[status] => 1
[visibility] => 4
[type_id] => simple
[created_at] => 2018-06-03 05:36:33
[updated_at] => 2018-06-03 05:36:33
[weight] => 1
[product_links] => Array
(
)

[tier_prices] => Array
(
)

[custom_attributes] => Array
(
[0] => stdClass Object
(
[attribute_code] => meta_title
[value] => WATCH
)

[1] => stdClass Object
(
[attribute_code] => meta_keyword
[value] => WATCH
)

[2] => stdClass Object
(
[attribute_code] => meta_description
[value] => WATCH
)

[3] => stdClass Object
(
[attribute_code] => image
[value] => /p/i/pinking_swatch_sq_dia_beige_1.png
)

[4] => stdClass Object
(
[attribute_code] => small_image
[value] => /p/i/pinking_swatch_sq_dia_beige_1.png
)

[5] => stdClass Object
(
[attribute_code] => thumbnail
[value] => /p/i/pinking_swatch_sq_dia_beige_1.png
)

[6] => stdClass Object
(
[attribute_code] => category_ids
[value] => Array
(
[0] => 4
[1] => 61
)

)

[7] => stdClass Object
(
[attribute_code] => options_container
[value] => container2
)

[8] => stdClass Object
(
[attribute_code] => required_options
[value] => 0
)

[9] => stdClass Object
(
[attribute_code] => has_options
[value] => 0
)

[10] => stdClass Object
(
[attribute_code] => url_key
[value] => watch
)

[11] => stdClass Object
(
[attribute_code] => gift_message_available
[value] => 2
)

[12] => stdClass Object
(
[attribute_code] => swatch_image
[value] => /p/i/pinking_swatch_sq_dia_beige_1.png
)

[13] => stdClass Object
(
[attribute_code] => tax_class_id
[value] => 2
)

)

)









share|improve this question




























    0















    I want to get product info including the product qty how can i achieve it.



    Currently i am using



    rest/default/V1/products?searchCriteria



    To get all the product but it is missing qty attribute in it.



    Here is the result



     [0] => stdClass Object
    (
    [id] => 346
    [sku] => WATCH
    [name] => WATCH
    [attribute_set_id] => 4
    [price] => 3
    [status] => 1
    [visibility] => 4
    [type_id] => simple
    [created_at] => 2018-06-03 05:36:33
    [updated_at] => 2018-06-03 05:36:33
    [weight] => 1
    [product_links] => Array
    (
    )

    [tier_prices] => Array
    (
    )

    [custom_attributes] => Array
    (
    [0] => stdClass Object
    (
    [attribute_code] => meta_title
    [value] => WATCH
    )

    [1] => stdClass Object
    (
    [attribute_code] => meta_keyword
    [value] => WATCH
    )

    [2] => stdClass Object
    (
    [attribute_code] => meta_description
    [value] => WATCH
    )

    [3] => stdClass Object
    (
    [attribute_code] => image
    [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
    )

    [4] => stdClass Object
    (
    [attribute_code] => small_image
    [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
    )

    [5] => stdClass Object
    (
    [attribute_code] => thumbnail
    [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
    )

    [6] => stdClass Object
    (
    [attribute_code] => category_ids
    [value] => Array
    (
    [0] => 4
    [1] => 61
    )

    )

    [7] => stdClass Object
    (
    [attribute_code] => options_container
    [value] => container2
    )

    [8] => stdClass Object
    (
    [attribute_code] => required_options
    [value] => 0
    )

    [9] => stdClass Object
    (
    [attribute_code] => has_options
    [value] => 0
    )

    [10] => stdClass Object
    (
    [attribute_code] => url_key
    [value] => watch
    )

    [11] => stdClass Object
    (
    [attribute_code] => gift_message_available
    [value] => 2
    )

    [12] => stdClass Object
    (
    [attribute_code] => swatch_image
    [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
    )

    [13] => stdClass Object
    (
    [attribute_code] => tax_class_id
    [value] => 2
    )

    )

    )









    share|improve this question
























      0












      0








      0








      I want to get product info including the product qty how can i achieve it.



      Currently i am using



      rest/default/V1/products?searchCriteria



      To get all the product but it is missing qty attribute in it.



      Here is the result



       [0] => stdClass Object
      (
      [id] => 346
      [sku] => WATCH
      [name] => WATCH
      [attribute_set_id] => 4
      [price] => 3
      [status] => 1
      [visibility] => 4
      [type_id] => simple
      [created_at] => 2018-06-03 05:36:33
      [updated_at] => 2018-06-03 05:36:33
      [weight] => 1
      [product_links] => Array
      (
      )

      [tier_prices] => Array
      (
      )

      [custom_attributes] => Array
      (
      [0] => stdClass Object
      (
      [attribute_code] => meta_title
      [value] => WATCH
      )

      [1] => stdClass Object
      (
      [attribute_code] => meta_keyword
      [value] => WATCH
      )

      [2] => stdClass Object
      (
      [attribute_code] => meta_description
      [value] => WATCH
      )

      [3] => stdClass Object
      (
      [attribute_code] => image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [4] => stdClass Object
      (
      [attribute_code] => small_image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [5] => stdClass Object
      (
      [attribute_code] => thumbnail
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [6] => stdClass Object
      (
      [attribute_code] => category_ids
      [value] => Array
      (
      [0] => 4
      [1] => 61
      )

      )

      [7] => stdClass Object
      (
      [attribute_code] => options_container
      [value] => container2
      )

      [8] => stdClass Object
      (
      [attribute_code] => required_options
      [value] => 0
      )

      [9] => stdClass Object
      (
      [attribute_code] => has_options
      [value] => 0
      )

      [10] => stdClass Object
      (
      [attribute_code] => url_key
      [value] => watch
      )

      [11] => stdClass Object
      (
      [attribute_code] => gift_message_available
      [value] => 2
      )

      [12] => stdClass Object
      (
      [attribute_code] => swatch_image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [13] => stdClass Object
      (
      [attribute_code] => tax_class_id
      [value] => 2
      )

      )

      )









      share|improve this question














      I want to get product info including the product qty how can i achieve it.



      Currently i am using



      rest/default/V1/products?searchCriteria



      To get all the product but it is missing qty attribute in it.



      Here is the result



       [0] => stdClass Object
      (
      [id] => 346
      [sku] => WATCH
      [name] => WATCH
      [attribute_set_id] => 4
      [price] => 3
      [status] => 1
      [visibility] => 4
      [type_id] => simple
      [created_at] => 2018-06-03 05:36:33
      [updated_at] => 2018-06-03 05:36:33
      [weight] => 1
      [product_links] => Array
      (
      )

      [tier_prices] => Array
      (
      )

      [custom_attributes] => Array
      (
      [0] => stdClass Object
      (
      [attribute_code] => meta_title
      [value] => WATCH
      )

      [1] => stdClass Object
      (
      [attribute_code] => meta_keyword
      [value] => WATCH
      )

      [2] => stdClass Object
      (
      [attribute_code] => meta_description
      [value] => WATCH
      )

      [3] => stdClass Object
      (
      [attribute_code] => image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [4] => stdClass Object
      (
      [attribute_code] => small_image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [5] => stdClass Object
      (
      [attribute_code] => thumbnail
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [6] => stdClass Object
      (
      [attribute_code] => category_ids
      [value] => Array
      (
      [0] => 4
      [1] => 61
      )

      )

      [7] => stdClass Object
      (
      [attribute_code] => options_container
      [value] => container2
      )

      [8] => stdClass Object
      (
      [attribute_code] => required_options
      [value] => 0
      )

      [9] => stdClass Object
      (
      [attribute_code] => has_options
      [value] => 0
      )

      [10] => stdClass Object
      (
      [attribute_code] => url_key
      [value] => watch
      )

      [11] => stdClass Object
      (
      [attribute_code] => gift_message_available
      [value] => 2
      )

      [12] => stdClass Object
      (
      [attribute_code] => swatch_image
      [value] => /p/i/pinking_swatch_sq_dia_beige_1.png
      )

      [13] => stdClass Object
      (
      [attribute_code] => tax_class_id
      [value] => 2
      )

      )

      )






      magento2 magento-2.1 rest rest-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 14 '18 at 9:14









      Avesh NaikAvesh Naik

      5132 silver badges14 bronze badges




      5132 silver badges14 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try using /V1/stockItems/:productSku



          For more details, you can go through https://devdocs.magento.com/guides/v2.0/rest/list.html#cataloginventory






          share|improve this answer























          • i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

            – Avesh Naik
            Jun 14 '18 at 9:23












          • @avesh You can modify it according to your requirement.

            – Anshu Mishra
            Jun 14 '18 at 9:28











          • ya i modified it, even i am getting product but when i request the with your url. It fails.

            – Avesh Naik
            Jun 14 '18 at 9:32











          • @avesh What have you changed?

            – Anshu Mishra
            Jun 14 '18 at 9:55














          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f229931%2fhow-to-get-qty-of-a-product-using-rest-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Try using /V1/stockItems/:productSku



          For more details, you can go through https://devdocs.magento.com/guides/v2.0/rest/list.html#cataloginventory






          share|improve this answer























          • i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

            – Avesh Naik
            Jun 14 '18 at 9:23












          • @avesh You can modify it according to your requirement.

            – Anshu Mishra
            Jun 14 '18 at 9:28











          • ya i modified it, even i am getting product but when i request the with your url. It fails.

            – Avesh Naik
            Jun 14 '18 at 9:32











          • @avesh What have you changed?

            – Anshu Mishra
            Jun 14 '18 at 9:55
















          0














          Try using /V1/stockItems/:productSku



          For more details, you can go through https://devdocs.magento.com/guides/v2.0/rest/list.html#cataloginventory






          share|improve this answer























          • i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

            – Avesh Naik
            Jun 14 '18 at 9:23












          • @avesh You can modify it according to your requirement.

            – Anshu Mishra
            Jun 14 '18 at 9:28











          • ya i modified it, even i am getting product but when i request the with your url. It fails.

            – Avesh Naik
            Jun 14 '18 at 9:32











          • @avesh What have you changed?

            – Anshu Mishra
            Jun 14 '18 at 9:55














          0












          0








          0







          Try using /V1/stockItems/:productSku



          For more details, you can go through https://devdocs.magento.com/guides/v2.0/rest/list.html#cataloginventory






          share|improve this answer













          Try using /V1/stockItems/:productSku



          For more details, you can go through https://devdocs.magento.com/guides/v2.0/rest/list.html#cataloginventory







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jun 14 '18 at 9:19









          Anshu MishraAnshu Mishra

          5,8715 gold badges28 silver badges65 bronze badges




          5,8715 gold badges28 silver badges65 bronze badges












          • i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

            – Avesh Naik
            Jun 14 '18 at 9:23












          • @avesh You can modify it according to your requirement.

            – Anshu Mishra
            Jun 14 '18 at 9:28











          • ya i modified it, even i am getting product but when i request the with your url. It fails.

            – Avesh Naik
            Jun 14 '18 at 9:32











          • @avesh What have you changed?

            – Anshu Mishra
            Jun 14 '18 at 9:55


















          • i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

            – Avesh Naik
            Jun 14 '18 at 9:23












          • @avesh You can modify it according to your requirement.

            – Anshu Mishra
            Jun 14 '18 at 9:28











          • ya i modified it, even i am getting product but when i request the with your url. It fails.

            – Avesh Naik
            Jun 14 '18 at 9:32











          • @avesh What have you changed?

            – Anshu Mishra
            Jun 14 '18 at 9:55

















          i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

          – Avesh Naik
          Jun 14 '18 at 9:23






          i am using this one. github.com/WebWeave/magento2-sdk/tree/master/src/WebWeave/… How can i use it. Or should i create a new one

          – Avesh Naik
          Jun 14 '18 at 9:23














          @avesh You can modify it according to your requirement.

          – Anshu Mishra
          Jun 14 '18 at 9:28





          @avesh You can modify it according to your requirement.

          – Anshu Mishra
          Jun 14 '18 at 9:28













          ya i modified it, even i am getting product but when i request the with your url. It fails.

          – Avesh Naik
          Jun 14 '18 at 9:32





          ya i modified it, even i am getting product but when i request the with your url. It fails.

          – Avesh Naik
          Jun 14 '18 at 9:32













          @avesh What have you changed?

          – Anshu Mishra
          Jun 14 '18 at 9:55






          @avesh What have you changed?

          – Anshu Mishra
          Jun 14 '18 at 9:55


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f229931%2fhow-to-get-qty-of-a-product-using-rest-api%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form