Data Types in the Items API
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
FHR
Items API
Translatable
{
"attributes": {
"in_stock": 1
}
}{
"attributes": {
"price": 33.3
}
}{
"attributes": {
"_imageurl": "https://example.com/media/main_img.jpg"
}
}{
"attributes": {
"display_name": {
"en_GB": "World Cup Boots",
"fr_FR": "Chaussures World Cup"
}
}
}Attribute type Object/ObjectList
[
{
"name": {attribute_name},
"type": "OBJECT" | "OBJECTLIST",
"attributes": [
{ "name": "value", "type": "LOCALIZEDTEXT"},
{ "name": "valueId", "type": "TEXT"}
]
}
]FHR data model validation
Last updated

