Аналитика · Чтение
Получить сводку за сегодня
Собирает дневные итоги в одном ответе и отмечает пропущенные показатели.
business_get_today_summary
Попробуйте три запроса
Получить данные
- Вы указываетеТочка для календаря
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Собери сводку за сегодня по доступным данным. Уточни филиал для календаря, если у точек разные часовые пояса. Обозначь пропуски в источниках.
- calculatedAt
- Поле ответа
- results
- Результаты
- omittedMetrics
- Поле ответа
Задать параметры
- Вы указываетеТочка для календаря
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Получить сводку за сегодня» на учебном примере с calendarLocationId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- calendarLocationId
- DEMO-101
- pointOfSaleId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Получить сводку за сегодня» объясни calculatedAt, результаты. Отметь отсутствующие значения.
- calculatedAt
- Поле ответа
- results
- Результаты
- omittedMetrics
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Get today business totals, including revenue.paid (выручка за сегодня), in one server batch. Revenue is confirmed positive payment receipts by payment Date, grouped by currency; it is neither order totals nor account balance. Use this for current-day revenue instead of orders_search, which reads the synchronized archive. If company locations use different timezones, choose calendarLocationId from company_locations_list. Check revenue.paid sourceStatus: not_ready or incomplete means unknown, not zero. Uses the same metrics_get definitions and permissions.
Параметры запроса
- calendarLocationId
- Verified reporting establishment clock. If the company has different location timezones, choose a location from company_locations_list; this does not filter business data. необязательно · string · до символов 128
- pointOfSaleId
- Идентификатор выбранного филиала. необязательно · string · до символов 128
Что вернёт команда
- calculatedAt
- Server clock captured once for the batch; source data synchronization may be older. обязательно по схеме · string
- results
- Compact metrics in requested order, without raw orders, transactions or source profiles. обязательно по схеме · array · до элементов 20
- omittedMetrics
- Requested summary fields not available to this connection; omitted values are not zero. обязательно по схеме · array
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"calendarLocationId": {
"description": "Verified reporting establishment clock. If the company has different location timezones, choose a location from company_locations_list; this does not filter business data.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$"
},
"pointOfSaleId": {
"description": "Optional establishment filter for metrics with a native establishment dimension.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_-]+$"
}
},
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"calculatedAt": {
"type": "string",
"description": "Server clock captured once for the batch; source data synchronization may be older."
},
"results": {
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 100,
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$",
"description": "Canonical metric identifier requested."
},
"unit": {
"type": "string",
"description": "Metric unit; money currency and product identity are carried by dimensions."
},
"timeBehavior": {
"type": "string",
"enum": [
"PERIOD",
"SNAPSHOT",
"COHORT"
],
"description": "Meaning of the time window for this metric."
},
"definition": {
"description": "Exact definition of this selected authorized metric, only when includeDefinitions is true. No unrelated registry entries.",
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 100,
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$",
"description": "Stable canonical metric identifier."
},
"group": {
"type": "string",
"description": "Existing business metric subdivision, not another MCP tool."
},
"displayName": {
"type": "string",
"description": "Business name of this exact measurement."
},
"description": {
"type": "string",
"description": "Precise business meaning, including important exclusions."
},
"type": {
"type": "string",
"const": "number",
"description": "Numeric measurement type; null values remain unknown."
},
"unit": {
"type": "string",
"description": "Measurement unit; currencies and products remain separate dimensions."
},
"sourceOfTruth": {
"type": "string",
"description": "Existing native calculation reused by this metric."
},
"timeBehavior": {
"type": "string",
"enum": [
"PERIOD",
"SNAPSHOT",
"COHORT"
],
"description": "Whether the measurement represents a period, current state, or a defined cohort."
},
"supportedPeriods": {
"type": "array",
"items": {
"type": "string"
},
"description": "Explicit supported presets. Empty for snapshots; unsupported all_time is absent."
},
"requiredFilters": {
"type": "array",
"items": {
"type": "string"
},
"description": "Typed filter names required by this metric."
},
"supportedFilters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Predefined filter name."
},
"type": {
"type": "string",
"enum": [
"id",
"id[]"
],
"description": "Exact ID or bounded ID list."
},
"required": {
"type": "boolean",
"description": "Whether this filter must be supplied."
},
"description": {
"type": "string",
"description": "Business meaning of this filter."
}
},
"required": [
"name",
"type",
"required",
"description"
],
"additionalProperties": false
},
"description": "Closed filter contract; arbitrary fields or operators are not accepted."
},
"supportedDimensions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Supported native grouping dimensions."
},
"comparisonSupport": {
"type": "array",
"items": {
"type": "string",
"enum": [
"none",
"previous_period",
"previous_year"
]
},
"description": "Available server-resolved comparison policies."
},
"timezoneBehavior": {
"type": "string",
"description": "Native reporting clock and timezone resolution policy."
}
},
"required": [
"id",
"group",
"displayName",
"description",
"type",
"unit",
"sourceOfTruth",
"timeBehavior",
"supportedPeriods",
"requiredFilters",
"supportedFilters",
"supportedDimensions",
"comparisonSupport",
"timezoneBehavior"
],
"additionalProperties": false
},
"period": {
"anyOf": [
{
"$ref": "#/$defs/_mcp2"
},
{
"type": "null"
}
],
"description": "Actual interval and timezone, or null for a current snapshot."
},
"comparisonPeriod": {
"anyOf": [
{
"$ref": "#/$defs/_mcp2"
},
{
"type": "null"
}
],
"description": "Actual comparison interval, if requested and meaningful."
},
"values": {
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"description": "Native aggregate value. Null stays unknown/incomplete; no zero is invented.",
"type": [
"number",
"null"
]
},
"dimensions": {
"type": "object",
"properties": {
"resourceId": {
"description": "Native table/resource grouping key.",
"type": [
"string",
"null"
]
},
"pointOfSaleId": {
"description": "Native establishment grouping key.",
"type": [
"string",
"null"
]
},
"status": {
"description": "Native normalized status grouping key.",
"type": [
"string",
"null"
]
},
"channel": {
"description": "Native channel grouping key.",
"type": [
"string",
"null"
]
},
"source": {
"description": "Native source grouping key.",
"type": [
"string",
"null"
]
},
"pipelineId": {
"description": "Native pipeline grouping key.",
"type": [
"string",
"null"
]
},
"stageId": {
"description": "Native stage grouping key.",
"type": [
"string",
"null"
]
},
"accountId": {
"description": "Native financial account dimension.",
"type": "string"
},
"productId": {
"description": "Native product dimension; quantities of different products are not summed.",
"type": "string"
},
"employeeId": {
"description": "Native employee dimension.",
"type": "string"
},
"currency": {
"description": "Unchanged native currency label/code. Null is unknown, and different currencies are never combined.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false,
"description": "Native grouping keys; source records are not returned."
},
"comparisonValue": {
"description": "Matching dimension in the comparison interval; null if absent or unknown.",
"type": [
"number",
"null"
]
},
"change": {
"description": "Current minus comparison value when both are known.",
"type": [
"number",
"null"
]
},
"changePercent": {
"description": "100 times change divided by the absolute comparison value; null when unknown or the comparison is zero.",
"type": [
"number",
"null"
]
},
"lastSyncedAt": {
"description": "Native advertising synchronization timestamp, when reported.",
"type": [
"string",
"null"
]
},
"comparisonLastSyncedAt": {
"description": "Native comparison-period advertising synchronization timestamp, when reported.",
"type": [
"string",
"null"
]
}
},
"required": [
"value",
"dimensions"
],
"additionalProperties": false
},
"description": "Separate values per native dimension. Empty native data remains an empty series."
},
"entityIds": {
"description": "Bounded source IDs returned only by the attention summary.",
"maxItems": 10,
"type": "array",
"items": {
"type": "string"
}
},
"detailTool": {
"description": "Existing read Action for inspecting the source records.",
"type": "string"
},
"projectedAt": {
"description": "Newest source projection timestamp; asynchronous delivery can lag.",
"type": [
"string",
"null"
]
},
"sourceStatus": {
"description": "Source coverage: not_ready and incomplete are unknown, never zero.",
"type": "string"
},
"completeness": {
"description": "Native coverage indication; partial and unknown values are preserved.",
"type": [
"string",
"null"
]
},
"attribution": {
"description": "Native conversion attribution caveat; reported conversions are not unique customers.",
"type": [
"string",
"null"
]
},
"comparisonSourceStatus": {
"description": "Native completeness status for the comparison interval, independently of the current interval.",
"type": "string"
},
"comparisonCompleteness": {
"description": "Native comparison coverage indication; a numeric change does not establish complete coverage.",
"type": [
"string",
"null"
]
},
"comparisonAttribution": {
"description": "Native comparison-period conversion attribution caveat.",
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"unit",
"timeBehavior",
"period",
"comparisonPeriod",
"values"
],
"additionalProperties": false
},
"description": "Compact metrics in requested order, without raw orders, transactions or source profiles."
},
"omittedMetrics": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100,
"pattern": "^[a-z][a-z0-9_]*\\.[a-z][a-z0-9_]*$"
},
"description": "Requested summary fields not available to this connection; omitted values are not zero."
}
},
"required": [
"calculatedAt",
"results",
"omittedMetrics"
],
"additionalProperties": false,
"$defs": {
"_mcp2": {
"type": "object",
"properties": {
"preset": {
"type": "string",
"description": "Requested preset or the server-selected comparison label."
},
"from": {
"description": "Inclusive UTC instant, or null for explicitly supported all_time.",
"type": [
"string",
"null"
]
},
"to": {
"description": "Exclusive UTC instant, or null for explicitly supported all_time.",
"type": [
"string",
"null"
]
},
"localFrom": {
"description": "Inclusive calendar date in timeZone.",
"type": [
"string",
"null"
]
},
"localTo": {
"$ref": "#/$defs/_mcp0"
},
"requestedTo": {
"$ref": "#/$defs/_mcp1"
},
"timeZone": {
"type": "string",
"description": "Actual server-resolved IANA timezone used for calendar boundaries, including DST."
}
},
"required": [
"preset",
"from",
"to",
"localFrom",
"localTo",
"timeZone"
],
"additionalProperties": false
},
"_mcp0": {
"description": "Requested exclusive calendar date in timeZone. Current attendance can end earlier at the server clock; requestedTo then preserves the full calendar bound.",
"type": [
"string",
"null"
]
},
"_mcp1": {
"description": "Original exclusive calendar-boundary UTC instant when the actual to is clipped to an observed attendance interval.",
"type": "string"
}
}
}