Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > countProductStockByLocation

ProductsApi.countProductStockByLocation() method

In the response header, the "x-total-count" indicates the total number of a product's stock levels. The following two sets of parameters are available: location (required); or longitude (required), and latitude (required). Get header with a total number of product's stock levels.

Signature:

countProductStockByLocation(baseSiteId: string, productCode: string, latitude?: number, location?: string, longitude?: number, options?: any): Promise<import("axios").AxiosResponse<void>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
productCode string Product identifier
latitude number Latitude location parameter.
location string Free-text location
longitude number Longitude location parameter.
options any Override http request option.

Returns:

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

Exceptions

{RequiredError} ProductsApi