@plentymarkets/shop-api / getItemProperties
Function: getItemProperties() ​
getItemProperties(
context):Promise<Data<ItemPropertyGroup[]>>
Defined in: api/getItemProperties/index.ts:22
Method getItemProperties - Retrieves item property groups with all available translations.
Parameters ​
context ​
PlentysystemsIntegrationContext
Returns ​
Promise<Data<ItemPropertyGroup[]>>
Array of raw item property groups.
Remarks ​
- Calls /rest/storefront/editor/item-properties endpoint.
- Protected by the PWA Editor Middleware.
- The backend resolves the locale from the vsf-locale cookie.
- Each group and property contains a locale-keyed
namesanddescriptionsmap. Apply translation fallback logic (locale → en → "Missing translation for id: {id}") in the PWA.
Example ​
ts
const { data } = await useSdk().plentysystems.getItemProperties();