---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://yandex.ru/dev/market/partner-api/doc/en/reference/reports/generateKeyIndicatorsReport.md
  - https://yandex.ru/dev/market/partner-api/doc/ru/reference/reports/generateKeyIndicatorsReport.md
  - https://yandex.ru/dev/market/partner-api/doc/zh/reference/reports/generateKeyIndicatorsReport.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/market/partner-api/doc/zh/llms.txt

{% note warning "报告的结构及内容如有更改，恕不另行通知。" %}

例如，可以添加新列或更改工作表的名称。

{% endnote %}

<!-- source: zh/api/reports/generateKeyIndicatorsReport.md -->
<div class="openapi">

# 关于关键指标的报告

<!-- markdownlint-disable-file -->

{% list tabs %}

- Info

  
  <!-- source: zh/_auto/method_scopes/generateKeyIndicatorsReport.md -->
  **方法适用于模式：[FBY](https://yandex.ru/dev/market/partner-api/doc/zh/overview/fby.md), [FBS](https://yandex.ru/dev/market/partner-api/doc/zh/overview/fbs.md), [Express](https://yandex.ru/dev/market/partner-api/doc/zh/overview/express.md) 和 [DBS](https://yandex.ru/dev/market/partner-api/doc/zh/overview/dbs.md).**

  {% cut "**如果您使用API-Key令牌，调用该方法时需要具备列表中可用权限之一**" %}

  * promotion — [商品推广](https://yandex.ru/dev/market/partner-api/doc/zh/_auto/scopes_summary/pages/promotion.md)
  * promotion:read-only — [查看商品推广信息](https://yandex.ru/dev/market/partner-api/doc/zh/_auto/scopes_summary/pages/promotion_read-only.md)
  * finance-and-accounting — [查看财务信息和报告](https://yandex.ru/dev/market/partner-api/doc/zh/_auto/scopes_summary/pages/finance-and-accounting.md)
  * all-methods — 全面管理账户
  * all-methods:read-only — 查看所有数据

  {% endcut %}
  <!-- endsource: zh/_auto/method_scopes/generateKeyIndicatorsReport.md -->
  
  
  开始生成关于关键指标的报告。 [这是什么报告](https://yandex.ru/support/marketplace/ru/analytics/key-metrics)
  
  您可以使用请求查找生成状态并获取指向已完成报告的链接。 [GET v2/reports/info/{reportId}](https://yandex.ru/dev/market/partner-api/doc/zh/reference/reports/getReportInfo.md).
  
  
  <!-- source: zh/_auto/reports/key_indicators/key_indicators.md -->
  报告列说明：

  {% cut "表单**Основные**（文件**key_indicators_summary**）" %}

  #|
  || **CSV中的列名** | **JSON中的列名** | **XLSX中的列名** | **值类型** ||
  || PERIOD | period | Период | string ||
  || GMV | gmv | Выручка, ₽ | number ||
  || ORDERS_DELIVERED | ordersDelivered | Доставленные заказы, шт. | integer ||
  || ORDERS_AVG_PRICE | ordersAvgPrice | Средний чек заказа, ₽ | number ||
  || TOTAL_SUBSIDY | totalSubsidy | Все платежи за скидки, ₽ | number ||
  ||
  SERVICES_WITHOUT_PROMOTION
  |
  servicesWithoutPromotion
  |
  Стоимость всех услуг Маркета без продвижения, ₽
  |
  number
  ||
  || PROMOTION_SERVICES | promotionServices | Стоимость услуг продвижения, ₽ | number ||
  |#

  {% endcut %}

  {% cut "表单**Выручка**（文件**key_indicators_revenue**）" %}

  #|
  || **CSV中的列名** | **JSON中的列名** | **XLSX中的列名** | **值类型** ||
  || PERIOD | period | Период | string ||
  || GMV | gmv | Выручка, ₽ | number ||
  || TOTAL_SUBSIDY | totalSubsidy | Все платежи за скидки, ₽ | number ||
  || YANDEX_PLUS | yandexPlus | Платежи за скидки по баллам Яндекс Плюса, ₽ | number ||
  || SUBSIDY | subsidy | Платежи за скидки маркетплейса, ₽ | number ||
  |#

  {% endcut %}

  {% cut "表单**Показатели продаж**（文件**key_indicators_sales**）" %}

  #|
  || **CSV中的列名** | **JSON中的列名** | **XLSX中的列名** | **值类型** ||
  || PERIOD | period | Период | string ||
  ||
  SHOWS
  |
  shows
  |
  Показы товаров

  |
  integer
  ||
  ||
  TO_CART_CONVERSION
  |
  toCartConversion
  |
  Конверсия 
  добавления 
  в корзину, %
  |
  number
  ||
  ||
  TO_ORDER_CONVERSION
  |
  toOrderConversion
  |
  Конверсия 
  из корзины 
  в заказ, %
  |
  number
  ||
  || ORDERS_DELIVERED | ordersDelivered | Доставленные заказы, шт. | integer ||
  || GMV | gmv | Выручка, ₽ | number ||
  ||
  ORDERS_AVG_PRICE
  |
  ordersAvgPrice
  |
  Средний чек 
  заказа, ₽
  |
  number
  ||
  ||
  ORDER_ITEMS_DELIVERED
  |
  orderItemsDelivered
  |
  Доставленные 
  товары, шт
  |
  integer
  ||
  ||
  ORDER_ITEM_AVG_PRICE
  |
  orderItemAvgPrice
  |
  Средняя стоимость 
  доставленного 
  товара, ₽
  |
  number
  ||
  |#

  {% endcut %}

  {% cut "表单**Расходы**（文件**key_indicators_expenses**）" %}

  #|
  || **CSV中的列名** | **JSON中的列名** | **XLSX中的列名** | **值类型** ||
  || PERIOD | period | Период | string ||
  ||
  SERVICES_WITHOUT_PROMOTION
  |
  servicesWithoutPromotion
  |
  Стоимость всех 
  услуг Маркета 
  без продвижения, ₽
  |
  number
  ||
  ||
  FEE
  |
  fee
  |
  Стоимость размещения 
  товаров на витрине, ₽
  |
  number
  ||
  ||
  PAYMENT_ACCEPTANCE_AND_TRANSFER
  |
  paymentAcceptanceAndTransfer
  |
  Приём и 
  перевод платежа 
  покупателя, ₽
  |
  number
  ||
  ||
  LOGISTIC_SERVICES
  |
  logisticServices
  |
  Стоимость услуг 
  логистики, ₽
  |
  number
  ||
  ||
  WAREHOUSE_SERVICES
  |
  warehouseServices
  |
  Стоимость услуг 
  склада, ₽
  |
  number
  ||
  ||
  PROMOTION_SERVICES
  |
  promotionServices
  |
  Стоимость услуг 
  продвижения, ₽
  |
  number
  ||
  ||
  BOOST
  |
  boost
  |
  Расходы на 
  буст 
  продаж, ₽
  |
  number
  ||
  ||
  PROMOTION_WITH_SHOWS
  |
  promotionWithShows
  |
  Расходы на продвижение 
  с оплатой за показы, ₽
  |
  number
  ||
  ||
  LOYALTY_PARTICIPATION_FEE
  |
  loyaltyParticipationFee
  |
  Участие в программе 
  лояльности и отзывы, ₽
  |
  number
  ||
  || EXTENDED_ACCESS_PAYMENT | extendedAccessPayment | Расширенный доступ к сервисам Маркетплейса, ₽ | number ||
  |#

  {% endcut %}

  {% cut "表单**Все**（文件**key_indicators_full**）" %}

  #|
  || **CSV中的列名** | **JSON中的列名** | **XLSX中的列名** | **值类型** ||
  || PERIOD | period | Период | string ||
  || SHOWS | shows | Показы товаров | integer ||
  ||
  TO_CART_CONVERSION
  |
  toCartConversion
  |
  Конверсия 
  добавления 
  в корзину, %
  |
  number
  ||
  ||
  TO_ORDER_CONVERSION
  |
  toOrderConversion
  |
  Конверсия 
  из корзины 
  в заказ, %
  |
  number
  ||
  ||
  ORDERS_DELIVERED
  |
  ordersDelivered
  |
  Доставленные 
  заказы, шт.
  |
  integer
  ||
  || GMV | gmv | Выручка, ₽ | number ||
  ||
  ORDERS_AVG_PRICE
  |
  ordersAvgPrice
  |
  Средний чек 
  заказа, ₽
  |
  number
  ||
  ||
  ORDER_ITEMS_DELIVERED
  |
  orderItemsDelivered
  |
  Доставленные 
  товары, шт
  |
  integer
  ||
  ||
  ORDER_ITEM_AVG_PRICE
  |
  orderItemAvgPrice
  |
  Средняя стоимость 
  доставленного 
  товара, ₽
  |
  number
  ||
  ||
  TOTAL_SUBSIDY
  |
  totalSubsidy
  |
  Все платежи 
  за скидки, ₽
  |
  number
  ||
  ||
  YANDEX_PLUS
  |
  yandexPlus
  |
  Платежи за скидки 
  по баллам Яндекс 
  Плюса, ₽
  |
  number
  ||
  ||
  SUBSIDY
  |
  subsidy
  |
  Платежи за скидки 
  маркетплейса, ₽
  |
  number
  ||
  ||
  SERVICES_WITHOUT_PROMOTION
  |
  servicesWithoutPromotion
  |
  Стоимость всех 
  услуг Маркета 
  без продвижения, ₽
  |
  number
  ||
  ||
  FEE
  |
  fee
  |
  Стоимость размещения 
  товаров на витрине, ₽
  |
  number
  ||
  ||
  PAYMENT_ACCEPTANCE_AND_TRANSFER
  |
  paymentAcceptanceAndTransfer
  |
  Приём и 
  перевод платежа 
  покупателя, ₽
  |
  number
  ||
  ||
  LOGISTIC_SERVICES
  |
  logisticServices
  |
  Стоимость услуг 
  логистики, ₽
  |
  number
  ||
  ||
  WAREHOUSE_SERVICES
  |
  warehouseServices
  |
  Стоимость услуг 
  склада, ₽
  |
  number
  ||
  ||
  PROMOTION_SERVICES
  |
  promotionServices
  |
  Стоимость услуг 
  продвижения, ₽
  |
  number
  ||
  ||
  BOOST
  |
  boost
  |
  Расходы на 
  буст 
  продаж, ₽
  |
  number
  ||
  ||
  PROMOTION_WITH_SHOWS
  |
  promotionWithShows
  |
  Расходы на продвижение 
  с оплатой за показы, ₽
  |
  number
  ||
  ||
  LOYALTY_PARTICIPATION_FEE
  |
  loyaltyParticipationFee
  |
  Участие в программе 
  лояльности и отзывы, ₽
  |
  number
  ||
  || EXTENDED_ACCESS_PAYMENT | extendedAccessPayment | Расширенный доступ к сервисам Маркетплейса, ₽ | number ||
  |#

  {% endcut %}
  <!-- endsource: zh/_auto/reports/key_indicators/key_indicators.md -->
  
  
  
  <!-- source: zh/_includes/common/report-data-period-400-days.md -->
  {% note warning "Ограничения по тарифному плану" %}


  数据上传期和同一时间生成的报告数量取决于您的数据计划:
  * **没有订阅或"轻"关税** — 最近90天的数据可用，并且一次可以生成1个报告
  * **"中等"关税** — 过去400天的数据可用，最多可同时生成10份报告。

  阅读更多关于卖家订阅的信息 [在市场对卖家的帮助](https://yandex.ru/support/marketplace/ru/marketing/subscription).


  {% endnote %}
  <!-- endsource: zh/_includes/common/report-data-period-400-days.md -->
  
  
  
  <!-- source: zh/_auto/method_limits/generateKeyIndicatorsReport.md -->
  |<div style="text-align: left;">**⚙️ 没有订阅的限制:** 1 请求 在 2 分钟<br>**⭐️ [使用中等订阅限制](https://yandex.ru/support/marketplace/ru/marketing/subscription):** 1 请求 每分钟</div>|
  |-|
  <!-- endsource: zh/_auto/method_limits/generateKeyIndicatorsReport.md -->
  
  
  
  ## Request
  
  <div class="openapi__requests">
  
  <div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">
  
  <div class="openapi__request">
  
  POST {.openapi__method}
  ```text translate=no
  https://api.partner.market.yandex.ru/v2/reports/key-indicators/generate
  ```
  
  </div>
  
  </div>
  
  </div>
  
  ### Query parameters
  
  #|
  || **Name** | **Description** ||
  ||
  
  _format_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: string
  
  报告或文档的格式。
  报告格式:
  
  * `FILE` — 电子表格文件（XLSX).
  * `CSV` — 每个报告表都有一个包含CSV文件的ZIP存档。
  * `JSON` — 每个报告表都有一个带有JSON文件的ZIP压缩包.
  
  
  _Default:_{.json-schema-reset .json-schema-value} `FILE`
  
  _Enum:_{.json-schema-reset .json-schema-value} `FILE`, `CSV`, `JSON`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "businessId": 1,
    "campaignId": 1,
    "detalizationLevel": "WEEK"
  }
  ```
  
  {% endcut %}
  
  #|
  || **Name** | **Description** ||
  ||
  
  _detalizationLevel_{.json-schema-reset .json-schema-property .json-schema-required}
  {.table-cell}|
  **Type**: string
  
  在哪个时期需要详细信息:
  
  * `WEEK` — 到一周。
  
  * `MONTH` — 按月计算。
  
  
  _Enum:_{.json-schema-reset .json-schema-value} `WEEK`, `MONTH`
  {.table-cell}
  ||
  ||
  
  _businessId_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: integer
  
  内阁ID。  
  
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  ||
  
  _campaignId_{.json-schema-reset .json-schema-property}
  {.table-cell}|
  **Type**: integer
  
  广告系列（商店）的ID — 通过API工作时，代表您在Yandex市场系统中的商店的技术标识符。 它与您的商店唯一链接，但仅用于自动交互。
  
  您可以使用查询找到它 [GET v2/campaigns](https://yandex.ru/dev/market/partner-api/doc/zh/reference/campaigns/getCampaigns.md) 或者在市场上的卖家办公室找到它。 点击您的帐户图标→ **设置** 在左边的菜单中，选择 **Api和模块**:
  
  * 座 **运动ID**;
  * 标签 **查询日志** →块中的下拉列表 **显示日志**.
  
  ⚠️ 不要把它与:
  - 商店的标识符，显示在商家的个人帐户中。
  - 广告活动。
  
  
  _Min value:_{.json-schema-reset .json-schema-assertion} `1`
  {.table-cell}
  ||
  |#{.json-schema-properties}
  
  </div>
  
  ## Responses
  
  <div class="openapi__response__code__200">
  
  ## 200 OK
  
  作为响应，您会收到一个标识符，该标识符允许您查找生成状态并下载完成的报告。
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "result": {
      "reportId": "example",
      "estimatedGenerationTime": 0
    }
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
  - {% cut "**Type**: object" %}
  
    #|
    ||
  
    _status_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    **Type**: string
  
    响应的类型。
    可能的值:
    * `OK` — 没有错误。
    * `ERROR` — 处理请求时出错。
  
  
    _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    服务器响应的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK"
    }
    ```
  
    {% endcut %}
  
  - {% cut "**Type**: object" %}
  
    #|
    ||
  
    _result_{.json-schema-reset .json-schema-property}
    {.table-cell}|
    {% cut "**Type**: object" %}
  
    #|
    ||
  
    _estimatedGenerationTime_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    **Type**: integer
  
    预计生成时间以毫秒为单位。
    {.table-cell}
    ||
    ||
  
    _reportId_{.json-schema-reset .json-schema-property .json-schema-required}
    {.table-cell}|
    **Type**: string
  
    跟踪生成状态和接收完成的报告或文档所需的ID。
  
    _Example:_{.json-schema-reset .json-schema-example} `example`
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    跟踪生成状态和接收完成的报告或文档所需的ID。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "reportId": "example",
      "estimatedGenerationTime": 0
    }
    ```
  
    {% endcut %}
    {.table-cell}
    ||
    |#{.json-schema-properties}
  
    {% endcut %}
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "result": {
        "reportId": "example",
        "estimatedGenerationTime": 0
      }
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__400">
  
  ## 400 Bad Request
  
  请求包含不正确的数据。 [有关错误的更多信息](https://yandex.ru/dev/market/partner-api/doc/zh/concepts/error-codes.md#400)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    服务器错误的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__401">
  
  ## 401 Unauthorized
  
  请求中未指定授权数据。 [有关错误的更多信息](https://yandex.ru/dev/market/partner-api/doc/zh/concepts/error-codes.md#401)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    服务器错误的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__403">
  
  ## 403 Forbidden
  
  授权数据不正确或禁止访问资源。 [有关错误的更多信息](https://yandex.ru/dev/market/partner-api/doc/zh/concepts/error-codes.md#403)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    服务器错误的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__420">
  
  ## 420 Method Failure
  
  已超出资源访问限制。 [有关错误的更多信息](https://yandex.ru/dev/market/partner-api/doc/zh/concepts/error-codes.md#420)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    服务器错误的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
  
  <div class="openapi__response__code__500">
  
  ## 500 Internal Server Error
  
  市场的内部错误。 [有关错误的更多信息](https://yandex.ru/dev/market/partner-api/doc/zh/concepts/error-codes.md#500)
  
  <div class="openapi-entity">
  
  ### Body
  
  {% cut "application/json" %}
  
  ```json translate=no
  {
    "status": "OK",
    "errors": [
      {
        "code": "example",
        "message": "example"
      }
    ]
  }
  ```
  
  {% endcut %}
  
  **Type**: object
  
  {% cut "**All of 1 type**" %}{.json-schema-combinators data-marker=and}
  
  - **Type**: object
  
    {% cut "**All of 2 types**" %}{.json-schema-combinators data-marker=and}
  
    - **Type**: object
  
      #|
      ||
  
      _status_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      响应的类型。
      可能的值:
      * `OK` — 没有错误。
      * `ERROR` — 处理请求时出错。
  
  
      _Enum:_{.json-schema-reset .json-schema-value} `OK`, `ERROR`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      服务器响应的标准包装器。
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "status": "OK"
      }
      ```
  
      {% endcut %}
  
    - **Type**: object
  
      #|
      ||
  
      _errors_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      {% cut "**Type**: object[]" %}
  
      #|
      ||
  
      _code_{.json-schema-reset .json-schema-property .json-schema-required}
      {.table-cell}|
      **Type**: string
  
      的错误代码。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      ||
  
      _message_{.json-schema-reset .json-schema-property}
      {.table-cell}|
      **Type**: string
  
      错误的描述。
  
      _Example:_{.json-schema-reset .json-schema-example} `example`
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% endcut %}
  
      错误列表。
  
      _Min items:_{.json-schema-reset .json-schema-assertion} `1`
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      ```
  
      {% endcut %}
      {.table-cell}
      ||
      |#{.json-schema-properties}
  
      {% cut "**Example**" %}{.json-schema-example}
  
      ```json translate=no
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      ```
  
      {% endcut %}
  
    {% endcut %}
  
    服务器错误的标准包装器。
  
    {% cut "**Example**" %}{.json-schema-example}
  
    ```json translate=no
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    ```
  
    {% endcut %}
  
  {% endcut %}
  
  </div>
  
  </div>
        

- Console

  ```openapi-sandbox translate=no
  pathParams: []
  searchParams:
    - description: 报告或文档的格式。
      name: format
      in: query
      required: false
      schema:
        description: |
          报告格式:
  
          * `FILE` — 电子表格文件（XLSX).
          * `CSV` — 每个报告表都有一个包含CSV文件的ZIP存档。
          * `JSON` — 每个报告表都有一个带有JSON文件的ZIP压缩包.
        type: string
        enum:
          - FILE
          - CSV
          - JSON
        default: FILE
  headers: []
  body: |-
    {
      "businessId": 1,
      "campaignId": 1,
      "detalizationLevel": "WEEK"
    }
  schema:
    description: |
      生成报告所需的数据。
  
      请求必须包含 `businessId`，或 `campaignId` 但不是同时两种。
    type: object
    required:
      - detalizationLevel
    properties:
      businessId:
        description: "内阁ID。  {% if audience == \"partner\" %} 要找到答案，请使用请求 [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md).\n\nℹ️ [什么是市场上的橱柜和商店？](https://yandex.ru/support/marketplace/account/introduction.html)\n\n:::no-translate\n{% endif %}\n:::\n\n"
        type: integer
        format: int64
        minimum: 1
      campaignId:
        description: "广告系列（商店）的ID — 通过API工作时，代表您在Yandex市场系统中的商店的技术标识符。 它与您的商店唯一链接，但仅用于自动交互。\n\n您可以使用查询找到它 [GET\_v2/campaigns](../../reference/campaigns/getCampaigns.md) 或者在市场上的卖家办公室找到它。 点击您的帐户图标→ **设置** 在左边的菜单中，选择 **Api和模块**:\n\n* 座 **运动ID**;\n* 标签 **查询日志** →块中的下拉列表 **显示日志**.\n\n⚠️ 不要把它与:\n- 商店的标识符，显示在商家的个人帐户中。\n- 广告活动。\n"
        type: integer
        format: int64
        minimum: 1
      detalizationLevel:
        description: |
          在哪个时期需要详细信息:
  
          * `WEEK` — 到一周。
  
          * `MONTH` — 按月计算。
        type: string
        enum:
          - WEEK
          - MONTH
  bodyType: application/json
  method: post
  security:
    - type: apiKey
      name: 'Api-Key'
      in: header
    - type: oauth2
      x-inline: true
      flows:
        implicit:
          authorizationUrl: https://oauth.yandex.ru/authorize
          scopes:
            market:partner-api: API Яндекс.Маркета / Поиска по товарам для партнеров
  path: v2/reports/key-indicators/generate
  host: https://api.partner.market.yandex.ru
  
  ```
        

{% endlist %}


</div>
<!-- endsource: zh/api/reports/generateKeyIndicatorsReport.md -->


[*Deprecated]: No longer supported, please use an alternative and newer version.