# Epicor Prophet 21 (P21) Integration

**Category:** ERP 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 X2Y kept a distributor's Magento site connected to P21: they took over a connection another team had built, got it flowing again, and kept it running through every upgrade.

*Last reviewed: November 22, 2026*

---

## 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 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 maintained, 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: a check was added 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 (see below). Per-customer prices from the ERP have been built 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 maintained, 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** — A product import left switched off, a paid import extension start rejecting rows after an upgrade, and an order export failing on a customer code that arrived as text instead of a number are all real examples. 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 | 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. Shopify built on 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: 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; would map it 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

1. **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.
2. **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 kept, the answer was the list price.
3. **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.
4. **How often, and how you will know** — Decide how often each sync runs, what a failed run does, and who hears about it.
5. **Discovery as its own phase** — The mapping differs at every distributor, so budget time to read it before anyone writes code.

---

## Record with P21

From 2022 to 2025 X2Y 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. X2Y took it over that month.

- In 2022 the product sync was got running again and widened, 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 it was replaced with two scheduled jobs — products first and then stock — and the extension removed.
- When web orders stopped reaching P21 in 2024, the failing export job was found and orders were flowing again within days.
- For the site's software subscriptions, a checkout check was added that holds a subscription until the buyer's P21 customer code is set.
- The connection was carried 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, the old Magento site was kept 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. Work on the site ran from its launch in January 2022 to early 2025.

---

## Case studies on P21

- **A Magento site wired to P21, taken over and put back in sync** — 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. Each cause was found, products, prices and orders were got flowing again, and the connection was kept running for about three years.
- **Three years of upgrades on a Magento site wired to P21 and UPS** — The site was received 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. It was moved to 2.4.5 and patched through 2.4.6-p6. UPS's move from its old API to REST was also carried through, and a content security policy was turned on. About half the monthly hosting cost was gone within a month of moving to a new server.
- **Software subscriptions that renew, each on a P21 account** — Subscription renewals that had failed every cycle started billing again. The distributor sold software subscriptions from its Magento site (monthly, yearly and on demand). Renewals were fixed, an account was required, checkout was held until the buyer's P21 customer code was set, and renewals kept 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. Those kinds of gateways have been integrated 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. The UPS module ran on the site kept connected to P21.

**Do you do EDI with P21?**
Scope would be discussed: which trading partners, which documents (purchase orders, ship notices, invoices), and whether they come through a provider. A P21 EDI connection hasn't been built yet, so the mapping would be priced 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 was kept on P21, website forms were connected to Salesforce and orders were traced 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 the P21 record: a connection another team built, which was taken over at launch, repaired, partly replaced with jobs of our own, and kept running for about three years.

**Do you implement or resell P21?**
The ecommerce site is connected to the P21 you run, and that connection is kept working. P21 itself stays with you and whoever supports it for you.

---

## Keep reading

- **Ecommerce integrations** — How to connect an ecommerce site to the ERP and the systems around it.
- **UPS and freight carriers** — The 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 checklist** — What to have in hand before an integration starts.
