Репрайсер по конкурентам V2
Изменить поартикульные настройки конкурентов (v2)
Сохраняет изменения по артикулам, переданным в articles.
Фронт отправляет только изменённые артикулы (CompArticleSettingsPatchItemDTO). Бэкенд сравнивает с БД, пишет историю в sys.history_settings (tool = ozon_comp (web)).
patch/v2/comp/products-settings
Query parameters
blockstring
history_toolstring
Headers
x-connect-idinteger required
ID магазина
ID магазина
x-user-idinteger required
ID пользователя
ID пользователя
Request body
Example request
{
"articles": [
{
"product_id": 21356090,
"sku_sds": 170771792,
"offer_id": "Sh-1457",
"comps_strategy_status": 1,
"min_price": 500,
"max_price": 5000,
"region": 77,
"price_delta": 50,
"competitor_out_of_stock_price": 3000,
"comp_strat_lower_bound": 2500,
"competitors": [
{
"comp_sku": 1738567991,
"competitor_status": 1,
"prices": {
"source": "history",
"base_price": 860,
"discount_price": 375,
"ozon_card_price": 350
}
}
],
"history": {
"current_green_price": 1250,
"current_grey_price": 1250,
"discount_ozon": 22.7,
"discount_card": 10.6,
"comment": "С ценой на сайте все отлично.",
"last_update": "2025.06.05 15:55:59"
}
}
]
}Response
Successful Response
Example response
{
"msg": "Successful PATCH /v2/comp/products-settings",
"data": {
"limit": 1000,
"total_products": 1250,
"slice_products": 42,
"settings": [
{
"product_id": 21356090,
"sku_sds": 170771792,
"offer_id": "Sh-1457",
"comps_strategy_status": 1,
"min_price": 500,
"max_price": 5000,
"region": 77,
"price_delta": 50,
"competitor_out_of_stock_price": 3000,
"comp_strat_lower_bound": 2500,
"competitors": [
{
"comp_sku": 1738567991,
"competitor_status": 1,
"prices": {
"source": "history",
"base_price": 860,
"discount_price": 375,
"ozon_card_price": 350
}
}
],
"history": {
"current_green_price": 1250,
"current_grey_price": 1250,
"discount_ozon": 22.7,
"discount_card": 10.6,
"comment": "С ценой на сайте все отлично.",
"last_update": "2025.06.05 15:55:59"
},
"has_settings": 1
}
]
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.