Home > @shopware-pwa/shopware-6-client > getCart
# getCart() function
Gets the current cart for the sw-context-token.
Signature:
export declare function getCart(contextInstance?: ShopwareApiInstance): Promise<Cart>;
# Parameters
Parameter | Type | Description |
---|---|---|
contextInstance | ShopwareApiInstance |
Returns:
Promise<Cart>
# Exceptions
ClientApiError