SUMIT exposes a REST API covering both document issuance and card clearing, which makes it unusual in the Israeli market - and creates one design decision you have to get right before writing code.
Key takeaways
- SUMIT covers invoicing and card clearing in one system. That removes the usual seam between a payment gateway and an invoicing system - the single most common source of duplicate tax documents.
- Integration capabilities depend on which modules are installed and configured. Confirm the required module is enabled on the account before quoting, because that is a purchasing decision rather than a code problem.
- Take the exact request shape from the official documentation at the developers portal. Each method documents its own structure, and that is the binding source rather than any article.
- The retry rule is identical to every invoicing system: a timeout is not a failure. Check whether a document already exists before retrying, or you produce two tax documents that need a manual cancellation.
SUMIT exposes a REST API covering two areas that usually live in separate systems: document issuance and card clearing. That makes it unusual in the Israeli market and changes the shape of the integration - for the better, if you plan it right.
Official documentation lives in the developers portal at app.sumit.co.il/developers/api/, where each method documents its exact request structure. That is the binding source - this article is about the decisions, not the field layout.
What the API covers
- Documents - tax invoice, receipt, payment demand, transaction account and other document types.
- Clearing and standing orders - creating a card transaction, setting up a standing order, and a Redirect flow for secure clearing from a website.
That combination is the interesting part. In most Israeli projects the payment gateway and the invoicing system are separate vendors, and the seam between them has to be built and maintained.
The real advantage: one seam fewer
The most common design mistake when connecting payments and accounting is double issuance: the gateway is configured to issue a document automatically on payment, and your system issues one too - producing two tax documents for one transaction. It surfaces at month end, at the accountant's desk.
When clearing and documents live in the same system, that seam simply does not exist. It is a genuine advantage, particularly for businesses collecting on a website and issuing a document immediately.
But it does not remove the decision - it moves it. You still have to decide explicitly: is the document created as part of the clearing flow, or in a separate call from your system after the payment is approved? Both are legitimate. What is not legitimate is failing to decide and then discovering there are two.
Modules - establish before pricing
Integration capability in SUMIT depends on which modules are installed on the account and on configuring API keys. Setup includes installing the relevant module before the interface is available.
The practical consequence: if the client's account does not include the module your design depends on, that is a purchasing decision rather than a technical problem. Raise it with whoever controls budget immediately rather than routing around it in code.
Establish before pricing, in writing: which modules are active, and what is required for the specific scenario.
The decisions that remain - identical to every invoicing system
The retry problem
You send a request, the server issues the document, the connection drops before the response returns. Your code sees a timeout, reads it as failure, retries - and now there are two tax documents with two sequential numbers. A tax document cannot be deleted; cancellation is an offsetting document.
- A timeout is not a failure - it is an absence of knowledge. Do not retry automatically.
- Store your own unique reference on the order, and before any retry check whether a matching document already exists.
- A missing document beats a duplicate.
Which document, and when
Tax invoice, receipt, payment demand and transaction account are not interchangeable - the choice determines when revenue is recognised. That is the business accountant's decision, and if your system selects automatically, the logic needs written sign-off.
VAT and exempt dealers
Verify against a real document how the system expects amounts - inclusive or exclusive of VAT. And an exempt dealer does not issue a tax invoice at all; if the system serves more than one dealer type, that changes the document type.
Allocation numbers
The Tax Authority requirement applies regardless of system. See invoice allocation numbers for developers.
Clearing: what holds with any gateway
If you use the Redirect flow for clearing from a website, these three rules apply exactly as they do with Cardcom or PayPlus:
- The browser redirect is not a source of truth. A customer who closes the tab the moment payment clears never reaches the thank-you page, and the order stays "pending" while the money has been taken. State updates come from a server-to-server notification.
- Idempotency. The same notification can arrive twice.
- Cross-check the amount against the order, server-side, always.
And do not touch card details. That is the whole benefit of Redirect, and it holds only if you do not send, log or store them.
Security
The API keys authorise issuing tax documents and collecting money in the business's name. Environment variables or a secrets manager only - not source control, not logs, and not any code running in a browser.
And persist the full API response even on success: the document id, its number and its link. That is the only evidence when an accounting question arrives six months later.
Checklist
- Open the developers portal documentation and work from it - not from an example you found.
- Establish in writing which modules are active on the account.
- Decide explicitly who issues the document: the clearing flow or your system.
- Get written confirmation from the accountant on which documents are issued and when.
- Verify VAT handling against a real document.
- Build duplicate protection before issuing the first production document.
Frequently asked questions
Does SUMIT have an API?
Yes. SUMIT publishes a REST API documented at its developers portal, app.sumit.co.il/developers/api/, covering document creation - tax invoices, receipts, payment demands and transaction accounts - as well as card clearing, standing orders and a Redirect flow for secure payment from a website. Each method documents its own request structure there.
What is the advantage of SUMIT handling both payments and invoicing?
It removes the seam where duplicate tax documents usually appear. When a separate gateway is configured to issue a document on payment and your system also issues one, a single transaction produces two - the most common design mistake in Israeli projects. With both in one system that seam does not exist, though you still must decide explicitly whether the document is created by the clearing flow or by a separate call.
Do SUMIT API capabilities depend on modules?
Yes. Integration capability depends on which modules are installed on the account, alongside configuring API keys - setup includes installing the relevant module before the interface becomes available. Confirm in writing which modules are active before quoting, because a missing module is a purchasing decision to escalate rather than a technical problem to solve in code.
How do you avoid duplicate invoices when a SUMIT call times out?
Do not retry automatically. A timeout means you do not know whether the document was issued, and an issued tax document cannot be deleted - only offset with a counter-document. Store your own unique reference on the order and query whether a document already exists before any retry. A missing document takes a minute to fix; a duplicate needs a cancellation and a paper trail.
Can I mark an order paid on the SUMIT redirect page?
No - use the server-to-server notification instead. The browser redirect depends on the customer staying on the page, and anyone who closes the tab the moment payment clears never reaches it, leaving the order pending while the money was collected. The redirect should only show a thank-you screen, and the receiving endpoint must be idempotent and cross-check the amount.
Keep reading
Related service
Integrations
Make the systems you already pay for talk to each other.
About the author
Yehonatan Saadia
Freelance automation, web & MVP engineer
I'm Yehonatan Saadia, a senior engineer who builds business automation, custom websites, and MVPs for small and mid-sized companies across the US, Europe, and Israel. These guides come from real client work, not theory.
Work with meHave a project like this?
Tell me what you're trying to automate or build and I'll tell you the fastest reliable way to ship it.
