---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.ru/dev/kit/ru/openapi/Uslugi/CreateAddon.md
  - href: ru/openapi/Uslugi/CreateAddon.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/kit/ru/llms.txt

<div class="openapi">

# Создание услуги

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

Создает новую услугу.

## 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.kit.yandex.net/v1/addons
```

</div>

</div>

</div>

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "title": "Установка и настройка",
  "description": "Полная установка оборудования",
  "price": "2000.00",
  "final_price": "1500.00",
  "is_price_enabled": false,
  "vat": 20,
  "binding_mode": "ALL_VARIANTS",
  "attachments": [
    {
      "file_id": "123e4567-e89b-12d3-a456-426614174000",
      "title": "Инструкция по установке",
      "display_sequence": 1,
      "extension": "pdf"
    }
  ],
  "geography": {
    "included_region_ids": [
      225,
      1
    ],
    "excluded_region_ids": [
      213
    ]
  }
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_attachments_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonAttachmentCreateCommand](#entity-AddonAttachmentCreateCommand)[]

Вложения услуги.

_Max items:_{.json-schema-reset .json-schema-assertion} `10`

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "file_id": "123e4567-e89b-12d3-a456-426614174000",
    "title": "Инструкция по установке",
    "display_sequence": 1,
    "extension": "pdf"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_binding_mode_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonBindingMode](#entity-AddonBindingMode)

Режим привязки услуги:
- `ALL_VARIANTS` — услуга доступна для всех товаров.
- `SELECTED_VARIANTS` — услуга доступна для выбранных товаров.
- `SELECTED_CATEGORIES_COLLECTIONS` — услуга доступна для товаров из выбранных категорий и коллекций.

_Enum:_{.json-schema-reset .json-schema-value} `ALL_VARIANTS`, `SELECTED_VARIANTS`, `SELECTED_CATEGORIES_COLLECTIONS`
{.table-cell}
||
||

_description_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Описание услуги.

_Max length:_{.json-schema-reset .json-schema-assertion} `5000`

_Example:_{.json-schema-reset .json-schema-example} `Полная установка оборудования`
{.table-cell}
||
||

_geography_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonGeography](#entity-AddonGeography)

География доступности услуги.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "included_region_ids": [
    225,
    1
  ],
  "excluded_region_ids": [
    213
  ]
}
```

{% endcut %}
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название услуги.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Max length:_{.json-schema-reset .json-schema-assertion} `255`

_Example:_{.json-schema-reset .json-schema-example} `Установка и настройка`
{.table-cell}
||
||

_final_price_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;decimal&gt;

Цена со скидкой.

_Example:_{.json-schema-reset .json-schema-example} `1500.00`
{.table-cell}
||
||

_is_price_enabled_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: boolean

Отображать ли цену услуги.

_Default:_{.json-schema-reset .json-schema-value} `false`
{.table-cell}
||
||

_price_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;decimal&gt;

Цена без скидки.

_Example:_{.json-schema-reset .json-schema-example} `2000.00`
{.table-cell}
||
||

_vat_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

НДС в процентах. Специальное значение -1 означает, что товар не облагается НДС.
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### AddonBindingMode {#entity-AddonBindingMode}

Режим привязки услуги:
- `ALL_VARIANTS` — услуга доступна для всех товаров.
- `SELECTED_VARIANTS` — услуга доступна для выбранных товаров.
- `SELECTED_CATEGORIES_COLLECTIONS` — услуга доступна для товаров из выбранных категорий и коллекций.

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `ALL_VARIANTS`, `SELECTED_VARIANTS`, `SELECTED_CATEGORIES_COLLECTIONS`

</div>

<div class="openapi-entity">

### AddonAttachmentCreateCommand {#entity-AddonAttachmentCreateCommand}

#|
|| **Name** | **Description** ||
||

_display_sequence_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Порядок отображения.
{.table-cell}
||
||

_extension_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Расширение файла.

_Example:_{.json-schema-reset .json-schema-example} `pdf`
{.table-cell}
||
||

_file_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;uuid&gt;

Идентификатор файла.

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название вложения.

_Example:_{.json-schema-reset .json-schema-example} `Инструкция по установке`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "file_id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Инструкция по установке",
  "display_sequence": 1,
  "extension": "pdf"
}
```

{% endcut %}

</div>

<div class="openapi-entity">

### AddonGeography {#entity-AddonGeography}

География доступности услуги.

#|
|| **Name** | **Description** ||
||

_excluded_region_ids_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer[]

Идентификаторы регионов, в которых услуга недоступна.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  213
]
```

{% endcut %}
{.table-cell}
||
||

_included_region_ids_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer[]

