Log in
Interface

CartManagementInterface

Magento\Quote\Api\CartManagementInterface

What it does

This interface defines the core shopping cart management operations in Magento 2.

Developers use it to create empty carts for guests or customers, retrieve existing customer carts, assign customers to carts, and place orders.

It serves as the primary API contract for cart lifecycle management from creation through checkout completion.

Public Methods

  • createEmptyCart()
  • createEmptyCartForCustomer()
  • getCartForCustomer()
  • assignCustomer()
  • placeOrder()