Log in
Repository

GuestCartTotalRepositoryInterface

Magento\Quote\Api\GuestCartTotalRepositoryInterface

What it does

This interface defines the contract for retrieving shopping cart totals for guest customers (non-logged-in users) in Magento 2.

Developers use this when building checkout flows or cart displays for guest shoppers, as it provides access to subtotals, taxes, discounts, shipping costs, and grand totals using only the guest cart ID.

This is part of Magento's REST API layer for guest cart operations.

Public Methods

  • get()