carts/{cartId}/items/{itemId}

carts/{cartId}/items/{itemId}

put/V1/carts/{cartId}/items/{itemId}

Add/update the specified cart item.

Request
path Parameters
cartId
required
string
itemId
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": {
    }
}

carts/{cartId}/items/{itemId}

delete/V1/carts/{cartId}/items/{itemId}

Removes the specified item from the specified cart.

Request
path Parameters
cartId
required
integer

The cart ID.

itemId
required
integer

The item ID of the item to be removed.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

Response samples
true