In Magento 2, is it possible to get the associated simple products of a configurable product, via Service Contracts?

The only reference to the product type that I can find is ProductInterface::getTypeId(), but nothing that gives access to the underlying product type instance.


Yes you can do it by using the getChildren method from Magento/ConfigurableProduct/Api/LinkManagementInterface class.

You will have to use the sku as a parameter

  • 1
    Ah, I forgot that it's a completely separate module now, thanks! – Fabian Schmengler Jun 4 '16 at 8:42
  • @fschmengler yeah I tend to forget it too ^^ same goes for Bundle / Downloadable / Grouped – Raphael at Digital Pianism Jun 4 '16 at 8:45

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.