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

Tell us what you need

From a case study: Buyers, Magento Open Source, Middleware API, Epicor P21 and Our import jobs. The part this covers: Epicor P21 to Our import jobs (product and stock data, through the API); Our import jobs to Magento Open Source (catalog updated on every run). Built by us: Our import jobs.

The part of your system this coversBuilt by usYour ERP or books

The paid import extensionReplaced by our own scheduled jobs for P21 products and stock, and removed

The case study

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

Done means work on record. The rest is the same pattern: decide what each system owns, then build the sync and watch it.
SystemExamplesWhat moves to and from P21Our record
Ecommerce platformMagento and Adobe Commerce, ShopifyProducts, prices and stock out of P21; orders and new customers into itDone: a Magento site kept connected to P21 from 2022 to 2025, three case studies. We build on Shopify too, not yet against P21
PaymentsStripe, GoCardless, WorldpayPaid orders and their payment references onto the P21 order; refunds backGateways integrated into Magento checkouts (Stripe, Authorize.Net and others); not yet posting into P21
ShippingUPS, ShipStationShipments and tracking back to the order; rates at checkoutDone: our UPS module ran on the same site. ShipStation not yet
EDITrading partners' purchase orders, ship notices and invoicesPartner orders into P21; ship notices and invoices back outNot yet; we'd map it with you first
CRMSalesforce, MaximizerAccounts, contacts and order historyWebsite forms into Salesforce for the same P21 client, and an order traced across Salesforce, P21 and Magento; not a full CRM sync
CreditCreditsafeA credit check before an account gets termsNot 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 we 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. 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

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.

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