Add item to quote.
Sample Curl
Simple product
curl --location 'https://mygatewayurl.com/V1/storeview/default/user/quote/item' --header 'Authorization: Bearer qsk2p2azmuylkcgsuhhkbale7vk571vn' --header 'Content-Type: application/json' --data '{ "cartItem ": { "sku ": "j32tz87k125 ", "qty ": 1, "quote_id ": "184 "}}'
Configurable products
Please note, option_id is attribute_id and option_value is the option value provided in product detail API.
curl --location 'https://mygatewayurl.com/V1/storeview/default/user/quote/item' --header 'Authorization: Bearer qsk2p2azmuylkcgsuhhkbale7vk571vn' --header 'Content-Type: application/json' --data '{ "cartItem ": {"sku ": "configurable product easyroll ","qty ": 1,"quote_id ": "184 ","product_option ": {"extension_attributes ": { "configurable_item_options ": [{"option_id ": "93 ","note ": "option_id is attribute_id and option_value is the option value provided in PDP ","option_value ": 11}]}}}}'
post https://{baseUrl}/V1/storeview//user/quote/item