# Category tree by country **GET /categories/tree/{countryId}** ### Endpoint to get categories by country Filling in the above requirements is used to properly equip the products into the web section. If this is not the case, the product may not be listed correctly or may not appear on our website at all. ### Description of product category section (`sapCategories`) * An operator is an element that is informative and is not desirable for parameter values. ``` "sapCategories": [ { "productTypeId": "WA039", "operator": "AND", "menuConstraints": [ { "paramId": "ELECTRIC", "operator": "=", "value1": "Ano", "value2": "string", "class": 6 } ], "segment": "EB" } ] ``` #### The `operator` field may contain following attributes * `AND` all menuConstraints items must be evaluated as true * `OR` one of menuConstraints items must be evaluated as true ### Description of category conditions section (`menuConstraints`) * An operator is an element that is informative and is not desirable for parameter values. ``` "menuConstraints": [ { "paramId": "ELECTRIC", "operator": "=", "value1": "Ano", "value2": "string", "class": 6 } ] ``` #### The field `operator` may contain following attributes * `IN` selection from a set of values * `ALL` respected parameter has to have all values * `NOT IN` respected parameter has to have NONE of the values * `=` must contains value1 * `><` items between values * `>` greater than value1 * `<` smaller than value1 * `<>` not equal to value1 **Please state all the requisites in accordance with the documentation received for your specific connection.** ### Description of the `fulltextQuery` field * This optional field specifies which keywords must / must not appear in the short and long product description. * The query uses Elasticsearch "Simple query string query" syntax specified [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html). * Example: the query `+("carrot", "cucumber") -("apple", "pear")` means that the short and long product description must contain one of ["carrot", "cucumber"] and must not contain neither of ["apple", "pear"]. ## Servers ## Parameters ### Headers - **X-Application-Name** (string) ### Path parameters - **countryId** (string) Country ID ### Query parameters - **client_id** (string) Client identifier ## Responses ### 200 Category tree #### Body: (object) - **data** (array[object]) - **result** (object) [Powered by Bump.sh](https://bump.sh)