Внутреннее апи с ручками для Settings API

Получение глобальных настроек репрайсера

Changed on
get/internal/rrc/global-settings

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/internal/rrc/global-settings
  • Auth: none declared. Required headers: Authorization

Headers

Authorizationstring required

Ключ авторизации

Response

Successful Response

msgstring required

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

errorfalse

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

status_codeinteger

HTTP статус код

delay_settings_errorboolean

Наличие ошибок при загрузке файла с отложенными настройками

Example response

{
  "msg": "Успешно",
  "status_code": 200,
  "user_settings": {
    "max_negative_discount": 15,
    "action_deviation_mode": "OFF",
    "hold_max_action_price": "OFF",
    "city": 77,
    "repricer_mode": "NORMAL",
    "rrc_working_schedule": {
      "MON": [
        9,
        10,
        11,
        17
      ],
      "TUE": [
        8,
        9,
        15,
        16
      ],
      "WED": [
        12,
        13,
        14
      ],
      "THU": [
        1,
        2,
        3,
        4,
        13,
        14,
        15,
        16
      ],
      "FRI": [
        8,
        9,
        15,
        16,
        17
      ],
      "SAT": [
        11,
        12,
        13,
        14
      ],
      "SUN": [
        12,
        13,
        21,
        22,
        23
      ]
    },
    "comp_working_schedule": {
      "MON": [
        9,
        10,
        11,
        17
      ],
      "TUE": [
        8,
        9,
        15,
        16
      ],
      "WED": [
        12,
        13,
        14
      ],
      "THU": [
        1,
        2,
        3,
        4,
        13,
        14,
        15,
        16
      ],
      "FRI": [
        8,
        9,
        15,
        16,
        17
      ],
      "SAT": [
        11,
        12,
        13,
        14
      ],
      "SUN": [
        12,
        13,
        21,
        22,
        23
      ]
    }
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status