Alokai

GetAllCartsProps

Parameters for getting user carts.

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