activeCart

Retrieves the active cart for the current user

This page contains

    Arguments

    locale Locale

    Preferred locale for the response (e.g., en-US, de, en-AU). If not provided, user's current locale will be used

    isPreviewCheckout Boolean

    Indicates if the cart is in checkout preview mode

    isHostedCheckout Boolean

    When true, return the active cart whose source mode is HOSTED_CHECKOUT

    Return Fields

    Cart

    A user's cart containing items to be purchased

    Interactive example

    This is an example query. Use the embedded interactive tool below to edit the query.

    Hint: use Ctrl + Space for autocompleting fields.