Идентификаторы регионов, в которых услуга доступна.

_Min items:_{.json-schema-reset .json-schema-assertion} `1`

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  225,
  1
]
```

{% endcut %}
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "included_region_ids": [
    225,
    1
  ],
  "excluded_region_ids": [
    213
  ]
}
```

{% endcut %}

</div>

## Responses

<div class="openapi__response__code__201">

## 201 Created

Услуга успешно создана.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "number": 12345,
  "title": "Установка и настройка",
  "description": "Полная установка оборудования",
  "price": "2000.00",
  "final_price": "1500.00",
  "is_price_enabled": false,
  "vat": 20,
  "binding_mode": "ALL_VARIANTS",
  "attachments": [
    {
      "file_id": "123e4567-e89b-12d3-a456-426614174000",
      "title": "Инструкция по установке",
      "display_sequence": 1,
      "extension": "pdf",
      "public_path": "https://storage.example.com/documents/instruction.pdf"
    }
  ],
  "geography": {
    "included_region_ids": [
      225,
      1
    ],
    "excluded_region_ids": [
      213
    ]
  },
  "created_at": "2023-01-15T10:30:00Z"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_attachments_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonAttachment](#entity-AddonAttachment)[]

Вложения услуги.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "file_id": "123e4567-e89b-12d3-a456-426614174000",
    "title": "Инструкция по установке",
    "display_sequence": 1,
    "extension": "pdf",
    "public_path": "https://storage.example.com/documents/instruction.pdf"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_binding_mode_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonBindingMode](#entity-AddonBindingMode)

Режим привязки услуги:
- `ALL_VARIANTS` — услуга доступна для всех товаров.
- `SELECTED_VARIANTS` — услуга доступна для выбранных товаров.
- `SELECTED_CATEGORIES_COLLECTIONS` — услуга доступна для товаров из выбранных категорий и коллекций.

_Enum:_{.json-schema-reset .json-schema-value} `ALL_VARIANTS`, `SELECTED_VARIANTS`, `SELECTED_CATEGORIES_COLLECTIONS`
{.table-cell}
||
||

_created_at_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата создания.

_Example:_{.json-schema-reset .json-schema-example} `2023-01-15T10:30:00Z`
{.table-cell}
||
||

_description_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Описание услуги.

_Example:_{.json-schema-reset .json-schema-example} `Полная установка оборудования`
{.table-cell}
||
||

_final_price_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;decimal&gt;

Цена со скидкой.

_Example:_{.json-schema-reset .json-schema-example} `1500.00`
{.table-cell}
||
||

_geography_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonGeography](#entity-AddonGeography)

География доступности услуги.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "included_region_ids": [
    225,
    1
  ],
  "excluded_region_ids": [
    213
  ]
}
```

{% endcut %}
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AddonID](#entity-AddonID)

Идентификатор услуги.

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_is_price_enabled_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: boolean

Отображать ли цену услуги.
{.table-cell}
||
||

_number_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Уникальный числовой идентификатор услуги.
{.table-cell}
||
||

_price_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;decimal&gt;

Цена до скидки.

_Example:_{.json-schema-reset .json-schema-example} `2000.00`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название услуги.

_Example:_{.json-schema-reset .json-schema-example} `Установка и настройка`
{.table-cell}
||
||

_vat_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

НДС в процентах. Специальное значение -1 означает, что товар не облагается НДС.
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### AddonID {#entity-AddonID}

Идентификатор услуги.

**Type**: string&lt;uuid&gt;

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`

</div>

<div class="openapi-entity">

### AddonAttachment {#entity-AddonAttachment}

Приложение к услуге.

#|
|| **Name** | **Description** ||
||

_display_sequence_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Порядок отображения.
{.table-cell}
||
||

_extension_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Расширение файла.

_Example:_{.json-schema-reset .json-schema-example} `pdf`
{.table-cell}
||
||

_file_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;uuid&gt;

Идентификатор файла.

_Example:_{.json-schema-reset .json-schema-example} `123e4567-e89b-12d3-a456-426614174000`
{.table-cell}
||
||

_public_path_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Публичный URL файла.

_Example:_{.json-schema-reset .json-schema-example} `https://storage.example.com/documents/instruction.pdf`
{.table-cell}
||
||

_title_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Название вложения.

_Example:_{.json-schema-reset .json-schema-example} `Инструкция по установке`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "file_id": "123e4567-e89b-12d3-a456-426614174000",
  "title": "Инструкция по установке",
  "display_sequence": 1,
  "extension": "pdf",
  "public_path": "https://storage.example.com/documents/instruction.pdf"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Некорректный запрос.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Не авторизован.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

Внутренняя ошибка сервера.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

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