search

Resolves the best match based on categories and attributes

This endpoint is intended to provide one best match.

The request needs to match at least one category and one attribute. For example, searching for Hosen schwarz Unifarben useless would return category Hosen that have two attributes: schwarz and Unifarben. The Useless will be discarded.

get/v1/search/resolve

Query parameters

termstring required
Example:Hosen schwarz

The search term to match attributes and categories.

categoryIdinteger
Example:20201

The categoryId parameter is used to filter the results and limit the returned data to items that belong to the specified category or its child categories.

Response

successful operation

Example response

{
  "matches": [
    {
      "count": 20201,
      "match": "Hosen Unifarben",
      "category": {
        "match": "Hosen",
        "id": 20201,
        "name": "Hosen"
      },
      "attributes": [
        {
          "match": "Unifarben",
          "name": "pattern",
          "attributeGroup": 123,
          "attributeId": 223344
        }
      ]
    }
  ]
}

Changes