Hi I am trying to add configurable product add to cart using REST API in magento 2.1.8. but its getting
{ "message": "You need to choose options for your item." }
Note:- For logged in users i am trying to add.
{
"cartItem": {
"quote_id": "308",
"sku": "WSH12",
"qty": "1",
"product_option": {
"extension_attributes": {
configurable_item_options [
{
"option_id": "",
"option_value": ""
}, {
"option_id": "",
"option_value": ""
}
]
}
}
}
}
Screen shots:-
- Please clarify how to consider option_id an option_value? what exact values need to consider as per this example?
- Is it default magento 2 api issue?