@plentymarkets/shop-api / getProductsByIds
Function: getProductsByIds() ​
getProductsByIds(
context,params):Promise<Data<ProductsByIdsResponse>>
Defined in: api/getProductsByIds/index.ts:30
Method getProductsByIds - Used to get multiple products by 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 variation Id.
Example ​
ts
const { data } = await useSdk().plentysystems.getProductsByIds({
variationIds: [1234, 4565, 1789],
});