Функция /1.0/geography/schedule/get-list

Описание раздела: Данный раздел GTD.API Beta описывает все региональные представительства ТК GTD.

Назначение метода: Получение списка режимов работы

Поля запроса:
ПараметрОписаниеТипОбязательныйПример
geography_city_idКод города географииintegerНет699
geography_address_idКод адреса географииintegerНет522
group_idКод вида графикаintegerНет1

Поля ответа:
ПараметрОписаниеТипПример
geography_city_idИдентификатор записи городаinteger699
geography_address_idИдентификатор записи адресаinteger522
group_idИдентификатор записи графикаinteger1
dayИдентификатор дня неделиinteger1
freedayИдентификатор выходного дняinteger1
all_dayИдентификатор круглосуточного режима работыinteger1
fromВремя начала рабочего дняСтрока09:00
toВремя начала рабочего дняСтрока18:00

Пример запроса:
{
    "geography_city_id": "699",
    "geography_address_id": "522",
    "group_id": "1"
}


Пример ответа:
[
    {
        "to": "18:00",
        "day": "1",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "2",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "3",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "4",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "5",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "6",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "7",
        "from": "09:00",
        "all_day": "0",
        "freeday": "1",
        "group_id": "1",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "1",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "2",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "3",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "4",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "5",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "6",
        "from": "09:00",
        "all_day": "0",
        "freeday": "0",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    },
    {
        "to": "18:00",
        "day": "7",
        "from": "09:00",
        "all_day": "0",
        "freeday": "1",
        "group_id": "2",
        "geography_city_id": "699",
        "geography_address_id": "522"
    }
]