0

API Call URL: GET index.php/rest/V1/configurable-products/$sku/children

I'm trying to update configurable child product prices with rest api, I'm trying to get the child information through above API route but i'm getting 'Request does not match any route'.

object(stdClass)#19 (2) { ["message"]=> string(33) "Request does not match any route." ["trace"]=> NULL }

i'm following this thread https://github.com/magento/magento2/issues/3794

How i can get child sku's:

{"id":95,"sku":"With_Size","name":"With Size","attribute_set_id":20,"price":0,"status":1,"visibility":4,"type_id":"configurable","created_at":"2018-07-09 07:39:28","updated_at":"2018-07-12 18:24:37","extension_attributes":{"website_ids":[1],"category_links":[{"position":0,"category_id":"266"},{"position":0,"category_id":"267"}],"stock_item":{"item_id":95,"product_id":95,"stock_id":1,"qty":0,"is_in_stock":true,"is_qty_decimal":false,"show_default_notification_message":false,"use_config_min_qty":true,"min_qty":0,"use_config_min_sale_qty":1,"min_sale_qty":1,"use_config_max_sale_qty":true,"max_sale_qty":10000,"use_config_backorders":true,"backorders":0,"use_config_notify_stock_qty":true,"notify_stock_qty":1,"use_config_qty_increments":true,"qty_increments":0,"use_config_enable_qty_inc":true,"enable_qty_increments":false,"use_config_manage_stock":false,"manage_stock":false,"low_stock_date":null,"is_decimal_divided":false,"stock_status_changed_auto":0},"configurable_product_options":[{"id":35,"attribute_id":"137","label":"Size","position":0,"values":[{"value_index":172},{"value_index":173},{"value_index":174},{"value_index":175},{"value_index":176}],"product_id":95}],"configurable_product_links":[90,91,92,93,94]},"product_links":[],"options":[],"media_gallery_entries":[{"id":4784,"media_type":"image","label":null,"position":1,"disabled":false,"types":["image","small_image","thumbnail"],"file":"/1/0/1002_1.jpg"}],"tier_prices":[],"custom_attributes":[{"attribute_code":"meta_title","value":"With Size"},{"attribute_code":"meta_keyword","value":"With Size"},{"attribute_code":"meta_description","value":"With Size "},{"attribute_code":"image","value":"/1/0/1002_1.jpg"},{"attribute_code":"small_image","value":"/1/0/1002_1.jpg"},{"attribute_code":"thumbnail","value":"/1/0/1002_1.jpg"},{"attribute_code":"category_ids","value":["266","267"]},{"attribute_code":"options_container","value":"container2"},{"attribute_code":"required_options","value":"0"},{"attribute_code":"has_options","value":"0"},{"attribute_code":"msrp_display_actual_price_type","value":"0"},{"attribute_code":"url_key","value":"with-size"},{"attribute_code":"gift_message_available","value":"2"},{"attribute_code":"tax_class_id","value":"2"},{"attribute_code":"gender","value":"81"},{"attribute_code":"size","value":"172"},{"attribute_code":"product_purity","value":"264"},{"attribute_code":"product_gross_weight","value":"4"},{"attribute_code":"product_net_weight","value":"3"},{"attribute_code":"product_type","value":"232"},{"attribute_code":"brands","value":"233"},{"attribute_code":"item_package_quantity","value":"2"},{"attribute_code":"gold_colour","value":"234"},{"attribute_code":"gold_certification","value":"235"},{"attribute_code":"making_percentage","value":"16"}]}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.