Skip to main content

Type Alias: GetCartForPreview()

GetCartForPreview: (cartId) => Promise<CartForEmail>

Retrieves the cart data formatted for email preview purposes. This includes details such as customer information, cart items, and pricing.

Parameters

cartId

string

The unique identifier for the cart.

Returns

Promise<CartForEmail>

A promise that resolves to a CartForEmail object containing comprehensive details of the cart, ready for email presentation.

Throws

Error Will throw an error if cartId is missing.

Example usage:

const cartPreview = await window.mimeeqApp.actions.getCartForPreview('cart123');
console.log(cartPreview);