{"openapi":"3.1.0","info":{"title":"API for integration Creatio with different bank systems","description":"API for integration Creatio with different bank systems: CBS, DWH, etc","termsOfService":"https://swagger.io/terms/","contact":{"email":"a.orlenko@cleverik.com"},"license":{"name":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0.html"},"version":"1.0.0"},"externalDocs":{"description":"Find out more about Swagger","url":"https://swagger.io"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/S6875/Creatio__DWH_CBS_Integration/1.0.0"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/cleverik/Creatio__DWH_CBS_Integration/1.0.0"},{"url":"/","description":"Local server"},{"url":"https://dwh-api.demirbank.kg/","description":"DWH server"},{"url":"https://crmapitest.demirbank.kg/","description":"CBS server"}],"tags":[{"name":"Authentication","description":"Аутентификация в Creatio"},{"name":"Contact","description":"Раздел Физ. лица"},{"name":"BankAccount","description":"Раздел счета"},{"name":"BankCard","description":"Раздел карты"},{"name":"Deposit","description":"Раздел депозиты"},{"name":"Credit","description":"Раздел кредиты"},{"name":"Transaction","description":"Транзакции"},{"name":"DWH","description":"Интеграция с DWH"},{"name":"CBS","description":"Интеграция с CBS"}],"paths":{"/ServiceModel/AuthService.svc/Login":{"post":{"tags":["Authentication","DWH"],"summary":"Метод для аутентификации пользователя в Creatio","operationId":"Login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/authenticateRequest"}}}},"responses":{"200":{"description":"In case of successfull login it will return four Cookies. All should be placed in subsequent requests. The one called BPMCSRF should be placed in subsequent requests to header named BPMCSRF. Also there should be Cookie named BPMSESSIONID","headers":{"Set-Cookie":{"style":"simple","explode":false,"schema":{"type":"string","example":"BPMCSRF=wFtVFKMaG.Z1oqgkw2HMRu; path=/ UserName=83|117|112|101|114|118|105|115|111|114; expires=Fri, 04-Oct-2019 14:43:09 GMT; path=/; HttpOnly BPMLOADER=yn5ipmae2pwjgptui1rfh2mj; path=/; HttpOnly ASPXAUTH=034FD28E1D2B50C8FE51F0D74821AB2CA44879D0E6FAE9361DF4B2D81C8DBE5E2292831255A7C292E4EF064E8E16687CF58755FF721C5EBF2AC818A2EB10A5071FFD4B7FEAB824B95EC51B1307CDDBCB3A84EFABA44B828CFD033328B47DC915AB737487787F2621811BA8E22B3971E23D1768CE2FDA037E84B46AF768CB38E19E1F6F85D49238C4581A0FC7DB16433D92B3834137EC0853EAED355165C9E290E1A4F82DD3E0620DECB34227A358B7F582D6C4FC9AAB41B57075D2D563FFCCC1DABB24C4CCD81E9B2C81355E21B5B1951EBDD3CA4A38D8D008523CED5B92AA042E6E6FD1525CDD08B72C1EDBE8FE606AC32BA45CB18A3BEF80F75A1BDDAC61A340AA697268C4BFD39A0E95DA46AFE72F13BED7684A28D2F7E0B2C9615F6BD392D2462DB78CF86B02FBC42CF389BD8332FC86B1E3CAAD7FD19F390F1864C07354133C5A847E131377312EA651466236CD07753A95F69EF8E996EDF279F36F9AFA9B442BDE; path=/; HttpOnly"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/authenticateResponse"}}}}}}},"/rest/ClvDataService/Contact":{"post":{"tags":["Contact","DWH"],"summary":"Создание или обновление записи в разделе Физ. лица (тип Клиент ФЛ)","operationId":"SaveContact","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"Запись в объекте Contact и связанных деталях успешно создана (обновлена)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}},"400":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}}},"security":[{"CreatioSession":[]},{"BPMCSRF":[]},{"ASPXAUTH":[]},{"BPMLOADER":[]},{"UserName":[]}]}},"/customerapi/customer/profile/creatioProfile/{customerNo}":{"get":{"tags":["Contact","CBS"],"summary":"Получение критически значимой информации из CBS по клиенту ФЛ","operationId":"GetClientInfo","parameters":[{"name":"customerNo","in":"path","description":"Ожидается идентификатор клиента (CustomerNo)","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Запись найдена","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFromCBS"}}}},"454":{"description":"Клиент не найден"}},"security":[{"CBSApiKeyAuth":[]}]}},"/rest/ClvDataService/BankAccount":{"post":{"tags":["BankAccount","DWH"],"summary":"Создание или обновление записи в разделе Счета","operationId":"SaveBankAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccount"}}}},"responses":{"200":{"description":"Запись в объекте BankAccount и связанных деталях успешно создана (обновлена)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}},"400":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}}},"security":[{"CreatioSession":[]},{"BPMCSRF":[]},{"ASPXAUTH":[]},{"BPMLOADER":[]},{"UserName":[]}]}},"/accountapi/accounts/creatioAccountDetails/{ClientId}":{"get":{"tags":["BankAccount","CBS"],"summary":"Получение информации из CBS о счетах по идентификатору клиента ФЛ","operationId":"GetBankAccountsByClientId","parameters":[{"name":"ClientId","in":"path","description":"Ожидается идентификатор клиента (CustomerNo)","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Записи найдены","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountFromCBSList"}}}},"454":{"description":"Клиент не найден"}},"security":[{"CBSApiKeyAuth":[]}]}},"/accountapi/accounts/creatioAccountActivity/{ExternalAccountNo}":{"get":{"tags":["BankAccount","CBS"],"summary":"Получение информации об активных блокировках и транзакциях за текущий день по счету","operationId":"GetBankAccountsDetailsBy","parameters":[{"name":"ExternalAccountNo","in":"path","description":"Ожидается внешний номер счета","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Записи найдены","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankAccountActivityFromCBS"}}}},"454":{"description":"Банковский счет не найден"}},"security":[{"CBSApiKeyAuth":[]}]}},"/rest/ClvDataService/BankCard":{"post":{"tags":["BankCard","DWH"],"summary":"Создание или обновление записи в разделе Карты","operationId":"SaveBankCard","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCard"}}}},"responses":{"200":{"description":"Запись в объекте BankCard и связанных деталях успешно создана (обновлена)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}},"400":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}}},"security":[{"CreatioSession":[]},{"BPMCSRF":[]},{"ASPXAUTH":[]},{"BPMLOADER":[]},{"UserName":[]}]}},"/api/v1/integrations/creatio/transactions/by-account-period":{"post":{"tags":["Transaction","DWH"],"summary":"Получение данных о транзакицях по счету за период","operationId":"GetTransactionsByBankAccountPeriod","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionRequest"}}}},"responses":{"200":{"description":"Ответные данные успешно сформированы и переданы","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransacionFromDWH"}}}},"500":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}}},"security":[{"DWHApiKeyAuth":[]}]}},"/card/realtimeInfo":{"get":{"tags":["Transaction","CBS"],"summary":"Получение данных о транзакицях по карте за период","operationId":"GetTransactionsByBankCardPeriod","parameters":[{"name":"customerNumber","in":"query","required":true,"description":"Номер клиента","schema":{"type":"string","examples":["868370"]}},{"name":"startDate","in":"query","required":true,"description":"Начальная дата периода","schema":{"type":"string","format":"date","examples":["2026-05-06"]}},{"name":"endDate","in":"query","required":true,"description":"Конечная дата периода","schema":{"type":"string","format":"date","examples":["2026-05-16"]}},{"name":"pseudopan","in":"query","required":true,"description":"Псевдономер карты","schema":{"type":"string","examples":["1212129558793807"]}}],"security":[{"CBSApiKeyAuth":[]}],"responses":{"200":{"description":"Ответные данные успешно сформированы и переданы","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCardTransactionsList"}}}},"454":{"description":"Клиент не найден"}}}},"/card/info":{"get":{"tags":["BankCard","CBS"],"summary":"Получение информации из CBS о картах по идентификатору клиента ФЛ","operationId":"GetBankCardsByClientId","parameters":[{"name":"customerNumber","in":"query","required":true,"description":"Номер клиента","schema":{"type":"string","examples":["868370"]}}],"responses":{"200":{"description":"Записи найдены","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BankCardFromCBSList"}}}},"454":{"description":"Клиент не найден"}},"security":[{"CBSApiKeyAuth":[]}]}},"/rest/ClvDataService/ClvDeposit":{"post":{"tags":["Deposit","DWH"],"summary":"Создание или обновление записи в разделе Депозиты","operationId":"SaveDeposit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deposit"}}}},"responses":{"200":{"description":"Запись в объекте Deposit и связанных деталях успешно создана (обновлена)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}},"400":{"description":"Внутренняя ошибка сервера","content":{"application/json":{"schema":{"$ref":"#/components/schemas/generalResponse"}}}}},"security":[{"CreatioSession":[]},{"BPMCSRF":[]},{"ASPXAUTH":[]},{"BPMLOADER":[]},{"UserName":[]}]}},"/accountapi/accounts/saving/deposits/{ClientId}":{"get":{"tags":["Deposit","CBS"],"summary":"Получение информации из CBS о депозитах по идентификатору клиента ФЛ","operationId":"GetDepositsByClientId","parameters":[{"name":"ClientId","in":"path","description":"Ожидается идентификатор клиента (CustomerNo)","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Записи найдены","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositsFromCBSList"}}}},"454":{"description":"Клиент не найден"}},"security":[{"CBSApiKeyAuth":[]}]}},"/loanapi/loan/creatioLoans/{ClientId}":{"get":{"tags":["Credit","CBS"],"summary":"Получение информации из CBS о кредитах по идентификатору клиента ФЛ","operationId":"GetCreditsByClientId","parameters":[{"name":"ClientId","in":"path","description":"Ожидается идентификатор клиента (CustomerNo)","required":true,"style":"simple","explode":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Записи найдены","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsFromCBSList"}}}},"454":{"description":"Клиент не найден"}},"security":[{"CBSApiKeyAuth":[]}]}}},"components":{"schemas":{"authenticateRequest":{"required":["UserName","UserPassword"],"type":"object","properties":{"UserName":{"type":"string"},"UserPassword":{"type":"string"}}},"authenticateResponse":{"type":"object","properties":{"Code":{"type":"number","description":"0 - is Ok, 1 - is not Ok","format":"int32"},"Exception":{"$ref":"#/components/schemas/ExceptionObject"},"Message":{"type":"string","description":"Сообщение аутентификации","examples":["Вы ввели неправильный логин или пароль. Проверьте корректность введенных данных или обратитесь к системному администратору. Системный администратор может изменить пароль на странице пользователя"]}}},"generalResponse":{"type":"object","properties":{"Code":{"type":"number","description":"200 - OK, 400 - Bad Request, etc","format":"int32"},"Result":{"type":"string","description":"OK or ERROR"},"Message":{"type":"string","description":"Дополнительная текстовая информация"},"Exception":{"$ref":"#/components/schemas/ExceptionObject"},"TimeStampUtc":{"type":"string","format":"date-time"}}},"ExceptionObject":{"type":"object","properties":{"StackTrace":{"type":"string"},"Message":{"type":"string"},"Type":{"type":"string"}}},"BaseAddress":{"type":"object","required":["AddressType"],"properties":{"AddressType":{"type":"string","description":"Код записи из справочника 'Тип адреса'.","oneOf":[{"const":"1","title":"Адрес регистрации"},{"const":"4","title":"Адрс проживания"}]},"Country":{"type":"string","description":"Двухбуквенный код страны ISO. Например KG","examples":["KG","UK"]},"Street":{"type":"string","description":"Улица"},"House":{"type":"string","description":"Дом"},"Room":{"type":"string","description":"Квартира/Офис"},"Zip":{"type":"string","description":"Почтовый индекс. Например 720010"},"DigitalAddress":{"type":"string","description":"Цифровой адрес. Например 41705214835030"},"FullAddress":{"type":"string","description":"Полный адрес. Например 720000, Кыргызская Республика, г. Бишкек, проспект Чуй, д. 100, кв. 5"}}},"ContactEducation":{"type":"object","required":["CampusId"],"properties":{"CampusId":{"type":"string","description":"ID кампуса"},"OccupationType":{"type":"string","description":"Код записи из справочника 'Профессия / Род деятельности' (OCCUPATION_CD)"},"EducationType":{"type":"string","description":"Код записи из справочника 'Тип образования' (EDUCATION_CODE)","examples":["1"]},"StudyPlace":{"type":"string","description":"Код университета (UNIVERSITY)","examples":["4","11"]}}},"SalaryProject":{"type":"object","required":["CompanyOfStaff","CompanyOfStaffCode"],"properties":{"CompanyOfStaff":{"type":"string","description":"код компании, в которой действует зарлпатный проект","examples":["15997","66801"]},"CompanyOfStaffCode":{"type":"string","description":"код компании, в которой действует зарлпатный проект","examples":["15997","66801"]},"OccupationType":{"type":"string","description":"Код записи из справочника 'Профессия / Род деятельности' (OCCUPATION_CD)","examples":["99"]}}},"Segment":{"type":"object","required":["Segment"],"properties":{"Segment":{"type":"string","description":"Код сегмента","examples":["VIP","MASS","SALARY","STAFF"]}}},"RegDocument":{"type":"object","required":["DocumentType"],"properties":{"DocumentType":{"type":"string","description":"Код типа документа удостоверяющего личность (ID_TYPE). В случае запроса из CBS возвращается только документ с типом 1","examples":["1","2","3","4","5","6"]},"Series":{"type":"string","description":"Серия"},"Number":{"type":"string","description":"Номер"},"IssuedBy":{"type":"string","description":"Орган выдачи"},"IssueDate":{"type":"string","format":"date","description":"Дата выдачи","examples":["2020-09-19"]},"ValidUntil":{"type":"string","format":"date","description":"Дата истечения"}}},"Contact":{"type":"object","required":["ClientId","GivenName","Surname"],"properties":{"ClientId":{"type":"string","description":"ID клиента.","examples":["123456"]},"Type":{"type":"string","description":"Код записи из справочника 'Тип физ.лица' (CUSTOMER_TYPES)","oneOf":[{"const":"1","title":"Физическое лицо (ФЛ)","description":"Физическое лицо"},{"const":"2","title":"Индивидуальный предприниматель (ИП)","description":"Индивидуальный предприниматель"}]},"Name":{"type":"string","description":"ФИО целиком"},"Surname":{"type":"string","description":"Фамилия"},"GivenName":{"type":"string","description":"Имя"},"MiddleName":{"type":"string","description":"Отчество"},"INN":{"type":"string","description":"ПИН"},"Branch":{"type":"string","description":"Код филиала. (BRANCH_CODES)","examples":["002"]},"BirthDate":{"type":"string","format":"date","description":"Дата рождения."},"BirthPlace":{"type":"string","description":"Место рождения"},"FormerSurname":{"type":"string","description":"Предыдущая/девичья фамилия"},"Citizenship":{"type":"string","description":"Двухбуквенный код страны ISO. Например KG","examples":["KG","UK"]},"NonResident":{"type":"boolean","description":"Если резидент - false, иначе = true","examples":[false]},"Gender":{"type":"string","description":"Код записи из справочника 'Пол' (SEX_CODE)","oneOf":[{"const":"F","title":"Женский"},{"const":"M","title":"Мужской"}]},"EconomySector":{"type":"string","description":"Код экономического сектора (ECONOMY_SECTORS)","examples":["14300","14410","14420","14430"]},"MaritalStatus":{"type":"string","description":"Код записи из справочника 'Семейное положение' (MERITAL_STATUS_COD)"},"Email":{"type":"string","description":"Основной адрес Email"},"MobilePhone":{"type":"string","description":"Основной мобильный телефон"},"Phone":{"type":"string","description":"Рабочий телефон"},"HomePhone":{"type":"string","description":"Домашний телефон"},"CodeWord":{"type":"string","description":"Кодовое слово"},"DigitalNotification":{"type":"string","description":"Код пакета цифровых уведомлений (NOTIF_PACKAGE)","oneOf":[{"const":"1","title":"Basic"},{"const":"2","title":"Standard"},{"const":"3","title":"Premium"},{"const":"4","title":"International"}]},"IsPublicOfficial":{"type":"boolean","description":"Если ПДЛ - true, иначе = false","examples":[true]},"PublicOfficialType":{"type":"string","description":"Код Типа ПДЛ (PDL_CODES)","examples":["1","2","3","4"]},"Addresses":{"type":"array","description":"Адреса","items":{"$ref":"#/components/schemas/BaseAddress"}},"Educations":{"type":"array","description":"Образование / место учебы","items":{"$ref":"#/components/schemas/ContactEducation"}},"SalaryProjects":{"type":"array","description":"Запрплатные проекты","items":{"$ref":"#/components/schemas/SalaryProject"}},"RegDocuments":{"type":"array","description":"Документы удостоверяющие личность","items":{"$ref":"#/components/schemas/RegDocument"}},"Segments":{"type":"array","description":"Сегменты клиента","items":{"$ref":"#/components/schemas/Segment"}}}},"ContactFromCBS":{"type":"object","required":["ClientId","GivenName","Surname"],"properties":{"ClientId":{"type":"string","description":"ID клиента.","examples":["123456"]},"Surname":{"type":"string","description":"Фамилия"},"GivenName":{"type":"string","description":"Имя"},"MiddleName":{"type":"string","description":"Отчество"},"Email":{"type":"string","description":"Основной адрес Email"},"MobilePhone":{"type":"string","description":"Основной мобильный телефон"},"RegDocuments":{"type":"array","description":"Документы удостоверяющие личность","items":{"$ref":"#/components/schemas/RegDocument"}}}},"JointBankAccount":{"type":"object","required":["JointClientId","JointBankAccountType"],"properties":{"JointClientId":{"type":"string","description":"ID клиента ФЛ, который совместно использует счет (он же CusomerNo)"},"JointBankAccountType":{"type":"string","description":"Код записи из справочника 'Тип совместного счета'","oneOf":[{"const":"OY","title":"AUTHORIZED"},{"const":"OX","title":"PARTIALLY AUTHORISED"}]}}},"BankAccount":{"type":"object","required":["BankAccountNo","ClientId"],"properties":{"BankAccountNo":{"type":"string","description":"Номер счета (он же AccountNo)","examples":["286732"]},"ClientId":{"type":"string","description":"ID клиента (он же CusomerNo)","examples":["123456"]},"ExternalBankAccountNo":{"type":"string","description":"Основной счет из мобильного приложения.","examples":["1122334455667788"]},"Type":{"type":"string","description":"Код записи из справочника 'Тип счета' (PRODUCT_TYPE_CD)","examples":["DEMAND DEP","CASH COLL.","COLLATERAL"]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты. (CURRANCY)","examples":["KGS"]},"OpenedOn":{"type":"string","format":"date","description":"Дата открытия","examples":["2020-09-19"]},"ClosedOn":{"type":"string","format":"date","description":"Дата закрытия","examples":["2025-03-15"]},"Branch":{"type":"string","description":"Код филиала. (BRANCH_CODES)","examples":["002"]},"Avg6MonthTurnover":{"type":"number","format":"decimal","description":"Среднемесячный оборот за 6 месяцев","examples":[10.99]},"JointAccounts":{"type":"array","description":"Совместное использование счета","items":{"$ref":"#/components/schemas/JointBankAccount"}}}},"BankAccountFromCBS":{"type":"object","required":["BankAccountNo","ClientId"],"properties":{"BankAccountNo":{"type":"string","description":"Номер счета (он же AccountNo)","examples":["286732"]},"ClientId":{"type":"string","description":"ID клиента (он же CustomerNo)","examples":["123456"]},"ExternalAccountNo":{"type":"string","description":"Основной счет из мобильного приложения.","examples":["1122334455667788"]},"Status":{"type":"string","description":"Код записи из справочника 'Состояние счета'","oneOf":[{"const":"A","title":"Активный"},{"const":"D","title":"Черновик"},{"const":"K","title":"Закрыт"},{"const":"I","title":"Cancel"}]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты. (CURRANCY)","examples":["KGS"]},"Balance":{"type":"number","format":"decimal","description":"Баланс","examples":[10.99]},"TotalBlockedAmount":{"type":"number","format":"decimal","description":"Сумма в блоке (операционные блокировки)","examples":[10.99],"minimum":0},"Branch":{"type":"string","description":"Код филиала. (BRANCH_CODES)","examples":["002"]}}},"BankAccountActivityFromCBS":{"type":"object","required":["BankAccountNo","ClientId"],"properties":{"BankAccountNo":{"type":"string","description":"Номер счета (он же AccountNo)","examples":["286732"]},"ClientId":{"type":"string","description":"ID клиента (он же CustomerNo)","examples":["123456"]},"Transactions":{"type":"array","description":"Информация о транзакциях по счету. В данном потоке берутся транзакции за текущий день.","items":{"$ref":"#/components/schemas/Transaction"}},"Blockings":{"type":"array","description":"Информация о блокировках по счету. Ожидается, что в текущем потоке будут передаваться только активные блокировки.","items":{"$ref":"#/components/schemas/Blocking"}}}},"TransacionFromDWH":{"type":"object","required":["TotalCountForPeriod"],"properties":{"TotalCountForPeriod":{"type":"number","format":"int32","description":"общее число транзакций за период","examples":[12000]},"Transactions":{"type":"array","description":"Информация о транзакциях по счету.","items":{"$ref":"#/components/schemas/Transaction"}}}},"BankAccountFromCBSList":{"type":"array","items":{"$ref":"#/components/schemas/BankAccountFromCBS"}},"Blocking":{"type":"object","required":["BankAccountNo"],"properties":{"BankAccountNo":{"type":"string","description":"Номер счета (он же AccountNo)","examples":["286732"]},"Reference":{"type":"string","description":"Референс","examples":["26.002.BLK.00000229"]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты. (CURRANCY)","examples":["KGS"]},"BlockedAmount":{"type":"number","format":"decimal","description":"Заблокировано (сумма))","examples":[10.99],"minimum":0},"BlockingDate":{"type":"string","format":"date","description":"Дата блокировки","examples":["2025-03-15"]},"BlockingReason":{"type":"string","description":"Причина блокировки","examples":["6. Payment Transfer Service"]},"BlockingExplanation":{"type":"string","description":"Описание блокировки","examples":["Блок на осн определения суда №111/11 от 22/02/2022"]},"BlockingEntryUser":{"type":"string","description":"Создал блокировку","examples":["CNT_CALLER"]},"BlockingApprovedBy":{"type":"string","description":"Одобрил блокировку","examples":["CNT_CALLER"]}}},"Transaction":{"type":"object","required":["TranCode","TranNo","ClientId","BankAccountNo"],"properties":{"TranNo":{"type":"string","description":"Уникальный идентификатор транзакции","examples":["1111111111111111"]},"TranCode":{"type":"string","description":"Код транзакции","examples":["3355"]},"TranCodeExplanation":{"type":"string","description":"Описание Кода транзакции"},"ClientId":{"type":"string","description":"Идентификатор клиента (CustomerNo)","examples":["12345"]},"BankAccountNo":{"type":"string","description":"Номер счета списания","examples":["286732"]},"Amount":{"type":"number","format":"decimal","description":"Сумма транзакции в валюте транзакции","examples":[10.99]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты транзакции. (CURRANCY)","examples":["KGS","USD"]},"BalanceCurrencyAmount":{"type":"number","format":"decimal","description":"Сумма транзакции в валюте баланса счета/карты","examples":[10.99]},"TransactionDate":{"type":"string","format":"date-time","description":"Дата и время транзакции в ISO 8601 формате приведенное к UTC","examples":["2026-04-08T10:29:30Z"]},"WriteOffDate":{"type":"string","format":"date-time","description":"Дата и время списания в ISO 8601 формате приведенное к UTC","examples":["2026-04-08T10:29:30Z"]},"Description":{"type":"string","description":"Детали транзакции","examples":["Обналичивание в банкомате","Перевод"]}}},"TransactionsList":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}},"BankCard":{"type":"object","required":["PAN","CardNo","ClientId","CardType"],"properties":{"PAN":{"type":"string","description":"PAN - уникальный идентификатор карты","examples":["1313239563333444"]},"CardNo":{"type":"string","description":"Номер карты","examples":["417212xxxxxx4444"]},"ClientId":{"type":"string","description":"ID клиента (владельца и держателя).","examples":["123456"]},"CardType":{"type":"string","description":"Код записи из справочника 'Тип карты'","oneOf":[{"const":"DEBIT","title":"Дебетовая","description":"Для дебетовых карт"},{"const":"CREDIT","title":"Кредитная","description":"Для кредитных карт"}]},"CardCategory":{"type":"string","description":"Код записи из справочника 'Категория карты' (поле будет удалено в дальнейшем, так как будут отдельные категории по кредитным и дебетовым)","examples":["VSE","002","003"]},"DebitCardCategory":{"type":"string","description":"Код записи из справочника 'Категория карты' (здесь будут только категории дебетовых карт)","examples":["VSE","DCA","MCC"]},"CreditCardCategory":{"type":"string","description":"Код записи из справочника 'Категория кредитной карты'","examples":["043","VGD","MCC"]},"EmbossName":{"type":"string","description":"Эмбосированное имя","examples":["JOHN DOE"]},"ProducedOn":{"type":"string","format":"date","description":"Дата изготовления (Embossed date)","examples":["2020-09-19"]},"EndDate":{"type":"string","format":"date","description":"Дата завершения действия","examples":["2020-09-19"]},"Branch":{"type":"string","description":"Код филиала, где был подан запрос (BRANCH_CODES)","examples":["002"]},"DeliveryBranch":{"type":"string","description":"Код филиала, куда была доставлена карта - место выдачи (BRANCH_CODES)","examples":["002"]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты карты. (CURRANCY). Для кредитных - передавать KGS","examples":["KGS","USD"]}}},"BankCardFromCBS":{"type":"object","required":["PAN","CardNo","ClientId","CardType"],"properties":{"PAN":{"type":"string","description":"PAN - уникальный идентификатор карты","examples":["1313239563333444"]},"CardNo":{"type":"string","description":"Номер карты","examples":["417212xxxxxx4444"]},"ClientId":{"type":"string","description":"ID клиента (владельца и держателя).","examples":["123456"]},"CardType":{"type":"string","description":"Код записи из справочника 'Тип карты'","oneOf":[{"const":"DEBIT","title":"Дебетовая","description":"Для дебетовых карт"},{"const":"CREDIT","title":"Кредитная","description":"Для кредитных карт"}]},"CardStatus":{"type":"string","description":"Код записи из справочника 'Статус карты'","examples":["N","O","F"]},"EmbossName":{"type":"string","description":"Эмбосированное имя","examples":["JOHN DOE"]},"ExpiryDate":{"type":"string","description":"Срок действия (строка)","examples":["04/33","2030/06"]},"PinPrintBranch":{"type":"string","description":"Код филиала, где был напечатан PIN (BRANCH_CODES)","examples":["002"]},"ApplicationDate":{"type":"string","format":"date","description":"Дата подачи заявки","examples":["2020-09-19"]},"IssueDate":{"type":"string","format":"date","description":"Дата выдачи","examples":["2020-09-19"]},"PinPrintDate":{"type":"string","format":"date","description":"Дата печати PIN","examples":["2020-09-19"]},"DeliveryBranch":{"type":"string","description":"Код филиала, куда была доставлена карта - место выдачи (BRANCH_CODES)","examples":["002"]},"Debt":{"type":"number","format":"decimal","description":"Задолженность по выписке","examples":[6573.37]},"TotalLimit":{"type":"number","format":"decimal","description":"Общий лимит","examples":[10000.0]},"AvailableLimit":{"type":"number","format":"decimal","description":"Доступный лимит","examples":[10426.63]},"UsedCreditLimit":{"type":"number","format":"decimal","description":"Использованный кредитный лимит","examples":[0.0]},"CashLimit":{"type":"number","format":"decimal","description":"Лимит на снятие наличных","examples":[10000.0]},"AvailableCashLimit":{"type":"number","format":"decimal","description":"Доступный лимит на снятие наличных","examples":[9772.0]},"MinPayment":{"type":"number","format":"decimal","description":"Минимальный платеж","examples":[6573.37]},"Bonus":{"type":"number","format":"decimal","description":"Бонус","examples":[0.0]},"StatementStatus":{"type":"string","description":"Статус выписки","examples":["D"]},"CurrentDelayDuration":{"type":"number","description":"Длительность текущей просрочки","format":"int32","examples":[3]},"MaximumDelay":{"type":"number","description":"Максимальная просрочка","format":"int32","examples":[8]},"NumberOfDelays":{"type":"number","description":"Кол-во просрочек","format":"int32","examples":[3]},"InternetPaymentsPermission":{"type":"string","description":"Код записи из справочника 'Разрешение на интерент платежи'","oneOf":[{"const":"AE","title":"All allowed","description":"All e-Commerce transactions are allowed"},{"const":"NE","title":"Not allowed","description":"No e-Commerce transactions are allowed"},{"const":"3D","title":"3D secured","description":"Only 3D secured e commerce transactions are allowed"}]}}},"BankCardTransaction":{"type":"object","required":["CardPan"],"properties":{"CardPan":{"type":"string","description":"PAN - уникальный идентификатор карты","examples":["1313239563333444"]},"TransactionDate":{"type":"string","format":"date-time","description":"Дата и время транзакции в ISO 8601 формате приведенное к UTC","examples":["2026-04-08T10:29:30Z"]},"Amount":{"type":"number","format":"decimal","description":"Сумма транзакции","examples":[256.0]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты. (CURRANCY).","examples":["KGS"]},"Location":{"type":"string","description":"Локация","examples":["YANDEX.GO_POWER G.BISHKEK KG"]},"Number":{"type":"string","description":"Номер Rrn для дебетовых, transactionNumber - для кредитных","examples":["01234"]},"Description":{"type":"string","description":"Описание","examples":["Cash withdrawal","Balance Inquiry","Cash advance B2B"]},"TypeCode":{"type":"string","description":"Код типа.","examples":["010","040"]}}},"BankCardTransactionsList":{"type":"array","items":{"$ref":"#/components/schemas/BankCardTransaction"}},"BankCardFromCBSList":{"type":"array","items":{"$ref":"#/components/schemas/BankCardFromCBS"}},"TransactionRequest":{"type":"object","required":["AccountNo","DateFrom","DateTo"],"properties":{"AccountNo":{"type":"string","description":"Идентификатор счета","examples":["123456"]},"DateFrom":{"type":"string","format":"date","description":"Дата c","examples":["2021-03-19"]},"DateTo":{"type":"string","format":"date","description":"Дата по","examples":["2021-03-21"]}}},"BankCardTransactionRequest":{"type":"object","required":["CardPan","DateFrom","DateTo"],"properties":{"CardPan":{"type":"string","description":"Идентификатор карты (PAN)","examples":["1313239563333444"]},"DateFrom":{"type":"string","format":"date","description":"Дата c","examples":["2021-03-19"]},"DateTo":{"type":"string","format":"date","description":"Дата по","examples":["2021-03-21"]}}},"Deposit":{"type":"object","required":["DepId","Title","ClientId"],"properties":{"DepId":{"type":"string","description":"уникальный идентификатор депозита","examples":["20204100"]},"Title":{"type":"string","description":"Название - колонка для отображения в Creatio. Передавать то же что и в DepId","examples":["20204100"]},"ClientId":{"type":"string","description":"ID клиента","examples":["123456"]},"DepositType":{"type":"string","description":"Код записи из справочника 'Тип депозита' (PRODUCT_TYPE_CD)","oneOf":[{"const":"LONG TERM","title":"LONG TERM"},{"const":"SHORT TERM","title":"SHORT TERM"},{"const":"MEDIUMTERM","title":"MEDIUM TERM"},{"const":"CRED.CARD+","title":"CRED.CARD+"}]},"DepositCurrencyClass":{"type":"string","description":"Код записи из справочника 'Класс валюты депозита'","oneOf":[{"const":"LC","title":"LC"},{"const":"FC","title":"FC"}]},"Product":{"type":"string","description":"Код записи из справочника 'Продукты'","oneOf":[{"const":"DEP_CARD+","title":"Депозит Карт +"},{"const":"TIME_DEP_MONTHLY","title":"Срочный депозит» с выплатой % ежемесячно"},{"const":"TIME_DEP","title":"Срочный депозит» с выплатой % в конце срока"}]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты депозита. (CURRANCY)","examples":["KGS","USD"]},"InterestPayOutPeriod":{"type":"string","description":"Код записи из справочника 'Период выплаты процентов'","oneOf":[{"const":"MONTHLY","title":"Ежемесячно"},{"const":"DAILY","title":"Ежедневно"},{"const":"ENDOFTERM","title":"В конце срока"}]},"InterestPayOutPeriodicity":{"type":"number","description":"Периодичность выплаты % - число. В случае выплаты в конце срока указыать 0","format":"int32","examples":[1]},"InterestPayOutPeriodicityType":{"type":"string","description":"Периодичность выплаты % - тип периода. Код записи из справочника 'Тип периода'. В случае выплаты в конце срока присылать пустым.","oneOf":[{"const":"MONTH","title":"Месяц"},{"const":"DAY","title":"День"},{"const":"QUARTER","title":"Квартал"},{"const":"WEEK","title":"Неделя"},{"const":"CALENDARYEAR","title":"Календарный год"},{"const":"HALFYEAR","title":"Полугодие"},{"const":"OPTIONAL","title":"Произвольный период"}]},"Term":{"type":"number","description":"Срок депозита - число","format":"int32","examples":[3]},"PeriodType":{"type":"string","description":"Срок депозита - Тип периода. Код записи из справочника 'Тип периода'.","oneOf":[{"const":"MONTH","title":"Месяц"},{"const":"DAY","title":"День"},{"const":"QUARTER","title":"Квартал"},{"const":"WEEK","title":"Неделя"},{"const":"CALENDARYEAR","title":"Календарный год"},{"const":"HALFYEAR","title":"Полугодие"},{"const":"OPTIONAL","title":"Произвольный период"}]},"ProlongationType":{"type":"string","description":"Код записи из справочника 'Тип пролонгации' (Maturity code)","oneOf":[{"const":"FRESH+","title":"FRESH"},{"const":"RENEWAL","title":"Renewal"},{"const":"ROLLOUT","title":"Rollout"}]},"AutoProlongation":{"type":"boolean","description":"Автопролонгация","examples":[false]},"DebitBankAccountNo":{"type":"string","description":"Номер счета списания","examples":["286732"]},"RelatedBankAccountNo":{"type":"string","description":"Номер счета выплыт %","examples":["123456"]}}},"DepositFromCBS":{"type":"object","required":["DepId","Title","ClientId"],"properties":{"DepId":{"type":"string","description":"уникальный идентификатор депозита","examples":["20204100"]},"Title":{"type":"string","description":"Название"},"ClientId":{"type":"string","description":"ID клиента","examples":["123456"]},"Status":{"type":"string","description":"Код записи из справочника 'Статус депозита'","oneOf":[{"const":"A","title":"Действующий"},{"const":"K","title":"Закрытый"},{"const":"I","title":"Cancel"}]},"Amount":{"type":"number","format":"decimal","description":"Сумма (Первоначальный взнос)","examples":[10000.02]},"Balance":{"type":"number","format":"decimal","description":"Текущий баланс","examples":[10300.02]},"InterestRate":{"type":"number","format":"decimal","description":"Процентная ставка","examples":[7.5]},"InterestAmount":{"type":"number","format":"decimal","description":"Сумма процентов","examples":[500.25]},"PercentBase":{"type":"number","format":"int32","description":"Процентная база","oneOf":[{"const":365},{"const":366}]},"OpeningDate":{"type":"string","format":"date","description":"Дата открытия (Дата в CBS)","examples":["2020-09-19"]},"ClosingDate":{"type":"string","format":"date","description":"Дата закрытия","examples":["2021-03-19"]},"PaymentDate":{"type":"string","format":"date","description":"Дата выплаты (начисления) процентов","examples":["2021-01-19"]},"ValueDate":{"type":"string","format":"date","description":"Дата валютирования","examples":["2021-01-19"]},"AccountingDate":{"type":"string","format":"date","description":"Дата учета","examples":["2021-01-19"]},"MaturityDate":{"type":"string","format":"date","description":"Дата окончания (плановое окончание)","examples":["2021-01-19"]},"RenewalDate":{"type":"string","format":"date","description":"Дата пролонгации","examples":["2021-01-19"]}}},"DepositsFromCBSList":{"type":"array","items":{"$ref":"#/components/schemas/DepositFromCBS"}},"CreditFromCBS":{"type":"object","required":["CreditId","Title","ClientId"],"properties":{"CreditId":{"type":"string","description":"уникальный идентификатор кредита (номер кредитного счета?)","examples":["286732"]},"Title":{"type":"string","description":"Название"},"Status":{"type":"string","description":"Код записи из справочника 'Статус кредита'","oneOf":[{"const":"A","title":"Активный"},{"const":"K","title":"Закрытый"}]},"ClientId":{"type":"string","description":"ID клиента","examples":["123456"]},"BankAccountNo":{"type":"string","description":"Номер кредитного счета","examples":["286732"]},"Branch":{"type":"string","description":"Код филиала. (BRANCH_CODES)","examples":["002"]},"StartDate":{"type":"string","format":"date","description":"Дата начала","examples":["2021-03-19"]},"DueDate":{"type":"string","format":"date","description":"Дата окончания","examples":["2024-03-19"]},"ClosingDate":{"type":"string","format":"date","description":"Дата закрытия","examples":["2024-03-19"]},"CreditType":{"type":"string","description":"Код записи из справочника 'Тип кредита'","oneOf":[{"const":"RETAIL"},{"const":"CORPORATE"}]},"CreditProductType":{"type":"string","description":"Тип кредитного продукта. (PRODUCT_TYPE_CD)","examples":["AGRICUL"]},"CreditProductClass":{"type":"string","description":"Класс кредитного продукта. (PRODUCT_CLASS_CD)","examples":["PENALTY-INTEREST-LC"]},"LoanProgramDescription":{"type":"string","description":"Описание типа кредитной программы"},"AgreementDate":{"type":"string","format":"date","description":"Дата кредитного договора","examples":["2024-03-19"]},"AgreementNo":{"type":"string","description":"Номер кредитного договора","examples":["002-2-24-411712"]},"IsBadList":{"type":"string","description":"Черный список","oneOf":[{"const":"YES"},{"const":"NO"},{"const":"ALL"}]},"IsStaffLoan":{"type":"string","description":"Для сотрудника","oneOf":[{"const":"YES"},{"const":"NO"},{"const":"ALL"}]},"Amount":{"type":"number","format":"decimal","description":"Сумма кредита","examples":[10000.0]},"Currency":{"type":"string","description":"Трехбуквенный ISO-4217 код валюты. (CURRANCY)","examples":["KGS"]},"CurrentDebt":{"type":"number","format":"decimal","description":"Текущий долг (остаток по кредиту)","examples":[8000.0]},"BalanceDue":{"type":"number","format":"decimal","description":"Остаток к погашению (Текущий долг + Начисленные проценты + Пени и штрафы)","examples":[8200.0]},"OverdueDebt":{"type":"number","format":"decimal","description":"Просроченная задолженность","examples":[100.0]},"NotOverdueDebt":{"type":"number","format":"decimal","description":"Непросроченная задолженность","examples":[1000.0]},"InterestRate":{"type":"number","format":"decimal","description":"Процнтная ставка","examples":[16.66]},"AccruedInterest":{"type":"number","format":"decimal","description":"Начисленные проценты","examples":[40.66]},"PenaltiesInterestRate":{"type":"number","format":"decimal","description":"Ставка процента по пеням и штрафам","examples":[16.66]},"PenaltiesAndFines":{"type":"number","format":"decimal","description":"Пени и штрафы, сумма","examples":[56.94]},"DelayInterestRate":{"type":"number","format":"decimal","description":"Процнтная ставка по просроченной задолженности","examples":[33.32]},"InteresDelayDays":{"type":"number","format":"int32","description":"Просроченные дни по процентам","examples":[197]},"DebtDelayDays":{"type":"number","format":"int32","description":"Просроченные дни по основной сумме","examples":[197]},"NonAccrualStatus":{"type":"string","description":"Статус начисления процентов.","oneOf":[{"const":"YES"},{"const":"NO"},{"const":"ALL"}]},"NonAccrualStatusDate":{"type":"string","format":"date","description":"Дата приостановки начисления процентов","examples":["2022-07-19"]},"AccrualStatusDate":{"type":"string","format":"date","description":"Дата изменения статуса начисления процентов","examples":["2022-07-19"]},"RepaymentType":{"type":"string","description":"Код записи из справочника 'Тип погашения'","oneOf":[{"const":"MATURITY DATE","title":"ON MATURITY"},{"const":"INSTALLMENT DATE","title":"IN INSTALLMENTS"}]},"Restructured":{"type":"string","description":"Реструктуризация","oneOf":[{"const":"YES"},{"const":"NO"},{"const":"ALL"}]},"RestructuredDate":{"type":"string","format":"date","description":"Дата реструктуризации","examples":["2022-07-19"]},"RestructuredCount":{"type":"number","format":"int32","description":"Кол-во реструктуризаций","examples":[1]},"IsAutoCollection":{"type":"string","description":"Автоматическое списание платежей","oneOf":[{"const":"YES"},{"const":"NO"},{"const":"ALL"}]},"ProductGroupDesc":{"type":"string","description":"Описание группы продукта"},"Owner1":{"type":"string","description":"Ответственный 1","examples":["JOHN DOE"]},"Owner2":{"type":"string","description":"Ответственный 2","examples":["JOHN DOE"]},"PaymentSchedule":{"type":"array","items":{"$ref":"#/components/schemas/CreditPaymentSchedule"}}}},"CreditPaymentSchedule":{"type":"object","required":[false],"properties":{"No":{"type":"number","format":"int32","description":"Номер платежа. Является ключем в рамках кредита","examples":[1]},"InstallmentStatus":{"type":"string","description":"Код записи из справочника 'Статус платежа'","oneOf":[{"const":"A","title":"ACTIVE"},{"const":"T","title":"Paid ( in Collecting )"},{"const":"O","title":"Paid ( in Interim Paying)"},{"const":"K","title":"Paid (in Closing )"},{"const":"R","title":"REFUSAL"}]},"PlanDate":{"type":"string","format":"date","description":"Дата платежа плановая","examples":["2022-07-19"]},"ActualDate":{"type":"string","format":"date","description":"Дата платежа фактическа","examples":["2022-07-19"]},"BodyAmount":{"type":"number","format":"decimal","description":"Сумма основного долга","examples":[6571.41]},"InterestAmount":{"type":"number","format":"decimal","description":"Сумма по процентам","examples":[763.58]},"TaxAmount":{"type":"number","format":"decimal","description":"Сумма налога","examples":[15.27]},"TotalAmount":{"type":"number","format":"decimal","description":"Общая сумма платежа","examples":[7350.26]},"RemainingDebt":{"type":"number","format":"decimal","description":"Остаток по кредиту","examples":[143428.59]},"OverdueInterestAmount":{"type":"number","format":"decimal","description":"Просроченые проценты","examples":[30.4]},"PenaltyAmount":{"type":"number","format":"decimal","description":"Пени/Штрафы","examples":[1.76]}}},"CreditsFromCBSList":{"type":"array","items":{"$ref":"#/components/schemas/CreditFromCBS"}}},"securitySchemes":{"CreatioSession":{"type":"apiKey","in":"cookie","name":"BPMSESSIONID","description":"Session cookie returned by Creatio after login."},"ASPXAUTH":{"type":"apiKey","in":"cookie","name":".ASPXAUTH","description":".ASPXAUTH cookie returned by Creatio after login."},"BPMLOADER":{"type":"apiKey","in":"cookie","name":"BPMLOADER","description":"BPMLOADER cookie returned by Creatio after login."},"UserName":{"type":"apiKey","in":"cookie","name":"UserName","description":"UserName cookie returned by Creatio after login."},"BPMCSRF":{"type":"apiKey","in":"header","name":"BPMCSRF","description":"CSRF protection header required for POST/PUT/DELETE requests. Obtained from Cookie called BPMCSRF which returned by Creatio after successful login."},"CBSApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"DWHApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}}}}