magento · Schema

CartItem

A product line item in a shopping cart (quote).

Properties

Name Type Description
item_id integer Numeric cart item entity ID.
sku string SKU of the product in the cart.
qty number Quantity of the product in the cart.
name string Display name of the product.
price number Unit price of the product.
product_type string Product type of the cart item.
quote_id string The cart (quote) ID this item belongs to.
View JSON Schema on GitHub

JSON Schema

magento-cartitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CartItem",
  "title": "CartItem",
  "type": "object",
  "description": "A product line item in a shopping cart (quote).",
  "properties": {
    "item_id": {
      "type": "integer",
      "description": "Numeric cart item entity ID."
    },
    "sku": {
      "type": "string",
      "description": "SKU of the product in the cart."
    },
    "qty": {
      "type": "number",
      "description": "Quantity of the product in the cart."
    },
    "name": {
      "type": "string",
      "description": "Display name of the product."
    },
    "price": {
      "type": "number",
      "description": "Unit price of the product."
    },
    "product_type": {
      "type": "string",
      "description": "Product type of the cart item."
    },
    "quote_id": {
      "type": "string",
      "description": "The cart (quote) ID this item belongs to."
    }
  }
}