@plentymarkets/shop-api / getProductsByIds
Function: getProductsByIds() ​
getProductsByIds(
context,params):Promise<Data<ProductsByIdsResponse>>
Defined in: api/getProductsByIds/index.ts:37
Method getProductsByIds - Used to get multiple products by item Id or variation Id.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<ProductsByIdsResponse>>
list of Products.
Remarks ​
- Calls /rest/storefront/items
- Method should be used to get multiple products by item Id or variation Id.
Examples ​
ts
const { data } = await useSdk().plentysystems.getProductsByIds({
variationIds: [1234, 4565, 1789],
});ts
const { data } = await useSdk().plentysystems.getProductsByIds({
itemIds: [1234, 4565, 1789],
});