Connecting Cardcom (קארדקום) Payments to AI and Automations
Cardcom clears cards, Bit and recurring charges for thousands of Israeli businesses — and unlike most gateways, it also issues the tax invoice. That makes it one of the richest data sources in your stack. Here is how a senior engineer connects Cardcom to AI using its real API, and the automations that genuinely pay off.
If you sell anything online in Israel, there's a fair chance Cardcom (קארדקום) is somewhere in your checkout. It does two jobs most gateways split between two vendors: it clears the payment — cards, Bit, installments, recurring charges — and it issues the tax invoice or receipt for it. That second job matters more than people realize, because it means every Cardcom transaction is a complete, structured business event: who paid, how much, for what, when, whether it cleared, and the document number that proves it. That is exactly the kind of clean signal AI thrives on, and most businesses leave it sitting untouched in the Cardcom dashboard.
How Cardcom actually exposes data
Cardcom is not a single tidy REST endpoint with a flag you flip. In practice you work with a few building blocks, and which ones you use depends on how much card-handling (PCI) scope you're willing to take on:
- LowProfile — Cardcom's hosted payment page. You open it with your terminal number plus an API name and password, the customer pays on Cardcom's domain, and the card details never touch your server (minimal PCI). When the payment finishes, Cardcom redirects back and calls your server with a result code you must verify.
- Transactions / Charge API — server-to-server charging, including charging a saved token, J5 holds and J4 captures, refunds and queries. This is the layer AI systems care about, authenticated with your API credentials rather than card data in the request.
- Recurring billing (הוראת קבע) — Cardcom stores a token and charges it on a schedule; the events it emits are the heartbeat of any subscription business.
- Documents API — because Cardcom issues invoices and receipts itself, you can create, fetch and email tax documents through the same account, which is what lets reconciliation actually close the loop.
For automation, the two pieces that matter most are the webhook / indicator callback (a URL Cardcom calls when a transaction completes — your real-time hook into payment events) and the server API for pulling and pushing data on demand. Together they give you both push and pull, which is precisely what an AI layer needs to be useful instead of stale.
What you can actually build
- Reconciliation that runs itself: an AI job matches each Cardcom settlement and its issued invoice against your bookkeeping — Rivhit, iCount, Priority — and surfaces only the mismatches a human needs to see.
- Failed-payment recovery: a declined recurring charge triggers an AI-drafted WhatsApp or email in the customer's own tone, with a fresh LowProfile payment link to fix it in one tap.
- Fraud and anomaly alerts: AI watches the transaction stream for odd patterns — sudden volume spikes, repeated declines, mismatched details — and pings you on Slack before a chargeback wave lands.
- Plain-language finance answers: a chatbot that answers "how much did we clear in Bit last month versus cards, and which products drove refunds?" by querying Cardcom and summarizing — no export, no analyst.
- Smart documents: every successful charge auto-issues the right tax invoice, files it, and lets AI categorize the line item so your books are closed the moment the money lands.
Where the real work is
The AI model is the easy, commoditized part now. The engineering lives in the seams: verifying that a webhook genuinely came from Cardcom before you act on it, never trusting the browser redirect alone as proof of payment, reconciling the transaction with the document it generated, handling declines and 3D Secure, mapping Cardcom's response codes to your own data model, and never, ever letting card data near an AI prompt or a log file. This is payment infrastructure — unglamorous, high-stakes, and exactly where a quiet bug turns into real money lost.
With payments the AI is the showroom. The auditable plumbing behind the checkout is the engine — and the engine is the part that actually has to be right.
No-code or custom code?
For a single low-volume flow — posting each sale to a Slack channel, say — a no-code tool like Make or Zapier with an HTTP module against the webhook is often genuinely enough, and I'll tell you when it is. You should reach for custom code the moment money, privacy or volume are on the line: server-to-server charging, recurring-billing logic, reconciling payments against issued invoices, sensitive data that must stay off third-party platforms, or AI logic too specific for a pre-built connector. If you're looking to hire a developer to connect Cardcom to your AI-driven systems and automations, this is precisely the work I do — building the secure, auditable layer between your payment gateway and AI, end to end. The contact form on this page reaches me directly; tell me what your transactions should be telling you, and I'll build it.
Looking for a developer to connect your systems to AI?
I'm Ariel Gelberg — a senior software engineer and technical partner. I build the integrations and automations that connect your business to AI, end to end.
Let's talk