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

GetUserOrderHistoryProps

Properties for getting current user order history.

export interface GetUserOrderHistoryProps extends BaseProps, BaseUserId {
	currentPage?: number;
	pageSize?: number;
	sort?: string;
	statuses?: keyof typeof ORDER_STATUSES | string;
}

Properties

NameRequiredTypeDescription
currentPageOptionalnumberThe current result page requested.
pageSizeOptionalnumberThe number of results returned per page.
sortOptionalstringSorting method applied to the return results.
statusesOptionalkeyof typeof ORDER_STATUSES | stringOrder statuses to filter the returned results by. For example, statuses: CANCELLED,CHECKED_VALID would only return orders with status CANCELLED or CHECKED_VALID.

Referenced Types

On this page