Skip to content
Naditu
Get started

Connecting Uyumsoft, Mikro, and DIA ERP to AI

How to connect Uyumsoft LioX, Mikro Jump and Fly, and DIA Cloud ERP to AI agents safely: WCF SOAP, daily MD5 tokens, WS kontor, and write gates.

Naditu4 min read

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 (IIntegration with OASIS wsse:UsernameToken headers and IBasicIntegration with body-level UserInformation) returning strongly typed InvoiceType and DespatchAdviceType UBL-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 as STOKLAR, CARI_HESAPLAR, CARI_HESAP_HAREKETLERI, STOK_HAREKETLERI, and SIPARISLER) while routing mutations through Mikro.ApiService on port 8094 under /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 over POST /api/v3/{module}/json against a prepaid WS Kontor credit balance.

Six production traps that break naive AI agents across these three ERPs

  1. Uyumsoft SendInvoice irreversibility and UTF-8 BOM signature faults: calling SendInvoice signs the voucher with the company's fiscal seal (Mali Muhur) and transmits it straight into asynchronous GIB queues (status codes 1000 through 1300) with no dry-run mode. Meanwhile, accidentally prepending a 0xEF 0xBB 0xBF UTF-8 byte-order mark on compressed byte payloads invalidates XAdES-BES cryptographic digests, and careless PagedQueryContext loops over 1.5 million GIB taxpayer aliases trigger timeouts.
  2. Mikro API V2 daily MD5 password hashing and UTC clock skew: Mikro's APILogin and AlimSatimEvrakiKaydetV2 endpoints expect the Sifre field hashed as MD5("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.
  3. Mikro cha_* and sth_* coupled ledger invariants: in MikroDB_V16, a commercial invoice spans both CARI_HESAP_HAREKETLERI (cha_*) and STOK_HAREKETLERI (sth_* linked via sth_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 bypassing FaturaKaydetV2 with raw SQL corrupts open-item balances.
  4. Unguarded SqlVeriOkuV2 endpoints in Mikro: exposing Mikro's passthrough SQL read endpoint directly to an LLM strips row-level branch isolation (_firmano and _subeno) and invites heavy lock contention on live ledger tables.
  5. 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_listele and scf_carikart_listele every minute burns tens of thousands of WS Kontor credits per day, exhausting an entire annual integration quota in less than a week.
  6. DIA disconnect_same_user session eviction races: logging into /api/v3/sis/json with disconnect_same_user: true from multiple background workers invalidates active session_id tokens across concurrent requests unless a shared token broker coordinates sessions.
Multi-branch Mikro, Uyumsoft, and DIA deployments require strict firm, branch, and warehouse filtering before any financial or stock row reaches an AI model.

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_V16 and LioX SQL replicas with mandatory _iptal = 0 and branch filters, and pair DIA Cloud ERP with an incremental _date_modified delta cache inside your enterprise business ontology so conversational questions never burn live WS Kontor pools.
  • Stage statutory documents as drafts before signing: route Uyumsoft agent actions to SaveAsDraft rather than SendInvoice, 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 on AlimSatimEvrakiKaydetV2, and broker DIA session_id leases through a single governed gateway.
Keep analytical queries fast and quota-safe on governed read views or delta caches, and gate every Uyumsoft, Mikro, or DIA write behind human approval.

Sources

  1. Uyumsoft LioX ERP and e-Uyum Platform Overview, Uyumsoft
  2. Mikro API V2 and V3 Developer Documentation, Mikro Yazilim
  3. DIA Bulut ERP Web Service JSON API v3 Documentation, DIA Yazilim

More on ERP data for AI: How to get ERP, CRM and plant data into a shape an AI assistant can use: undeclared links, status codes, and data that lives in several systems.

Keep reading

Follow what we ship.

New connectors, product updates and what we learn rolling AI out in enterprises, sent to your inbox.

Book a demo

Tell us where to reach you and we will reply with times.