you need to use the following REST API to get data for children
GET / V1 / custom products / {sku} / children
Answer:
[
{
"sku": "MH01-XS-Black",
"name": "Chaz Kangeroo Hoodie-XS-Black",
"attribute_set_id": 9,
"price": 52,
"status": 1,
"type_id": "simple",
"created_at": "2015-11-20 08:12:24",
"updated_at": "2015-11-20 08:12:24",
"weight": 1,
"extension_attributes": [],
"product_links": [],
"tier_prices": [],
"custom_attributes": [
{
"attribute_code": "required_options",
"value": "0"
},
{
"attribute_code": "has_options",
"value": "0"
},
{
"attribute_code": "tax_class_id",
"value": "2"
},
{
"attribute_code": "image",
"value": "/m/h/mh01-black_main.jpg"
},
{
"attribute_code": "category_ids",
"value": [
"2",
"15",
"36"
]
},
{
"attribute_code": "size",
"value": "167"
},
{
"attribute_code": "color",
"value": "49"
},
{
"attribute_code": "small_image",
"value": "/m/h/mh01-black_main.jpg"
},
{
"attribute_code": "thumbnail",
"value": "/m/h/mh01-black_main.jpg"
},
{
"attribute_code": "url_key",
"value": "chaz-kangeroo-hoodie-xs-black"
},
{
"attribute_code": "msrp_display_actual_price_type",
"value": "0"
}
]
},
...
]
and if you need all the configurable parameters and the following API is called
GET / V1 / custom products / {sku} / options / all
Answer:
[
{
"id": 3,
"attribute_id": "90",
"label": "Color",
"position": 0,
"values": [
{
"value_index": 49
},
{
"value_index": 52
},
{
"value_index": 56
}
],
"product_id": 67
},
{
"id": 2,
"attribute_id": "137",
"label": "Size",
"position": 0,
"values": [
{
"value_index": 167
},
{
"value_index": 168
},
{
"value_index": 169
},
{
"value_index": 170
},
{
"value_index": 171
}
],
"product_id": 67
}
]