Hi I want to add attribute label and attribute option value label to Magento 2 Guest cart REST API response like below screen shot by overriding default magento 2 files.
Please help to me
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityHi I want to add attribute label and attribute option value label to Magento 2 Guest cart REST API response like below screen shot by overriding default magento 2 files.
Please help to me
Try :
POST
http://domain.com/index.php/rest/V1/carts/guest-cart-id/items
Header Authorization Bearer {token}
Body
{
"cart_item": {
"quote_id": "{Cart ID}",
"sku": "WT09",
"qty": 1,"product_option": {
"extension_attributes": {
"configurable_item_options": [
{
"option_id": "93", //This is for color, you can edit
"option_value":57,
"extension_attributes": {}
},
{
"option_id": "141", //This is for size, you can edit
"option_value":167,
"extension_attributes": {}
}
]
}
},
"extension_attributes": {}
}
}