How-toInfor XA (MAPICS XA, IBM i)Integration / REST

Infor XA REST API: expose XA through IBM i Integrated Web Services or ION

Question
infor xa rest api

Also searched as

  • infor xa api
  • mapics rest api ibm i
  • infor xa integration ion

Short answer

Infor XA has no single built-in REST API. Practical routes are IBM i Integrated Web Services (IWS), which turns RPG or SQL routines into REST endpoints on the same machine, and Infor ION where your environment supports it. For reads, SQL-backed services are straightforward. For writes, call XA's own programs so business rules run.

Applies to: Infor XA on IBM i. IWS requires a supported IBM i release; ION connectivity depends on your licence and XA version.

Expose an XA function as REST

  1. 1Decide whether the service is read-only (SQL) or a write (calling an XA program).
  2. 2For reads, create an SQL view or stored procedure over the XA files with only the columns you need.
  3. 3Open the IBM i Integrated Web Services Server and create a service from the stored procedure or program.
  4. 4Choose REST, define the URI, method and JSON mapping.
  5. 5Assign a service user profile with least authority and the right library list.
  6. 6Secure with TLS and authentication, and restrict by network.
  7. 7Test with curl or Postman against a test partition or library.
  8. 8Log requests and errors, and put a gateway or ION in front for external consumers.

Option 1: IBM i Integrated Web Services

IWS is part of IBM i and can publish RPG, COBOL or SQL procedures as REST or SOAP services without writing a separate web application. You describe the service, the program or procedure behind it and the parameter mapping, and IWS handles HTTP and JSON.

It is a good fit for small, well-defined functions such as item lookup, order status or on-hand quantity. Keep each service narrow.

-- SQL procedure that IWS can publish
CREATE OR REPLACE PROCEDURE XALIB.GET_ITEM (IN P_ITEM CHAR(15))
  LANGUAGE SQL RESULT SETS 1
BEGIN
  DECLARE C1 CURSOR FOR
    SELECT ITNBR, ITDSC FROM XALIB.ITEMMASTER WHERE ITNBR = P_ITEM;
  OPEN C1;
END;

-- Call
curl -u svc:*** https://ibmi.example.com:8443/web/services/getItem?p_item=ABC-100
Table and column names above are illustrative. Use the real XA file and field names from your library.

Option 2: Infor ION

If you license Infor OS and ION, you can connect XA through the available connection points and expose APIs through ION API gateway. This helps when other Infor products are in play and you want central security, monitoring and routing. Whether an XA connector exists for your release should be confirmed with Infor.

Writes and safety

XA files carry relationships that its programs maintain. Writing with SQL INSERT or UPDATE can leave orders, inventory and costing out of step. For writes, call the XA program or API that performs the transaction, add idempotency keys and queue requests. For reads, use a replica or a read-only profile.

Try it here, free

Infor XA (MAPICS) Migration Readiness Assessment

Open full tool

Ten questions that score how ready you are to move off Infor XA (MAPICS), covering customizations, IBM i dependencies, data quality and ownership.

Common pitfalls

  • !Publishing writes by direct file updates.
  • !Using a powerful profile for the web service.
  • !Exposing IWS directly to the internet.
  • !Returning entire tables instead of narrow, paged results.
  • !Treating example field names as the real XA schema.

How an ERP-grounded AI assistant handles this

These endpoints are also the interface an AI agent needs: narrow read tools first, write tools only with human approval. Netray builds the agent layer over IWS or ION-exposed XA services and runs the model on your own hardware.

Frequently asked questions

Does Infor XA have a native REST API?

Not as a single product feature that we can point to for every release. Use IBM i Integrated Web Services or ION where supported, and check with Infor for your version.

Is IWS free?

It ships with IBM i, but it needs a supported OS level and configuration. Confirm licensing with IBM.

Can I read XA data without any API?

Yes, with SQL over ODBC or JDBC to the IBM i for read-only needs, using a limited profile.

How do I authenticate callers?

Use TLS with basic or token authentication at a gateway, map it to a least-privilege IBM i profile, and restrict by network.

Related

How-to

Infor XA Net.Link: what it is, how it is configured and common issues

Net.Link is the web access layer associated with Infor XA (formerly MAPICS XA) that exposes XA functions through a browser, running on an IBM i web application server. It depends on the IBM i version, the web server profile and Java runtime, so most problems after changes trace to those components. Details vary by XA release, so confirm against your installation guide.

How-to

Infor XA costing: cost types, roll-up and standard cost setup

Product costing in Infor XA builds an item's cost from its material, labor, and overhead using the bill of material and routing. Standard cost is the frozen planning cost used to value inventory and measure variance, while other cost sets are used for current or simulated views. A cost roll-up calculates costs from the lowest BOM level upward. Exact program names and options vary by release.

How-to

Infor VISUAL REST API: what exists, the API Toolkit and how to wrap it

Classic Infor VISUAL integrates through the VISUAL API Toolkit (COM objects that apply business logic), direct SQL access for reads, and flat-file or EDI imports. A native REST API is not the traditional route. Most teams expose REST themselves by wrapping the Toolkit or SQL reads in a small service, or use Infor ION where their version and licence support it.

How-to

Infor XA User List Report: Users, Status and Access for an Audit

Infor XA runs on IBM i, so a complete user list is built from two layers: the IBM i user profiles (who can sign on, status, last sign-on, group profiles, special authorities) and the XA application security tables (which menus, functions and facilities each user may run). Export the first with DSPUSRPRF or the QSYS2.USER_INFO view, add the second from your XA security setup, and join them by user ID.

Advanced

Infor XA PowerLink (Power Link), SIWA and Net-Link: What Each Does and Your Options

Infor XA runs on IBM i with a 5250 green-screen core. PowerLink (also written Power Link) and Net-Link are the interface layers Infor offered to put a more modern or web face on that core, and SIWA is another piece of XA's interface and integration tooling. Because naming and packaging changed across releases, confirm exactly what is installed before planning any change.

How-to

Infor XA Factory Track: What It Does and How to Plan Shop Floor Data Collection

Factory Track is the shop floor data collection offering associated with Infor XA. It captures labor, job and material transactions at the work centre, often with bar code terminals, and posts them to XA production control so that job status, costs and inventory stay current without re-keying. Details differ by release, so check your documentation before configuring anything.

AI for ERP

AI for Infor XA on IBM i: On-Prem, No Replatforming Required

Add AI to Infor XA on IBM i (AS/400) without a migration project. Read DB2 for i directly, ground answers in live XA data, keep everything on-prem.

AI for ERP

AI Agents Over Infor ION API, BODs, and the Infor Data Lake

Build AI agents on Infor ION API Gateway, BODs, and Data Lake, alongside or instead of Infor's own GenAI features, with your choice of model and hosting.

Stuck on Infor XA (MAPICS XA, IBM i)?

Talk to engineers who work inside Infor XA (MAPICS XA, IBM i) every week, and who build private AI that answers these questions from your own ERP data.

Keep exploring

Free tools

ERP fixes and how-tos

Guides

AI on your ERP

Integrations

Software