E-commerce and rules 3 min read Updated
Integrating Pohoda, ABRA Flexi and ERP via API
In short
Connecting an online shop or marketplace to Pohoda or ABRA Flexi reliably depends on queue isolation, idempotent order keys and explicit stock reservation rules rather than live checkout calls.
Bridging an online shop or multi-channel order feed with Czech and Slovak accounting systems such as Stormware Pohoda or ABRA Flexi removes manual retyping of orders, stock movements and invoices. Most integration outages happen when a storefront calls the ERP synchronously during checkout or retries failed requests without deduplication. Build the bridge around queued jobs, schema validation and clear ownership of stock counts.
Comparing Pohoda XML mServer and ABRA Flexi REST API
Although both systems cover accounting, inventory and invoicing, their integration surfaces behave very differently in production.
| Integration layer | Stormware Pohoda (XML / mServer) | ABRA Flexi (REST API) |
|---|---|---|
| Transport and payload | HTTP POST to POHODA mServer or batch XML files | Standard HTTP REST (JSON or XML) |
| Authentication | HTTP header STW-Authorization over secured tunnel | HTTP Basic Auth or session/API tokens over HTTPS |
| Runtime model | Windows desktop/server process handling queued XML requests | Cloud or self-hosted HTTP service designed for concurrent API calls |
| Primary failure risk | Long locking batches, Windows restarts or encoding mismatches | Partial updates without explicit conflict or rate-limit handling |
Working safely with Pohoda XML and mServer
According to Stormware XML documentation, Pohoda validates incoming and outgoing envelopes strictly against versioned XSD schemas. Generating XML by string concatenation breaks as soon as a buyer enters an ampersand, non-breaking space or multi-line delivery note. Always build payloads using a proper XML serializer, enforce UTF-8 or the exact declared encoding, and validate against the matching XSD schema before dispatch.
Because mServer runs alongside the accounting host, never tie web checkout latency to an mServer response. Persist paid orders in your application database first, push an integration job onto a background queue (background queues and retries), and let workers submit XML packets sequentially with reasonable timeouts.
Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea
Structuring integrations with ABRA Flexi REST API
ABRA Flexi’s REST API uses standard HTTP verbs and supports JSON alongside XML, which simplifies incremental syncs for stock items, price lists, received orders and issued invoices. Use incremental timestamp filtering (for example polling modified records since the last successful cursor) rather than downloading the entire catalogue every five minutes.
When pushing orders back into ABRA Flexi, wrap related changes carefully, log the returned internal record ID and HTTP status code for every call, and route permanent validation failures (such as an unknown VAT rate or missing cost centre) to an operator review queue instead of retrying indefinitely.
Preventing duplicate invoices and phantom stock
Two data integrity bugs account for most support tickets after launching an ERP bridge: duplicate invoices created during network retries and oversold inventory caused by delayed stock sync.
- Idempotent document creation: attach the shop or marketplace order ID as a deterministic external key (idempotency keys) and query for an existing ERP record before inserting a new order or invoice.
- Single source of stock truth: keep physical stock inside the ERP, track un-synced web reservations inside your shop database, and subtract pending reservations from available quantity until the ERP confirms stock deduction.
- VAT and invoice parity: map EU OSS rates, reverse-charge B2B flags and rounding rules explicitly in the integration layer so exported figures match EU invoice requirements.
Pre-launch ERP integration checklist
- Test every XML or JSON payload against a non-production ERP company copy using real VAT rates, shipping fees and discount lines.
- Move all ERP network calls off the checkout request thread into a retry-capable background queue with exponential backoff.
- Verify that retrying the exact same order payload twice produces one ERP order and one invoice, never duplicates.
- Set up dead-letter alerts when an ERP host becomes unreachable or rejects a document schema so accounting catches gaps the same day.
ERP API endpoints, XSD schema versions and supported authentication headers change across software updates. Validate exact field mappings against your installed version of Pohoda or ABRA Flexi before deploying to production.
Common questions
- Should an e-shop checkout call Pohoda mServer synchronously?
- No. Because Pohoda mServer processes XML envelopes sequentially on a Windows host, calling it during checkout blocks customers if the accounting server restarts or runs a heavy batch. Queue confirmed orders asynchronously and retry safely.
- What is the main technical difference between Pohoda and ABRA Flexi APIs?
- Pohoda relies on XML payloads validated against XSD schemas over file exchange or the HTTP mServer interface, whereas ABRA Flexi exposes a REST API supporting both JSON and XML payloads for cloud-native integrations.
- How do you prevent duplicate invoices when an ERP sync job retries?
- Send a deterministic external order identifier with every import request and check whether that reference already exists in the ERP before creating a new invoice or stock movement.
Sources
- POHODA XML komunikace, STORMWARE. Accessed 24 November 2026
- POHODA mServer, STORMWARE. Accessed 24 November 2026
- ABRA Flexi REST API documentation, ABRA Flexi. Accessed 24 November 2026
Further reading
-
Charging once, not twice
Idempotency keys let the server recognise a repeated payment request and return the first result, so a retry never creates a second charge or order.
-
Background queues, retries and dead-letter jobs
Moving slow emails, PDF invoices or webhook syncs off the HTTP request thread is only step one. Make workers idempotent, space out retries with jitter and route permanent failures to a dead-letter queue.
-
What an invoice must contain in the EU
An EU VAT invoice must always show seven particulars, including a sequential number, the issue date, the supplier’s VAT number and the VAT rate applied.
Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea