Using Magento 2.2
, REST API
. What URI
of api for get list of product by item_id
?
This below get all item without defined item_id
GET /index.php/rest/V1/carts/mine/items HTTP/1.1
Content-Type: application/json
[
{
"item_id": 2094,
"sku": "Food with option 6-AS-----",
"qty": 2,
"name": "Food with option 6",
"price": 0,
"product_type": "configurable",
"quote_id": "1173",
"product_option": {
"extension_attributes": {
"custom_options": [
{
"option_id": "2",
"option_value": "4"
},
{
"option_id": "3",
"option_value": "7,9"
},
{
"option_id": "4",
"option_value": "10,11,12"
}
],
"configurable_item_options": [
{
"option_id": "155",
"option_value": 57
}
]
}
}
}
]
--- ANSWER ---
I use quote_id
instead of item_id
then use URI
GET {{url}}/index.php/rest/V1/carts/{{quote_id}}/items
json
above.