Alokai
You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x

GetAllCartsProps

Parameters for getting user carts.

export interface GetAllCartsProps extends BaseProps, BaseUserId {
	currentPage?: number;
	pageSize?: number;
	savedCartsOnly?: boolean;
	sort?: string;
}

Properties

NameRequiredTypeDescription
currentPageOptionalnumberOptional pagination parameter. Has effect only if savedCartsOnly is set to true. Defaults to 0.
pageSizeOptionalnumberNumber of carts to return. Has effect only if savedCartsOnly is set to true. Defaults to 20.
savedCartsOnlyOptionalbooleanIf provided, only saved carts will be returned.
sortOptionalstringCarts sorting rule. Has effect only if savedCartsOnly is set to true.

Referenced Types

On this page