Get Cart Contents¶
Retrieves the current cart contents including items and total.
query MyQuery {
cart {
items {
productVariant {
id
name
price
priceRaw
priceWithoutSymbol
}
quantity
subtotal
}
total
}
}
Response Fields¶
items: List of items in the cart
quantity: Number of items
subtotal: Price subtotal for this line item (formatted string with currency)
productVariant: Associated product variant information
total: Total price of all items in cart (formatted string with currency)