How to connect Salesforce to the Epicor Kinetic REST API
Connect Salesforce to the Epicor Kinetic REST API: API keys, named credentials, BAQs for reading, Epicor Functions for orders, and error handling.
By Ali Ajmal, Salesforce consultant at Modeverse · November 30, 2026 · 5 min read

To connect Salesforce to Epicor Kinetic, call Kinetic's REST API v2 from Salesforce using a named credential that holds an Epicor integration user and an API key. Read data through Business Activity Queries (BAQs), write orders through an Epicor Function that does all the steps in one call, and match records with external IDs on both sides. Add logging and retries, and test against your Epicor pilot company before going live.
This guide is for developers and IT managers planning the build. If you would rather compare the options first, including Epicor's own integration platforms and prebuilt connectors, see our Epicor Salesforce integration page.
What the Epicor Kinetic REST API gives you
Epicor describes the Kinetic REST API as covering everything the system does: business objects, processes, reports, BAQs and Epicor Functions are all reachable through REST endpoints, with OData query support. For a Salesforce integration, three parts matter most:
- Business objects for standard records such as customers, parts and sales orders.
- BAQs for reading exactly the fields you need, in one call.
- Epicor Functions for your own server-side logic, exposed as a REST endpoint.
Version 2 of the API requires an API key on every request, on top of the user's own login. That makes it easy to see and limit what the integration can reach.
Step 1: Create an integration user and API key in Epicor
Create a dedicated Epicor user for the integration, not a person's login, and give it only the companies, sites and menus the integration needs. Then create an API key for it in Epicor's API key maintenance and limit the key's access scope to the services you will call.
Keep the user's password and the API key out of code and out of documents shared by email.
Step 2: Store the connection in Salesforce, not in code
In Salesforce, create an external credential for the Epicor user and a named credential for your Epicor API address, and send the API key as a header from the external credential. Apex and Flow can then call Epicor without ever seeing the secrets, and you can change them without a deployment.
If Epicor runs on your own servers, Salesforce has to be able to reach it over HTTPS. That usually means a secure gateway or an integration agent inside your network. Epicor's cloud tenants are reachable directly.
Step 3: Read Epicor data with BAQs
For anything Salesforce reads, such as prices, stock, order status and invoices, build a BAQ in Epicor that returns exactly the columns you need, then call it through the API. This has three advantages:
- One call returns joined data that would otherwise take several business object calls.
- Epicor's own security still applies, so the integration only sees what the BAQ allows.
- Your Epicor team can adjust the query without a Salesforce deployment.
Page through large results rather than asking for everything at once, and filter by "changed since" dates so scheduled syncs only move what changed.
Step 4: Write orders with an Epicor Function
Creating an order in Epicor from a won Salesforce opportunity is not one call. You need to find or create the customer, check the ship-to address, create the order header and then add each line, with validation between the steps.
Do those steps inside an Epicor Function and expose it through the API. Salesforce then makes one call, Epicor applies its own rules in one place, and if something fails, nothing is left half-created. It also keeps the Salesforce side simple, which matters because Apex allows at most 100 callouts in a single transaction.
Step 5: Match records with external IDs
Store the Epicor customer number on the Salesforce account in a field marked as an external ID, and store the Salesforce account ID in a user-defined field on the Epicor customer. Do the same for products and orders.
With IDs on both sides, the integration can update instead of duplicate, and anyone can jump from a record in one system to its partner in the other.
Step 6: Decide when each flow runs
| Flow | Trigger | Why |
|---|---|---|
| Customers and contacts | When a record changes | Reps need new customers in both systems quickly |
| Products and price lists | Scheduled, for example nightly | Large volumes that change rarely |
| Customer prices and stock | Live lookup when needed | Exact values at the moment of quoting or checkout |
| Quotes and orders | When approved in Salesforce | Orders should reach Epicor once, after approval |
| Order status and invoices | Every few minutes | Reps can answer "where is my order?" themselves |
In Salesforce, scheduled Apex or a scheduled flow runs the timed syncs, and queueable Apex makes the callouts so users never wait on Epicor.
Step 7: Log, retry and alert
Integrations fail quietly unless you plan for it. Write every call's result to a log object in Salesforce, retry temporary errors such as timeouts, and send an alert to a named person when a record fails twice. Give admins a simple list view of failed records with a "retry" button.
What about Prophet 21?
Prophet 21 is integrated through its own API and database views rather than the Kinetic REST API, but the same principles apply: a dedicated integration user, read with views or queries, write orders through the API so P21's rules still run, and match records with IDs on both sides.
When a connector is the better choice
A custom integration makes sense when your Epicor rules are specific: customer pricing with tariffs or contract prices, B2B store checkout, approvals, or unusual order flows. If you only need standard customer, order and invoice sync, Epicor Automation Studio, Epicor Integration Cloud or a prebuilt connector app may be quicker. We compare them on our Epicor Salesforce integration page.
Summary
Use the Kinetic REST API v2 with a dedicated user and API key, keep the secrets in Salesforce named credentials, read through BAQs, write orders through one Epicor Function, match records with external IDs, and log every call. Build and test against your Epicor pilot company first.
We built exactly this for a US manufacturer whose trade customers now see their own Epicor prices, tariffs included, in a Salesforce B2B store. Read the case study, our guide to Epicor pricing in a Salesforce B2B store, or hire an Epicor developer for your project.
Want us to look at your setup?
Book a free 30-minute call. We will look at your Salesforce or CRM and tell you honestly what we would change first.