Item origin

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:

Endpoints

The following endpoints might contain this field: