A REST API and webhooks for Sage X3
Connect Sage X3 to Portal and create an API key under Developers. Your systems call one versioned REST API for Sage X3 customers, items, prices, orders, quotes, invoices and shipments, and get signed webhooks when they change.
About Sage X3.
Sage X3 is Sage's ERP for mid-sized companies with complex operations, aimed above all at manufacturing, distribution and food and beverage. It covers finance, sales, purchasing, inventory and production, and it was sold for a time under the names Sage ERP X3 and Sage Enterprise Management.
Most X3 sites run on their own servers or at a hosting partner. In November 2025 Sage also launched a next generation of Sage X3 delivered by Sage itself as a fully managed, continuously updated cloud service, first for early adopters in the UK, the US and Germany, with France, Canada and South Africa announced next.
One X3 server holds several folders, each a separate set of company data such as a live folder and a test folder. Integrations do not talk to "X3" in general but to one folder, through a web server (Syracuse) endpoint connected to it.
Portal by Webisoft is a B2B portal for Sage X3: customer self-service and team apps on live Sage X3 data.
Why connecting to Sage X3 is hard.
X3's REST Web API reads, but writing sales orders and quotes still means SOAP, published objects and pool sizing, which is a lot to ask of every new app.
Writes still go through classic SOAP
Sage X3 has two kinds of web services. The REST Web API gives read-only representations of every resource, but modules that still run on classic screens, which include sales orders and quotes, are written through the SOAP web services. An integration that wants to create orders in X3 has to speak the older SOAP protocol.
Every object has to be published, and pools have a size
A SOAP call names a public name declared in X3's Publication function, so each object an integration reads or saves must be published first. Calls run through a classic SOAP pool set up in the Syracuse administration, with a maximum number of clients per web services process, so heavy traffic queues behind the pool's size.
One folder per endpoint
An X3 server supports several folders, and each Syracuse endpoint is connected to one folder code. The SOAP pool sets the endpoint its requests use, so the folder an integration writes to is decided by the pool configuration, and a test folder needs its own pool.
Cloud and on-premises sign in differently
Sage documents user name and password (basic) authentication and certificates for web services on premises, and says neither is supported by Sage X3 Online, where OAuth 2 is the only method. Moving a folder to Sage's cloud changes how every integration signs in.
Your options.
| Option | Fits when | Watch out for |
|---|---|---|
| Native Sage X3 add-ons | You need one narrow function and an add-on covers it. | Each add-on is its own product to license, learn and upgrade. |
| Generic integration platform | You have someone in-house to build and maintain the flows. | You still build the screens, the AI layer and the Sage X3 write rules yourself. |
| Custom code | The need is unique and you have developers who know Sage X3. | Upgrades and staff changes put the integration at risk. |
| Portal by Webisoft | You want customers, your team and AI agents working on live Sage X3 data. | It works on top of Sage X3; it does not replace it. |
How Portal reaches Sage X3.
Portal talks to Sage X3 version 12 (patch 9 and later) through the classic SOAP web services: query, read and save calls to the CAdxWebServiceXmlCC service on your X3 web server, with the alias of a SOAP pool and a web service user and password. Your X3 administrator publishes the objects Portal uses (customers BPC, items ITM, stock by site ITV, quotes SQH, orders SOH, invoices SIH, payments PAY, deliveries SDH and returns SRH), adds the update date UPDDATTIM to each left list so Portal can sync only what changed, and adds a YPORTALREF user field to orders and quotes.
Every order and quote Portal saves carries its portal reference in that user field, and Portal queries for it before each save, so a retry never creates a second document. Credit control set to Blocked stops an order before it reaches X3, and inactive items are refused. For an X3 server inside your network, the connection can go through the Portal On-site connector, which relays each call to the X3 web server over outbound connections only. Portal signs in with basic authentication, which Sage supports on premises; Sage X3 Online, which only accepts OAuth 2, is not covered yet.
What you need.
- Sage X3 version 12, patch 9 or later, on your servers or at a hosting partner
- An X3 administrator who can configure a classic SOAP pool, publish web services and add a user field
- An admin in Portal to create API keys and webhook endpoints
Step by step.
Your Portal team sets up the Sage X3 connection with you during onboarding, so the first step is done together. The rest is yours to change any time.
Publish the X3 web services and connect
In Sage X3, an administrator sets up a classic SOAP pool on the endpoint of the folder Portal should use and publishes the objects Portal calls: BPC, ITM, ITV, SQH, SOH, SIH, PAY, SDH and SRH, each left list with its keys and UPDDATTIM. Orders and quotes get a YPORTALREF user field. In Portal, under Setup, ERP, ERP system, choose Sage X3 and enter the X3 web server address, the pool alias, the sales site, the order and quote types (SON and SQN by default) and the web service user and password, then choose Test connection.
Create a restricted key
In Developers, API keys, choose Create restricted key and tick only the scopes your app needs, for example orders and catalog.
Call the API
Send requests to /v1/ with the bearer key and the Portal-Version header. Orders you POST are written as a Sage X3 sales order, of type SON by default, in the sales site you choose; send an Idempotency-Key so a retry never places the order twice.
Listen for changes
In Developers, Webhooks, add an endpoint for events such as order.confirmed and shipment.updated, which fire as Sage X3 confirms orders and ships them.
What syncs with Sage X3.
| Record | Read | Write back | Note |
|---|---|---|---|
| Customers, contacts and addresses | Yes | Yes | Credit hold when credit control is Blocked |
| Items | Yes | Yes | Only active items can be ordered |
| Prices | Yes | No | Item base price; X3 price lists are not mapped yet |
| Stock by site | Yes | No | Accepted stock less allocations |
| Sales quotes | Yes | Yes | Converted to a sales order whose lines reference the quote |
| Sales orders | Yes | Yes | Credit control and item status checked first |
| Sales invoices | Yes | Yes | Posted invoices, balance from the open items |
| Customer payments | Yes | Yes | One line per invoice paid; a surcharge is not posted |
| Deliveries | Yes | Yes | Validated deliveries, tracking from the PRO number |
| Customer returns | Yes | Yes | Made from the deliveries |
| Purchase orders | Yes | Yes | Update expected receipt dates and quantities |
| Attachments | No | No | The SOAP web services take no files |
Limits today: Today the connection works with Sage X3 on your own servers or at a hosting partner. Sage X3 Online and X3 price lists are not covered yet.
What you can do next.
- Your e-commerce site posts orders to Portal and receives order.confirmed with the Sage X3 order number.
- A warehouse app reads stock by Sage X3 stock site, accepted stock less allocations and prices through the API instead of querying Sage X3 directly.
Sage X3 questions, answered.
Which Sage X3 web services does Portal use?
The classic SOAP web services, through a pool on the endpoint of your folder. Sage's REST Web API only reads classic modules such as sales orders and quotes, so SOAP is the documented way to save them. Portal keeps at most two calls in flight so it does not crowd out your other users of the pool.
Is this the Sage X3 API?
No. It is Portal's API, the same for every ERP; Portal handles Sage X3 behind it.
Can I test without touching our ERP?
Yes. The test sandbox copies your customers, catalog, prices and stock onto a demo ERP, and test keys work only there.
Keep going.
- One REST API for your ERP: overview
- B2B portal for Sage X3
- Connect an AI agent to your ERP, Sage X3
- Automate order entry from email, Sage X3
- Take invoice payments online, Sage X3
- Give customers order status, Sage X3
- Build a B2B ordering portal, Sage X3
- Quotes customers accept online, Sage X3
- Triage a shared inbox, Sage X3
- Add approval workflows, Sage X3
- Connect an on-prem ERP safely, Sage X3
- One REST API for your ERP, Sage 100
- One REST API for your ERP, Sage 300
- One REST API for your ERP, Sage 50
- One REST API for your ERP, Sage 500
- One REST API for your ERP, Sage Accounting
- One REST API for your ERP, Sage Intacct
Sources
- Sage X3 help: web services integration, REST read-only representations and SOAP for classic modules
- Sage X3 help: SOAP web services implementation
- Sage X3 help: publicName comes from the Publication function
- Sage X3 help: classic SOAP pool configuration, maximum and initial size
- Sage X3 help: endpoints and the folder they connect to
- Sage X3 help: the pool sets the endpoint of every web service request
- Sage X3 help: authentication methods on premises and in Sage X3 Online
- Sage: next generation Sage X3 as a managed cloud service