Onboarding on/migrating to Fredhopper
If you are onboarding on Fredhopper or migration from previous FHR DATA API based on CSV or JSON files, please follow mapping below how to represent Fredhopper data types in the items API.
FHR to Items API data type mapping
categories attribute (i.e. hierarchical type) is mandatory on parent item creation (POST operation) and contains a list of item's leaf category ids.
int
INTEGER
✘
float
FLOAT
✘
text
TEXT
✘
asset
LOCALIZEDTEXT
✔
list/list64
OBJECT
✔
set/set64
OBJECTLIST
✔
hierarchical
LIST
✔
Fredhopper requires for localisable attributes the locale to be sent, even if the catalogue contains only a single locale
Attribute type Object/ObjectList
The attribute type Object and ObjectList must have the following structure and be set at the root level of the schema or variant:
FHR data model validation
The new items API supports a more flexible data model which may not always be supported by the Fredhopper platform. The query parameter fhrValidation=true can be added to enforces Fredhopper specific validation to the schema API, the category API and the items API to ensure all the data can correctly be indexed.
Last updated