> For the complete documentation index, see [llms.txt](https://docs.expirenza.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.expirenza.com/api/messages/categoriesinfo.md).

# Отримання категорій

Для отримання категорій, Expirenza надсилатиме наступне повідомлення:

<details>

<summary>categoriesInfo</summary>

{% code lineNumbers="true" %}

```json
{
    "rID" : "2021-03-13 00:32:04.942046#UP57RxE",
    "operation" : "categoriesInfo"
}
```

{% endcode %}

```
❗️ Обов'язкові елементи запиту: rID, operation.
```

</details>

Відповідь обробки операції необхідно надіслати в наступному вигляді:

{% openapi src="/files/k4R9oTFin8KVNXJtTuan" path="/callback/categoriesInfo" method="post" %}
[categoriesInfo.json](https://115752690-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUrrjxJkhEuwfb0dGwW06%2Fuploads%2FGTDCiotrTqWWqccwqTOl%2FcategoriesInfo.json?alt=media\&token=394bdb1b-6574-4d15-8c93-4b6500b3c333)
{% endopenapi %}

<details>

<summary><strong>Payload example: <code>/callback/categoriesInfo</code></strong></summary>

{% code title="JSON" lineNumbers="true" %}

```json
{
  "categories": [
    {
      "id": "7_7d-72gma",
      "name": "Кухня",
      "type": "product"
    }
  ],
  "rID": "2021-04-01 09:39:06.021078#BpOI0gO"
}
```

{% endcode %}

</details>
