{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/joinposter-com/json-schema/joinposter-com-get-api-finance-getreport-response-schema.json",
  "title": "GetApiFinanceGetreportResponse",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/joinposter-com-openapi-generated.yml#/components/schemas/GetApiFinanceGetreportResponse",
  "type": "object",
  "properties": {
    "response": {
      "type": "object",
      "description": "Объект ответа"
    },
    "response.periods": {
      "type": "array",
      "description": "Массив содержит периоды по которым разбит отчет"
    },
    "response.periods[].title": {
      "type": "string",
      "description": "Название периода: год, квартал, месяц, неделя, день"
    },
    "response.periods[].start": {
      "type": "integer",
      "description": "Дата начала в формате unixtimestamp"
    },
    "response.periods[].end": {
      "type": "integer",
      "description": "Дата конца перода в формате unixtimestamp"
    },
    "response.categories": {
      "type": "object",
      "description": "Объект свойства которого — ID категории а значение — объект отчета"
    },
    "response.categories.{category_id}": {
      "type": "object",
      "description": "Объект отчета для конкретной категории"
    },
    "response.categories.{category_id}.category_id": {
      "type": "string",
      "description": "ID категории"
    },
    "response.categories.{category_id}.name": {
      "type": "string",
      "description": "Название категории"
    },
    "response.categories.{category_id}.delete": {
      "type": "string",
      "description": "Признак, удалена ли категория: 1 — удалена, 0 — нет"
    },
    "response.categories.{category_id}.parent_id": {
      "type": "string",
      "description": "ID родительской категории"
    },
    "response.categories.{category_id}.operations": {
      "type": "string",
      "description": "Колличество транзакций проведенных в категории за выбранный период"
    },
    "response.categories.{category_id}.action": {
      "type": "string",
      "description": "Тип категорий по действиям: 1 — переводы, 11 — кассовые смены, 12 — поставоки, 14 — актуализация, 0 — любой тип действия"
    },
    "response.categories.{category_id}.left": {
      "type": "string",
      "description": "ID категории слева (по Nested Set)"
    },
    "response.categories.{category_id}.right": {
      "type": "string",
      "description": "ID катергории справа (по Nested Set)"
    },
    "response.categories.{category_id}.level": {
      "type": "string",
      "description": "Уровень вложенности ветки дерева категорий (по Nested Set)"
    },
    "response.categories.{category_id}.visible_pnl": {
      "type": "string",
      "description": "Отображение в отчёте P&L: 0 - не отображать, 1 - отображать."
    },
    "response.categories.{category_id}.pnl_group": {
      "type": "string",
      "description": "Группа в P&L. 0 - не отображать, 1 - доход, 2 - расходы, 3 - себестоимость, 4 - после прибыли после налогообложения."
    },
    "response.categories.{category_id}.currency_symbol": {
      "type": "string",
      "description": "Unicode символ валюты, для драма и маната приходит HTML который на терминале отобразиться как иконка валюты"
    },
    "response.categories.{category_id}.amounts": {
      "type": "object",
      "description": "Всего расходов и доходов, в категории. Содержит в себе набор объектов. В каждом объекте свойство — это название периода из `periods.title`, значение это сумма в копейках за данный период."
    }
  }
}