Development & Integration··Enligh10 team
STORIS integration: why we build your own API layer
STORIS runs on UniData, a MultiValue database few developers know. Why we build retailers their own API layer on Azure instead of waiting on vendor changes, and what to watch for.
STORIS is the retail ERP and point-of-sale system behind many furniture, appliance, and home goods retailers. It runs the stores, the inventory, and the money. So when a retailer wants a new website feature, a mobile app, or a marketing tool, it almost always needs data from STORIS.
That's where many integration projects stall. Here's why, and the approach we take instead.
Why STORIS integrations stall
The database is unusual. STORIS runs on UniData, a MultiValue database from Rocket Software (a sister product of UniVerse in Rocket's U2 family). MultiValue databases work very differently from the SQL databases most developers know, and few integration teams have worked with one.
Vendor changes are slow and quoted per change. STORIS sells licensed API packages, from read-only to read-and-write with webhooks, covering areas such as inventory, customers, orders, and financing, and older installations may still rely on SOAP web services. They work for what they cover. But each package is another license, and when you need something they don't cover, the change is quoted and scheduled by the vendor, so cost and timing depend on someone else's priorities.
The result: retailers either pay for every change, or they give up on the integration.
The alternative: your own API layer
If your STORIS system is self-hosted on your own servers, and your license allows direct data access, you can build your own API on top of it. Some retailers move off vendor hosting to their own servers to cut costs, and that move also opens this option.
On a recent project, we built that API layer on Azure for a retailer. One API now serves several parts of the business:
- The eCommerce website, including letting customers see their invoices online.
- A collections app for the team that follows up on balances.
- Marketing tools that need customer and sales data.
Each new use is a new endpoint in an API the retailer owns, not a new request to a vendor. The architecture follows the business's strategy, not what an off-the-shelf API happens to expose.
How you connect to UniData
Rocket Software documents several supported ways to connect to UniData and UniVerse:
- Native client libraries, such as UniObjects for .NET (now succeeded by the U2 Toolkit for .NET), for reading and writing records and calling programs on the server.
- ODBC and JDBC drivers, for SQL-style access.
- The MultiValue Integration Server (MVIS), which replaced the older U2 REST, for publishing data and subroutines as REST services. Rocket notes that STORIS itself uses MVIS.
Which one fits depends on your UniData version, your licensing, and what you need to do. Whichever you choose, put it behind your own API, so no website or app ever talks to the database directly.
What makes MultiValue data different
This is where most of the work is, and where experience saves time.
Fields hold lists. A single field can hold several values, and each value can hold sub-values. An order record might hold all its line items inside one record, with item numbers, quantities, and prices as parallel lists. Your API has to turn that into clean JSON.
Dates and numbers are stored in internal formats. UniData, like other MultiValue databases, stores dates as a day count (day 0 is December 31, 1967), and amounts are often stored without a decimal point. Convert them once, in the API layer, and nowhere else.
Some fields aren't really there. Some fields don't hold data at all: they're defined to run a routine on the server that works out the value. On our project, those fields didn't respond to a query, and reading them through the .NET client library didn't work either. Whether that comes down to version, configuration, or simply missing documentation, the fix was the same: find which stored fields the value is built from, often in other files, and rebuild that logic in your API. It takes digging, and it's the part teams new to MultiValue underestimate most.
Files don't map one-to-one to tables. Expect to join data across files yourself, and to learn which file is the source of truth for each piece of data.
Know who supports what
Your data is yours, but the database relationship may not be. STORIS is a Rocket Software partner, and UniData comes as part of the STORIS stack. In our experience, the retailer's contract was with STORIS, not Rocket, so database questions had no direct line to the database vendor: they went through STORIS, or to people who know UniData. Check with STORIS how your own license and support are set up.
Two things follow from that:
- Plan your own UniData expertise, in-house or with a partner, before you build. Your API will depend on it, and the vendors won't support it for you.
- Read the license terms closely. Database licenses that come bundled with an application can limit how the database is used outside that application. That's one more reason to confirm your rights before you start.
Do it safely
The ERP runs the stores. The API must never put that at risk.
- Confirm your rights first. Check your STORIS license and support agreement for direct data access before you build anything.
- Use a dedicated database account with only the access the API needs, never a shared or application account, so access is auditable and can be revoked on its own.
- Start read-only. Reading is low-risk. Treat writes to STORIS as a separate phase, with their own testing and sign-off.
- Cache, even if the database can keep up. The database handled our throughput without trouble, and we still added caching. It keeps response times steady for website visitors, means busy periods online don't compete with the stores, and lets the API keep serving common requests during a short database outage.
- Run it like a product. Version the API, document every endpoint, log and monitor it, and keep secrets in a vault, not in config files.
Is it worth it?
If STORIS is the system your business runs on, and you plan to keep building digital features, owning the API pays off quickly: each new website feature, app, or report becomes a smaller project, on your timeline. If you need one small, standard integration that the vendor already offers, use theirs.
We build and maintain retail and ERP integrations on Azure, including API layers over STORIS and UniData. If you're planning one, see our development and integration services or get in touch.
Sources: Rocket Software: U2 Clients, STORIS: APIs, Rocket Software: MultiValue product catalog. Product names belong to their owners. Confirm data access rights with your vendor before building.