Skip to main content

Type Alias: SubmitCart()

SubmitCart: (cartId, submitData) => Promise<CartSubmitResult>

Submits the cart with the provided contact information.

Parameters

cartId: string

The unique identifier for the cart.

submitData: BasketSubmissionData

The contact information payload for the submission.

Returns

Promise<CartSubmitResult>

A promise that resolves to a CartSubmitResult containing the reference code for the submission.

Throws

Error Will throw an error if cartId or submitData is missing.

Example usage:

const submitData: BasketSubmissionData = { ... };
const result = await window.mimeeqApp.actions.submitCart('cart123', submitData);
console.log(result.referenceCode);