Репрайсер по конкурентам V2

Глобальные настройки по магазину в репрайсере конкурентов (v2)

Changed on

Получить настройки по магазину для репрайсера по конкурентам.

Если пользователь ещё не сохранял глобальные настройки, возвращаются значения по умолчанию (как DEFAULT в sys.global_settings_ozon_competitors).

Для получения дополнительных данных (список городов, текущие курсы валют) используйте ручку /base_info (Базовая информация по репрайсерам РРЦ и конкуренты) в разделе Общие endpoint-ы репрайсера.

Работает с новой таблицей sys.global_settings_ozon_competitors.

get/v2/comp/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/v2/comp/global-settings
  • Auth: none declared. Required headers: x-connect-id, x-user-id

Query parameters

blockstring

Headers

x-connect-idinteger required

ID магазина

x-user-idinteger required

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

Response

Successful Response

msgstring required
errorboolean

Статус ошибки (True/False)

Example response

{
  "msg": "Successful GET /v2/comp/global-settings",
  "data": {
    "currency": "RUB",
    "region": 77,
    "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

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new 2.00 enum value to the / response property for the response 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