---
title: "Цены и остатки конкурентов с Ozon"
method: POST
path: "/v2/comp/competitors-prices"
tags: ["Репрайсер по конкурентам V2"]
---

# Цены и остатки конкурентов с Ozon

`POST /v2/comp/competitors-prices`

Подгружает цены/остатки конкурентов по списку `comp_skus`.

Вызывается при открытии карточки конкурентов, без парсинга всех цен при загрузке настроек.

TODO: в перспективе реализовать получение цен из истории

## Query parameters

- `block` string

## Headers

- `x-connect-id` integer, required — ID магазина
- `x-user-id` integer, required — ID пользователя

## Request body

- CompCompetitorsPricesRequest
  - `comp_skus` integer[], required — SKU SDS товаров-конкурентов

## Response `200`

Successful Response

- GetCompV2CompetitorsPricesResponse
  - `msg` string, required
  - `error` boolean — Статус ошибки (True/False)
  - `data` CompCompetitorPriceDTO[], required — Объект результата (dto / exception|None)
    - `comp_sku` integer, required — SKU SDS товара-конкурента
    - `name` string, nullable — Название на Ozon
    - `base_price` integer, nullable — Цена до скидок (зачёркнутая). null, если Statistics API не вернул цену.
    - `discount_price` integer, nullable — Цена после скидок (чёрная). null, если Statistics API не вернул цену.
    - `ozon_card_price` integer, nullable — Цена по карте Ozon (зелёная). null, если Statistics API не вернул цену.
    - `qty` integer, nullable — Остаток конкурента. null, если Statistics API не вернул остатки.
    - `currency` string — Код валюты
    - `comp_img` string, nullable — Изображение товара на Ozon
    - `supplier` string, nullable — Продавец на Ozon
    - `days_out_of_stock` integer — Дней без остатка у конкурента

## Other responses

- `400` — Bad Request
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/mpspace/apis/api.md) · [All operations](https://skmtc.dev/mpspace/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mpspace/api/revisions/480b05bed427/schema)
