@plentymarkets/shop-api / getProduct
Function: getProduct() ​
Method getProduct - Used to get product instance.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: ProductParams
ProductParams
Returns ​
Remarks ​
calls /rest/storefront/items/${ params.id } if used with query ?withVariationAttributeMap=true it returns the product with mapped variations.
Example ​
ts
let params = {
id: productId,
};
const { data, error } = await useAsyncData(() => useSdk().plentysystems.getProduct(params));