-
Notifications
You must be signed in to change notification settings - Fork 512
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
Being able to query product/models by their identifiers/codes via tha API #12637
Comments
FYI, I also opened a ticket here akeneo/api-php-client#188... |
Hello Julien, Currently you can filter by https://api.akeneo.com/documentation/filter.html#filter-on-product-properties |
Ah thanks. $productModels = $this->apiClientFactory->getClient()->getProductModelApi()->all(
50,
['search' => ['code' => [['operator' => 'IN', 'value' => $akeneoProductModelIds]]]]
); which doesn't work. It's a bit missleading. |
I think it would be good do explicitly list all the properties in https://api.akeneo.com/documentation/filter.html#filter-on-product-properties. And same for product models. Thanks for the help anyway :) |
I agree, it is misleading. I tried filtering for 'code' first as well. |
Asking for a friend :p
Hello Akeneo,
I hope you're all going well :)
I have a list of products and product models I'd like to retrieve from Akeneo API. I know only their code/identifier. And I can't get them directly via the GET
/api/rest/v1/products
or/api/rest/v1/product-models
endpoints :(Indeed those endpoints do not allow me to search on
identifier
or oncode
, which seems to be a base need. I have to use unitary endpoints (``/api/rest/v1/products/{identifier}`) instead, which will increase the load on the server.Is this enhancement in the roadmap?
The text was updated successfully, but these errors were encountered: