MageSmith
OBJECT Magento 2.4.9

Cart

Contains the contents and other details about a guest or customer cart.

Declared or extended by: GiftMessage, Quote, SalesRule

Fields

gift_message GiftMessage

The entered gift message for the cart

id ID! Required

The unique ID for a `Cart` object.

items [CartItemInterface] Deprecated

An array of products that have been added to the cart.

itemsV2 CartItems
applied_coupon AppliedCoupon Deprecated
applied_coupons [AppliedCoupon]

An array of `AppliedCoupon` objects. Each object contains the `code` text attribute, which specifies the coupon code.

email String

The email address of the guest or customer.

shipping_addresses [ShippingCartAddress]! Required

An array of shipping addresses assigned to the cart.

billing_address BillingCartAddress

The billing address assigned to the cart.

available_payment_methods [AvailablePaymentMethod]

An array of available payment methods.

selected_payment_method SelectedPaymentMethod

Indicates which payment method was applied to the cart.

prices CartPrices

Pricing details for the quote.

total_quantity Float! Required

The total number of items in the cart.

is_virtual Boolean! Required

Indicates whether the cart contains only virtual products.

Provides applied cart rules in the current active cart

Operations returning Cart

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.