ReDoc documentation

guest-carts/{cartId}/items

guest-carts/{cartId}/items

get/V1/guest-carts/{cartId}/items

List items that are assigned to a specified cart.

Request
path Parameters
cartId
required
string

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Response samples
[
  • {
    }
]

guest-carts/{cartId}/items

post/V1/guest-carts/{cartId}/items

Add/update the specified cart item.

Request
path Parameters
cartId
required
string
Request Body schema:
required
object (quote-data-cart-item-interface)

Interface CartItemInterface

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Request samples
{
  • "cartItem": {
    }
}
Response samples
{
  • "item_id": 0,
  • "sku": "string",
  • "qty": 0,
  • "name": "string",
  • "price": 0,
  • "product_type": "string",
  • "quote_id": "string",
  • "product_option": {
    },
  • "extension_attributes": {
    }
}