@plentymarkets/shop-api / getProduct
Function: getProduct() ​
Defined in: api/getProduct/index.ts:25
Method getProduct - Used to get product instance.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
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));