Our frontend API endpoints return items (products, promo, articles).
To be able to distinguish the different tiles, we include an optional origin
field:
<item>
<itemno>10001-101</itemno>
<title>Tweakwise Hoodie Blue</title>
...
<origin>
<type>promotion</type>
<name>Pinned</name>
</origin>
</item>
{
"itemno": "10001-101",
"title": "Tweakwise Hoodie Blue",
//...
"origin": {
"type": "promotion",
"name": "Pinned"
}
}
This field can be used to determine what to do on the front-end.
Types
There are a couple of reserved types that are already in use:
- visual-merchandising: pinned products
- external-data: out-of-the-box support for External Data Source
- visual: out-of-the-box support for displaying promotional items
Endpoints
The following endpoints might contain this field:
- Navigation including the grouped variant
- Navigation search including the grouped variant
- Suggestion products including the grouped variant
- Products
- All recommendation endpoints: