Industrial suppliers, wholesale distributors, service groups, and multi-branch retailers across Turkiye run daily finance, inventory, and e-invoicing on Uyumsoft (UyumERP, LioX ERP, and e-Uyum), Mikro Yazilim (Mikro Run, Mikro Jump, and Mikro Fly), and DIA Cloud ERP. Teams planning an Uyumsoft, Mikro, and DIA ERP AI integration quickly discover that none of the three vendors ships a native Model Context Protocol (MCP) server, and each stack uses a radically different wire protocol, database model, and licensing meter. Connecting Claude, ChatGPT, or internal operations assistants without corrupting ledgers or exhausting API quotas requires respecting the exact mechanics of all three architectures.
Why Uyumsoft, Mikro, and DIA cannot share a generic Text-to-SQL wrapper
Just as we saw when connecting Nebim V3 and Nebim ERA data to AI, treating Turkish commercial ERPs as interchangeable SQL databases fails in production because persistence and business logic sit in different places across each vendor:
- Uyumsoft LioX ERP and e-Uyum WCF SOAP contracts: Uyumsoft combines multi-company enterprise ERP modules with one of Turkiye's largest GIB Special Integrator (Ozel Entegrator) gateways. Its statutory and operational interfaces expose WCF SOAP 1.1 and 1.2 endpoints (
IIntegrationwith OASISwsse:UsernameTokenheaders andIBasicIntegrationwith body-levelUserInformation) returning strongly typedInvoiceTypeandDespatchAdviceTypeUBL-TR 2.1 envelopes. - Mikro Jump and Mikro Fly on MikroDB_V16 plus port 8094 REST V2: on-premises Mikro installations store company data on Microsoft SQL Server inside
MikroDB_V16(using prefix-coded tables such asSTOKLAR,CARI_HESAPLAR,CARI_HESAP_HAREKETLERI,STOK_HAREKETLERI, andSIPARISLER) while routing mutations throughMikro.ApiServiceon port8094under/Api/APIMethods/. - DIA Cloud ERP on closed SaaS PostgreSQL with metered JSON-RPC v3: unlike on-premises SQL Server suites, DIA runs 100 percent in the cloud on Linux, Python, and PostgreSQL pods (
<server_code>.ws.dia.com.tr). Customers have no direct SQL connection at all, and every read or write travels overPOST /api/v3/{module}/jsonagainst a prepaidWS Kontorcredit balance.
Six production traps that break naive AI agents across these three ERPs
- Uyumsoft SendInvoice irreversibility and UTF-8 BOM signature faults: calling
SendInvoicesigns the voucher with the company's fiscal seal (Mali Muhur) and transmits it straight into asynchronous GIB queues (status codes1000through1300) with no dry-run mode. Meanwhile, accidentally prepending a0xEF 0xBB 0xBFUTF-8 byte-order mark on compressed byte payloads invalidatesXAdES-BEScryptographic digests, and carelessPagedQueryContextloops over 1.5 million GIB taxpayer aliases trigger timeouts. - Mikro API V2 daily MD5 password hashing and UTC clock skew: Mikro's
APILoginandAlimSatimEvrakiKaydetV2endpoints expect theSifrefield hashed asMD5("YYYY-MM-DD " + password). Containers running in UTC rather than Istanbul time (UTC+03:00) compute yesterday's date between midnight and 03:00 local time, locking out every automated workflow for three hours every night. - Mikro cha_* and sth_* coupled ledger invariants: in
MikroDB_V16, a commercial invoice spans bothCARI_HESAP_HAREKETLERI(cha_*) andSTOK_HAREKETLERI(sth_*linked viasth_fat_uid), governed by dozens of integer enums (cha_evrak_tip,cha_cins,sth_evraktip) and soft-delete flags (_iptal = 0). Querying without those enum maps flips debit and credit signs, while bypassingFaturaKaydetV2with raw SQL corrupts open-item balances. - Unguarded SqlVeriOkuV2 endpoints in Mikro: exposing Mikro's passthrough SQL read endpoint directly to an LLM strips row-level branch isolation (
_firmanoand_subeno) and invites heavy lock contention on live ledger tables. - DIA WS Kontor depletion under chatty agent polling: DIA meters every API call by method weight and page size. An autonomous agent loop polling
stk_kart_listeleandscf_carikart_listeleevery minute burns tens of thousands ofWS Kontorcredits per day, exhausting an entire annual integration quota in less than a week. - DIA disconnect_same_user session eviction races: logging into
/api/v3/sis/jsonwithdisconnect_same_user: truefrom multiple background workers invalidates activesession_idtokens across concurrent requests unless a shared token broker coordinates sessions.
A governed ontology blueprint for Uyumsoft, Mikro, and DIA
Enterprises running one or all three systems across group subsidiaries can connect AI assistants cleanly without risking fiscal penalties or drained API credits:
- Map enum codes and delta caches inside one ontology: run zero-copy read views over
MikroDB_V16and LioX SQL replicas with mandatory_iptal = 0and branch filters, and pair DIA Cloud ERP with an incremental_date_modifieddelta cache inside your enterprise business ontology so conversational questions never burn liveWS Kontorpools. - Stage statutory documents as drafts before signing: route Uyumsoft agent actions to
SaveAsDraftrather thanSendInvoice, validate GIB UBL-TR 1.2.1 Schematron rules and decimal totals deterministically, and require explicit finance approval before fiscal signing. - Serialize writes through official APIs with timezone-safe auth: pin Mikro V2 MD5 token generation to
Europe/Istanbul, enforce per-series voucher queuing onAlimSatimEvrakiKaydetV2, and broker DIAsession_idleases through a single governed gateway.