Home > @vsf-enterprise/sap-commerce-webservices-sdk > ProductsApi > getProductReferences
ProductsApi.getProductReferences() method
Returns references for a product with a given product code. Reference type specifies which references to return. Get a product reference
Signature:
getProductReferences(baseSiteId: string, productCode: string, fields?: string, pageSize?: number, referenceType?: string, options?: any): Promise<import("axios").AxiosResponse<ProductReferenceList>>;
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 |
pageSize | number | Maximum size of returned results. |
referenceType | string | Comma-separated list of reference types according to enum ProductReferenceTypeEnum. If not specified, all types of product references will be used. |
options | any | Override http request option. |
Returns:
Promise<import("axios").AxiosResponse<ProductReferenceList>>
Exceptions
{RequiredError} ProductsApi