Skip to content

Magento_Quote

Shopping cart data model, item management, totals calculation, address handling, coupon application, and payment method storage.

226 Components 38 Interfaces 63 REST Endpoints

Module Overview

The Magento_Quote module is the foundational data layer for the shopping cart. It manages the quote entity (the cart before it becomes an order), including items, addresses, shipping methods, payment methods, coupons, and totals calculation. This is a pure data model module with no UI components - all frontend rendering is handled by Magento_Checkout.

226
PHP Components
38
Service Contracts
63
REST Endpoints
8
Database Tables

Component Breakdown

Core Data Layer

  • Models172
  • API Interfaces38
  • Preferences41

Extension Points

  • Observers5
  • Plugins5
  • Validation Rules6

API Surface

  • REST Endpoints63
  • Guest Endpoints21
  • Customer Endpoints21

Documentation

Key Features

Cart Management

Complete cart lifecycle from creation to order conversion, with item add/update/delete operations.

Totals Collection

Extensible totals collector system for subtotal, shipping, tax, discounts, and grand total calculation.

Address Handling

Billing and shipping address management with validation, country restrictions, and VAT handling.

Coupon Application

Coupon code validation and application with integration to SalesRule for discount calculation.

Guest Cart Support

Masked quote IDs for anonymous cart access, with cart merge on customer login.

Validation Rules

Composable validation system for addresses, shipping methods, payment methods, and minimum order amounts.

Module Dependencies

The Quote module depends on these core modules:

Magento_Catalog

Product data for cart items, pricing, and options

Magento_Customer

Customer data, addresses, and group pricing

Magento_Store

Store context, currency, and website scope

Quick Reference

Key Service Contracts

  • CartRepositoryInterface
  • CartManagementInterface
  • CartItemRepositoryInterface
  • CartTotalRepositoryInterface
  • BillingAddressManagementInterface
  • ShippingMethodManagementInterface

Key REST Endpoints

  • POST /V1/carts/mine
  • GET /V1/carts/mine/items
  • POST /V1/carts/mine/items
  • GET /V1/carts/mine/totals
  • POST /V1/guest-carts
  • PUT /V1/carts/:cartId/order