-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product list does not contain [extension_attributes][stock_item] #36533
Comments
Hi @olsavmic. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-November. Thank you for working on this issue.
|
Hi @olsavmic , |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-7112 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
@magento I am working on this |
Hi @olsavmic, Thanks for your Contribution!!. As per this comment #36615 (comment) we are closing this issue. Thanks. |
Preconditions and environment
Steps to reproduce
Call
/rest/V1/products?searchCriteria
API, look for extension_attributes and compare the output with the API documentationExpected result
stock_item should be part of extension_attributes in product listing
Actual result
stock_item is available only on the product detail
Additional information
I'd like to reopen the discussion around already existing but closed issues:
#24418
#22737
The official API documentation for
/rest/V1/products
endpoint containsstock_item
record in theextension_attributes
. Thestock_item
is indeed part of the/rest/V1/products/{productSku}
extension_attributes.From the comment and code on one of the issues, it seems like the
stock_item
field will be removed in the future and /stockItems/{productSku} endpoint should be used instead.Since it took us hours to find out that the documentation is invalid, I'd propose one of following:
stock_item
is missing fromextension_attributes
(although not ideal, the intent would be clear)stock_items
(already tried in Fixed rest API products stockitem /V1/products?searchCriteria #22737 #28435, closed for inactivity)Correct me please if the issue was fixed as I see #24418 in "status:done" (and I don't have a testing environment with the latest release) but I did not find any finished PR with the fix.
We'd highly prefer the option to get the stock_item information during product listing as we're integrating Magento with our ERP and right now we have to execute thousands of additional queries (I don't know of any bulk endpoint to retrieve the stock details for all products) but we can work with the workaround, fixing the docs would be enough if that's the agreed direction.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: