---
title: "Получить декомпозицию юнит-экономики Яндекс Маркета"
method: GET
path: "/api/v1/marketplace/yandex/decomposition"
tags: ["Marketplace Yandex"]
---

# Получить декомпозицию юнит-экономики Яндекс Маркета

`GET /api/v1/marketplace/yandex/decomposition`

## Request

- Base URL: `https://erp.akeda.ru`
- URL: `https://erp.akeda.ru/api/v1/marketplace/yandex/decomposition`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Api-Key`
  - OAuth 2
    - Authorization code: `https://erp.akeda.ru/oauth2/authorize`
    - Token URL: `https://erp.akeda.ru/oauth2/token` scopes: `akeda:delegate`
  - HTTP bearer

Разбор месяца по недельным спринтам и накопительной колонке, по тем же
источникам и правилам, что ОПиУ Маркета по заказам: выручка — по дню
продажи, возвраты — по дню заявки, услуги — по дню услуги полной
стоимостью (удержано деньгами плюс зачтено скидкой Маркета). Услуга без
артикула уходит в «Прочее» с разбором по названиям. Поле sku — SKU
товара на Маркете, nm_id всегда null.

## Query parameters

- `store` string
- `group` string
- `month` string
- `from` string, date
- `to` string, date
- `subject` string
- `brand` string

## Headers

- `X-Tenant` string, required

## Response `200`

Декомпозиция за месяц

- MarketplaceOzonDecomposition
  - `updated` string, nullable, required: Момент последней синхронизации аналитики
  - `anchor` string, date, required: Последняя дата с данными
  - `months` MarketplaceOzonDecompositionMonth[], required
    - `key` string, date, required
    - `label` string, required: Название месяца по-русски
    - `sub` string, required: Год
    - `start` string, date, required
    - `end` string, date, required
  - `month` MarketplaceOzonDecompositionMonth, nullable, required
    - `key` string, date, required
    - `label` string, required: Название месяца по-русски
    - `sub` string, required: Год
    - `start` string, date, required
    - `end` string, date, required
  - `periods` MarketplaceOzonDecompositionPeriod[], required
    - `id` string, required: month для накопительной колонки, иначе s и номер спринта
    - `kind` 'month' | 'sprint' | 'range', required
    - `n` integer, nullable, required: Номер спринта; null у накопительной колонки
    - `label` string, required
    - `sub` string, required: Границы периода в виде дня и месяца
    - `start` string, date, required
    - `end` string, date, required
    - `run_rate_factor` number, required: Коэффициент проекции незакрытого периода
    - `totals` MarketplaceOzonDecompositionCell, required
      - `revenue` integer, required
      - `units` integer, required
      - `orders` integer: Заказано штук за блок — тот же счёт, что у «План-факта»; нет у Ozon с фильтром схемы
      - `orders_sum` integer: Сумма заказов за блок, ₽ — тот же счёт, что у «План-факта»
      - `avg_check` integer, nullable, required: Средний чек: выручка на проданную штуку; null без продаж
      - `return_units` integer, required
      - `returns` integer, required
      - `income` integer: Доход: выручка минус возвраты — база маржи, ДРР и долей (AKE-259)
      - `returns_pct` number, nullable, required
      - `commission` integer, required
      - `commission_pct` number, nullable, required: Комиссия к доходу, %; null при доходе не больше нуля
      - `logistics` integer, required
      - `logistics_per_unit` number, nullable, required
      - `storage` integer, required: Хранение: операции Ozon «Размещение товаров на складах Ozon» и «Временное размещение товара партнерами»
      - `acquiring` integer, required
      - `internal_ad` integer, required
      - `external_ad` integer, required
      - `drr` number, nullable, required: Вся реклама (внутренняя и внешняя) к доходу, %; null при доходе не больше нуля
      - `cogs` integer, required
      - `penalty` integer
      - `other_premium` integer, required
      - `tax` integer, required
      - `expenses` integer, required
      - `profit` integer, required
      - `marginal_profit` integer: Маржинальная прибыль до налога: доход − все расходы площадки − себестоимость, ₽ (прибыль + налог по модулю)
      - `profit_per_unit` number, nullable: Прибыль после налога на проданную штуку за вычетом возвратов, ₽ с копейками; null, если штук за вычетом возвратов нет
      - `margin_pct` number, nullable, required: Прибыль к доходу (выручка − возвраты), %; null при доходе не больше нуля
      - `roi` number, nullable, required: Прибыль к себестоимости по модулю, %; null без себестоимости
      - `cost_missing_units` integer: Проданные штуки без известной себестоимости: посчитаны с нулевой закупкой
      - `cost_coverage_pct` number, nullable: Доля проданных штук с известной себестоимостью, %, округление вниз; меньше 100 — маржа и ROI неполные; null без продаж
      - `margin_state` 'approx' | 'unknown' | 'null', nullable: Можно ли верить прибыли и марже (econ.MarginStateOf): approx — себестоимость у 50–99,9 % продаж, экран ставит «≈»; unknown — меньше 50 %, вместо маржи «—»; null — себестоимость у всех продаж
      - `rr_revenue` integer, required: Выручка спроецированная на весь период
      - `rr_income` integer: Доход спроецированный на весь период — база доли прогнозной прибыли
      - `rr_profit` integer, required: Прибыль спроецированная на период; разовое не проецируется
      - `id` string: Идентификатор периода; появляется только в totals
  - `articles` MarketplaceOzonDecompositionArticle[], required
    - `store_id` integer, nullable, required: Внешний числовой идентификатор магазина
    - `store_name` string, required
    - `offer_id` string, required
    - `sku` integer, nullable, required
    - `nm_id` unknown, required
    - `name` string, required
    - `category` string, required
    - `image` string, required
    - `url` string, required
    - `by_period` object, required: Ключ — идентификатор периода
    - `cost_missing` boolean: Себестоимость артикула не заведена: прибыль завышена (ERP-1169)
    - `units_missing` boolean: Площадка прислала выручку, но не количество проданных штук: себестоимость посчитана нулём (ERP-1217)
    - `product_id` string, uuid: Позиция номенклатуры кабинета, к которой привязана карточка; поля нет у непривязанной
    - `product_sku` string: Наш код товара — артикул позиции номенклатуры; поля нет у непривязанной карточки
    - `product_name` string: Название позиции номенклатуры; поля нет у непривязанной карточки или без названия
  - `other` MarketplaceOzonDecompositionOtherBlock, nullable, required
    - `by_period` object, required
    - `breakdown` object, required
  - `freshness` MarketplaceComponentFreshness: Время последней успешной загрузки каждого компонента отчёта; отсутствующее или null-значение означает, что компонент ещё не загружался успешно.
    - `finance` string, nullable: Финансовые операции площадки
    - `ads` string, nullable: Реклама Wildberries
    - `ads_clicks` string, nullable: Клики рекламы Ozon
    - `ads_orders` string, nullable: Заказы из рекламы Ozon
    - `products` string, nullable: Карточки товаров
  - `data_through` MarketplaceComponentDataThrough: Последняя дата операций площадки, уже включённых в каждый компонент отчёта; отсутствующее или null-значение означает, что дата покрытия пока неизвестна.
    - `finance` string, date, nullable: Финансовые операции площадки
    - `ads` string, date, nullable: Реклама Wildberries
    - `ads_clicks` string, date, nullable: Клики рекламы Ozon
    - `ads_orders` string, date, nullable: Заказы из рекламы Ozon
    - `products` string, date, nullable: Карточки товаров по дате последней синхронизации
  - `incomplete` boolean: Хотя бы один обязательный компонент не загружался успешно, последняя загрузка завершилась ошибкой или давно не запускалась

