Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > getProduct
ProductsApi.getProduct() method
Returns details of a single product according to a product code. Get product details.
Signature:
getProduct(baseSiteId: string, productCode: string, fields?: string, options?: any): Promise<import("axios").AxiosResponse<Product>>;
Parameters
Parameter | Type | Description |
---|---|---|
baseSiteId | string | Base site identifier |
productCode | string | Product identifier |
fields | string | Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<Product>>
Exceptions
{RequiredError} ProductsApi