Общие endpoint-ы репрайсера

История всех операций по акциям

Changed on

Общая ручка для получения истории работы с акциями по артикулу.

Возвращает последние 500 строк из sys.actions_history_ozon с информацией по входу, выходу и изменению цен в акциях. Не привязана к конкретному репрайсеру.

get/action-history/{product_id}/{sku_sds}

Request

  • Base URL: https://api.mpspace.ru (the document declares no server; this is the origin it was published from)
  • URL: https://api.mpspace.ru/action-history/{product_id}/{sku_sds}
  • Auth: none declared. Required headers: x-user-id, x-connect-id

Path parameters

product_idinteger required

Уникальный идентификатор товара в системе продавца (в Seller API).

sku_sdsinteger required

Артикул OZON.

Query parameters

blockstring

Headers

x-user-idinteger required

ID пользователя

x-connect-idinteger required

ID магазина

Response

Successful Response

msgstring required

Текст сообщения об успешной загрузке

errorfalse

Статус ошибки. В случае успеха указано “false”

status_codeinteger

HTTP статус код

Example response

{
  "msg": "Успешно",
  "status_code": 200,
  "history": [
    {
      "operation": "EXIT",
      "action_id": 1977747,
      "action_name": "Эластичный бустинг. Без ограничения срока действия",
      "current_price": 4031,
      "new_price": 3952,
      "max_action_price": 4222,
      "current_boost": 55,
      "operation_result": "SUCCESS",
      "api_method": "/v1/actions/products/update",
      "date_time": "2025.06.05 15:55:59"
    }
  ]
}

Changes