## Other responses

- `400`: Некорректный запрос или нарушение бизнес-правила
- `401`: Сессия, ключ или кабинет не подтверждены
- `403`: Текущая роль не имеет требуемого права
- `503`: Внешний банк, справочник или контур подключений временно недоступен

## Changes

- **2026-12-04** `f0d7ee594cec`: 6 info
  - added the optional property `articles/items/by_period/additionalProperties/marginal_profit` to the response with the `200` status
  - added the optional property `articles/items/by_period/additionalProperties/profit_per_unit` to the response with the `200` status
  - added the optional property `other/oneOf[#/components/schemas/MarketplaceOzonDecompositionOtherBlock]/by_period/additionalProperties/marginal_profit` to the response with the `200` status
  - added the optional property `other/oneOf[#/components/schemas/MarketplaceOzonDecompositionOtherBlock]/by_period/additionalProperties/profit_per_unit` to the response with the `200` status
  - …2 more
- **2026-11-30** `c235749b0f27`: 3 info
  - added the optional property `articles/items/by_period/additionalProperties/penalty` to the response with the `200` status
  - added the optional property `other/oneOf[#/components/schemas/MarketplaceOzonDecompositionOtherBlock]/by_period/additionalProperties/penalty` to the response with the `200` status
  - added the optional property `periods/items/totals/penalty` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/akeda/apis/akeda-erp-client-api/changes/api/v1/marketplace/yandex/decomposition/get.md)

---

[API](https://skmtc.dev/akeda/apis/akeda-erp-client-api.md) - [All operations](https://skmtc.dev/akeda/apis/akeda-erp-client-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeda/apis/akeda-erp-client-api/revisions/084f7bbc939c?raw)
