Home > @vsf-enterprise/sap-commerce-webservices-sdk > OrdersApi > countUserOrders

OrdersApi.countUserOrders() method

In the response header, the "x-total-count" indicates the total number of orders placed by a specified user for a specified base store. Get total number of orders.

Signature:

countUserOrders(baseSiteId: string, userId: string, statuses?: string, options?: any): Promise<import("axios").AxiosResponse<void>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
userId string User identifier or one of the literals : &#39;current&#39; for currently authenticated user, &#39;anonymous&#39; for anonymous user
statuses string Filters only certain order statuses. For example, statuses&#x3D;CANCELLED,CHECKED_VALID would only return orders with status CANCELLED or CHECKED_VALID.
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<void>>

Exceptions

{RequiredError} OrdersApi