ReDoc documentation

guest-carts/{cartId}/items/{itemId}

guest-carts/{cartId}/items/{itemId}

put/V1/guest-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

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

guest-carts/{cartId}/items/{itemId}

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

Remove the specified item from the specified cart.

Request
path Parameters
cartId
required
string

The cart ID.

itemId
required
integer

The item ID of the item to be removed.

Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

Response samples
true