ERP integration
Epicor Prophet 21 (P21) integration
Your products, prices, stock and orders live in P21, and your ecommerce site depends on a connection someone else built. From 2022 to 2025 we kept a distributor's Magento site connected to P21: we took over a connection another team had built, got it flowing again, and kept it running through every upgrade.
Last reviewed
The part of your system this coversBuilt by usYour ERP or books
What a P21 integration involves
Prophet 21 runs the operations of a lot of distributors. When they sell online, the ecommerce site and P21 have to agree about products, prices, stock and orders.
The integration is very doable, and the hard part is rarely the API. It is deciding which system owns each piece of data, and finding out quickly when data stops flowing.
What follows comes from a P21-connected site we looked after for three years, not from a datasheet.
Product and order sync, and customer pricing
What an ecommerce site connected to P21 usually does, and which way each piece moves.
Products and stock from P21
Names, descriptions, prices, stock and web status come from P21 on a schedule, so the team changes them in one place. On the site we kept, the product sync ran every 30 minutes.
Orders into P21
Web orders land in P21 as orders, under the buyer's P21 customer code. It is often the change that pays for the project, because somebody is retyping those orders today.
Accounts tied to P21
Buyers with a P21 account give their account number when they sign up. Where it matters, checkout can refuse an order until the buyer's P21 customer code is set: we added that check for subscriptions.
Customer pricing
Contract prices, terms and real availability live in P21. Once the site reads them instead of guessing, quoting gets simpler, but reading them live has a cost (below). We have built per-customer prices from the ERP on an Infor SX.e site.
What makes P21 integration hard
Deciding what owns what
Descriptions, images, categories and web-only attributes usually belong in the ecommerce platform. Prices and stock usually belong in P21. Get that boundary wrong and the sync turns fragile: on the site we kept, the team learned to change names and prices in P21, because the next sync overwrote a change made in Magento.
Live per-customer pricing is a performance problem
A price per customer, per line, means asking the ERP while the buyer browses, and the ERP was not built to be a web backend. Cache with sensible invalidation, and keep live calls for the moments that must be exact.
Every P21 is set up differently
Two distributors' P21 installations differ in fields, conventions and rules. For one client, P21 marked web products with two different classes and the sync read only one, so hundreds of products never reached the site. Experience transfers; the mapping does not.
It stops quietly
We have seen a product import left switched off, a paid import extension start rejecting rows after an upgrade, and an order export fail on a customer code that arrived as text instead of a number. Plan how you will find out before a customer or a rep does.
Connecting P21 to your other systems
| System | Examples | What moves to and from P21 | Our record |
|---|---|---|---|
| Ecommerce platform | Magento and Adobe Commerce, Shopify | Products, prices and stock out of P21; orders and new customers into it | Done: a Magento site kept connected to P21 from 2022 to 2025, three case studies. We build on Shopify too, not yet against P21 |
| Payments | Stripe, GoCardless, Worldpay | Paid orders and their payment references onto the P21 order; refunds back | Gateways integrated into Magento checkouts (Stripe, Authorize.Net and others); not yet posting into P21 |
| Shipping | UPS, ShipStation | Shipments and tracking back to the order; rates at checkout | Done: our UPS module ran on the same site. ShipStation not yet |
| EDI | Trading partners' purchase orders, ship notices and invoices | Partner orders into P21; ship notices and invoices back out | Not yet; we'd map it with you first |
| CRM | Salesforce, Maximizer | Accounts, contacts and order history | Website forms into Salesforce for the same P21 client, and an order traced across Salesforce, P21 and Magento; not a full CRM sync |
| Credit | Creditsafe | A credit check before an account gets terms | Not yet |
What to decide before you start
Who owns each field
Go field by field: name, description, weight, price, tier prices, stock, web status. Write down which system wins when they disagree. It is a day of arguing that saves months.
Which products go to the web
Decide how P21 marks a product for the web, and what the site does with a product that has no unit price. On the site we kept, the answer was the list price.
Which account an order goes under
A buyer's own P21 account, or a shared one for buyers without an account. Subscriptions and repeat billing need a real account.
How often, and how you will know
Decide how often each sync runs, what a failed run does, and who hears about it.
Discovery as its own phase
The mapping differs at every distributor, so budget time to read it before anyone writes code. That is what our Systems Map is for.
Our record with P21
From 2022 to 2025 we kept a survey and construction equipment distributor's Magento site connected to P21. Another team built the original connection, on a middleware API, and launched the site at the start of 2022. We took it over that month.
In 2022 we got the product sync running again and widened it, so every product P21 marks for the web reached the site. In 2024 the paid extension that imported the P21 files started rejecting rows after an upgrade. Within two weeks we had replaced it with two scheduled jobs of our own, products first and then stock, and taken the extension out.
When web orders stopped reaching P21 in 2024, we found the failing export job and had orders flowing again within days. For the site's software subscriptions, we added a checkout check that holds a subscription until the buyer's P21 customer code is set.
We carried the connection through every upgrade, from Magento 2.3.6 to 2.4.6-p6. When the company's main site moved to another platform around the turn of 2025, we kept the old Magento site running for its subscription renewals.
In figures
- Years on one site connected to P21
- 3
- First P21 work
- 2018
- Case studies
- 3
Every figure has a dated record behind it. Our work on the site ran from its launch in January 2022 to early 2025.
Case studies on P21
- Case studyA Magento site wired to P21, taken over and put back in syncWe took over a Magento site as it launched, with a deep connection to Epicor P21 that another team had built. Checkout failed, the product sync had been switched off, and later orders stopped reaching the ERP. We found each cause, got products, prices and orders flowing again, and kept the connection running for about three years.
- Case studyThree years of upgrades on a Magento site wired to P21 and UPSAbout half the monthly hosting cost was gone within a month of moving the site to a new server, once the cloud services were scaled down. The site reached us on Magento 2.3.6, close to the end of its support, with a P21 connection, a custom UPS module and a stack of extensions that any upgrade could break. We moved it to 2.4.5 on that server and patched it through 2.4.6-p6. When an upgrade broke something, we fixed or replaced it. We also carried the site through UPS's move from its old API to REST, and turned on a content security policy.
- Case studySoftware subscriptions that renew, each on a P21 accountSubscription renewals that had failed every cycle started billing again. The distributor sold software subscriptions from its Magento site, monthly, yearly and on demand, but they were also charged for shipping, and a buyer could check out without an account in Epicor P21. We fixed the renewals, required an account, held checkout until the buyer's P21 customer code was set, and kept renewals billing on one small server after the main site moved.
When connecting P21 to your ecommerce site pays
Worth it for
- Distributors already running Prophet 21 as their system of record
- Businesses where pricing is contractual and per customer
- Teams rekeying web orders into P21 by hand
Not yet for
- Businesses whose catalog and pricing are simple enough not to need it
- Teams unwilling to decide which system owns which data
Questions about Epicor Prophet 21
Can Prophet 21 integrate with Adobe Commerce or Shopify?
Yes. The platform matters less than the design: what syncs, in which direction, how often, and which system wins when they disagree. Our own P21 work has been on Magento Open Source.
Can Stripe, GoCardless or Worldpay payments post into P21?
Yes, once you've decided where the payment is recorded: usually the paid web order carries its payment reference into P21, and refunds are matched back. We've integrated those kinds of gateways into Magento checkouts; posting them into P21 would be mapped with your P21 setup first.
Can ShipStation or UPS connect to P21?
Yes. The shipment and its tracking number go back to the order, and the buyer sees them. Our UPS module ran on the site we kept connected to P21.
Do you do EDI with P21?
We'd scope it: which trading partners, which documents (purchase orders, ship notices, invoices), and whether they come through a provider. We haven't built a P21 EDI connection yet, so we'd say so and price the mapping first.
Can Salesforce connect to P21?
Yes, at the level you need: forms into Salesforce, accounts and contacts, or order history. For the client whose site we kept on P21, we connected website forms to Salesforce and traced orders across Salesforce, P21 and Magento; a full two-way CRM sync is a bigger project.
What is the hardest part of a P21 integration?
Deciding which system owns each piece of data, handling customer-specific pricing without making every page wait on the ERP, and finding out quickly when a sync stops.
Is there an off-the-shelf P21 connector?
Connectors exist, and every P21 installation differs in fields and conventions, so expect mapping and customization work wherever you start.
Can you take over a P21 connection someone else built?
Yes. That is our P21 record: a connection another team built, which we took over at launch, repaired, partly replaced with jobs of our own, and kept running for about three years.
Do you implement or resell P21?
We connect your ecommerce site to the P21 you run, and keep that connection working. P21 itself stays with you and whoever supports it for you.
Keep reading
- Ecommerce integrationsHow we connect an ecommerce site to the ERP and the systems around it.
- UPS and freight carriersOur UPS module, which ran on the same P21-connected site, and the rest of a B2B checkout's carriers.
- Infor SX.e (CloudSuite Distribution)Each buyer's own prices, read from the ERP.
- ERP integration readiness checklistWhat to have in hand before an integration starts.
Tell us how your ecommerce site and P21 are connected
Tell us what you sell online and what you see going wrong. We'll tell you where to look first.
Contact us