0

I want to get the list of items in a customer's shopping cart through REST API. I am using GET /V1/carts/mine but not getting the shopping cart item list. What will be the best way to get it with thumbnail.

1 Answer 1

0

You can use GET /rest/default/V1/carts/<cartID>/items and you will get the list of items from a cart specified by its cart/quote ID

Response format is:

[
    {
        "item_id": 149,
        "sku": "24-UG01",
        "qty": 1,
        "name": "Quest Lumaflex&trade; Band",
        "price": 17,
        "product_type": "simple",
        "quote_id": "56"
    },
    {
        "item_id": 150,
        "sku": "24-UG03",
        "qty": 1,
        "name": "Harmony Lumaflex&trade; Strength Band Kit ",
        "price": 20,
        "product_type": "simple",
        "quote_id": "56"
    }
]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.