Cart
Contains the contents and other details about a guest or customer cart.
Declared or extended by: GiftMessage, Quote, SalesRule
Fields
The entered gift message for the cart
The unique ID for a `Cart` object.
An array of products that have been added to the cart.
An array of `AppliedCoupon` objects. Each object contains the `code` text attribute, which specifies the coupon code.
The email address of the guest or customer.
An array of shipping addresses assigned to the cart.
The billing address assigned to the cart.
An array of available payment methods.
Indicates which payment method was applied to the cart.
Pricing details for the quote.
The total number of items in the cart.
Indicates whether the cart contains only virtual products.
Provides applied cart rules in the current active cart
Operations returning Cart
assignCustomerToGuestCart
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Quote · returns Cart!
cart
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Quote · returns Cart
customerCart
Return information about the customer's shopping cart.
Quote · returns Cart!
mergeCarts
phpcs:ignore Magento2.GraphQL.ValidArgumentName
Quote · returns Cart!
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.