carts/{quoteId}/items

carts/{quoteId}/items

post/V1/carts/{quoteId}/items

Add/update the specified cart item.

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

Interface CartItemInterface

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

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": {
    }
}