Package: pyiikocloudapi
pyiikocloudapi - python iikoCloud API сервисУстановкаПользуем pip:pip install pyiikocloudapi###Зависимостиrequests
pydanticКак использоватьВсе названия методов соответствуют названию в ссылке (смотрите документацию iiko Transport).Пример названия метода:/api/1/auth/        -access_token/api/1/order/create -order_createЕсли вам нужно чтобы ответ был в dict то либоapi = IikoTransport(api_login, )_(++08=000000000return_dict=True)

# Либо
api.return_dict = TrueExamplefrom pyiikocloudapi import IikoTransport
from pyiikocloudapi.models import CouriersModel

# инициализация класса 
api = IikoTransport(api_login)

# получаем организации получить из можно api.organizations_ids: dict or api.organizations_ids_models: OrganizationsModel
api.organizations()

# получаю список курьеров организации
couriers: CouriersModel = api.couriers(api.organizations_ids)Каждый метод проверяет время жизни маркера доступа, если время жизни маркера прошло то будет автоматически запрошен заново.Время жизни маркера доступа равно ~60 минутам.###Доп. инфа
iiko Transport(iiko Cloud API) по словамразработчиковэто по сути горячие хранилище без доступа к данным БДsourceKeyэто "Источник заказа" из настроек в iikoWebРеализованные методы iiko Transport(iiko Cloud API)AuthorizationRetrieve session key for API user.NotificationsSend notification to external systems (iikoFront and iikoWeb).OrganizationsReturns organizations available to api-login user.Terminal groupsMethod that returns information on groups of delivery terminals.Returns information on availability of group of terminals.DictionariesDelivery cancel causes.Order types.Discounts / surcharges.Payment types.Removal types (reasons for deletion).Get tips tipes for api-login`s rms group.MenuMenu.External menus with price categories.Retrieve external menu by ID.Out-of-stock items.Get combos infoCalculate combo priceWebHook notification about stop list update. Webhook ???OperationsGet status of command.Deliveries: Create and updateCreate delivery.Update order problem.Update delivery status.Update order courier.Add order items.Close order.Cancel delivery order.Change time when client wants the order to be delivered.Change order's delivery point information.Change order's delivery type.Change order's payments.Change delivery comment.Print delivery bill.Confirm delivery.Cancel delivery confirmation.Assign/change the order operator.WebHook notification about delivery order update. Webhook ???WebHook notification about delivery order saving error. Webhook ???Deliveries: RetrieveRetrieve orders by IDs.Retrieve list of orders by statuses and dates.Retrieve list of orders changed from the time revision was passed.Retrieve list of orders by telephone number, dates and revision.Search orders by search text and additional filters (date, problem, statuses and other).AddressesRegions.Cities.Streets by city.Delivery restrictionsRetrieve list of delivery restrictions.Update delivery restrictions.Get suitable terminal groups for delivery restrictions.EmployeesMethod of obtaining drivers' coordinates history.Returns list of all employees which are delivery drivers in specified restaurants.Returns list of all employees which are delivery drivers in specified restaurants, and checks whether each employee has passed role.Returns list of all active (courier session is opened) courier's locations which are delivery drivers in specified restaurant and are clocked in on specified delivery terminal.Returns list of all active (courier session is opened) courier's locations which are delivery drivers in specified restaurants.Returns employee info.wMarketing sourcesMarketing sources.DraftsRetrieve order draft by ID.Retrieve order drafts list by parameters.Store order draft changes to DB.Admit order draft changes and send them to Front.OrdersCreate order.Retrieve orders by IDs.Retrieve orders by tables.Add order items.Close order.Change table order's payments.Init orders, created in the front.WebHook notification about table order update. Webhook ???WebHook notification about table order saving error. Webhook ???Banquets/reservesReturns all organizations of current account (determined by Authorization request header) for which banquet/reserve booking are available.Returns all terminal groups of specified organizations, for which banquet/reserve booking are available.Returns all restaurant sections of specified terminal groups, for which banquet/reserve booking are available.Returns all banquets/reserves for passed restaurant sections.Create banquet/reserve.Retrieve banquets/reserves statuses by IDs.WebHook notification about reserve update. Webhook ???WebHook notification about reserve saving error. Webhook ???Discounts and promotionsCalculate discounts and other loyalty items for an order.Get all organization's manual conditions.Get all loyalty programs for organization.Get information about the specified coupon.Get a list of coupon series in which there are not deleted and not activated coupons.Get list of non-activated coupons.CustomersGet customer info by specified criterion.Create or update customer info by id or phone or card track.Add new customer for program.Add new card for customer.Delete existing card for customer.Hold customer's money in loyalty program. Payment will be process on POS during processing of an order.Refill customer balance.Withdraw customer balance.....