When a large retailer, distributor, or enterprise customer onboards you as a supplier, one of the first things they'll send over is an EDI trading partner guide. It outlines the document formats they require, the transmission protocols they expect, and the compliance standards you need to meet. Non-compliance typically means chargebacks, delayed payments, or removal from the vendor program.

EDI (Electronic Data Interchange) is the technology standard that enterprise trading partners use to automate the exchange of business documents. It predates modern ecommerce platforms by decades. Shopify has no native EDI module in the admin, but the two systems can work together effectively through an app connector, an iPaaS integration platform, or a custom API integration.

This guide covers how EDI integrates with Shopify for B2B manufacturers and what you need to know before committing to an approach.

What EDI Is and Why Enterprise Partners Require It

EDI replaces paper (and email) documents with structured electronic data in standardized formats. In North American B2B commerce, the dominant standard is ANSI X12. In Europe and internationally, EDIFACT is more common. The documents are transmitted via AS2, SFTP, or through a Value Added Network (VAN), which acts as a postal service for EDI traffic.

Large retailers (Walmart, Target, Home Depot, Costco) and enterprise distributors mandate EDI because it allows their procurement systems to process purchase orders, receive acknowledgments, and reconcile invoices without human intervention. When you're their supplier, you're plugging into their automated workflow. If your responses aren't formatted correctly, timed correctly, or transmitted via their required protocol, their systems reject them and trigger chargebacks.

Common EDI documents manufacturers handle:

The 850 purchase order is where most manufacturers focus first. Every other document is a response to that inbound PO.

Shopify's Role in the EDI Stack

Shopify has no native EDI module and doesn't handle X12 or EDIFACT document formats directly. What Shopify provides is a set of APIs for managing orders, inventory, customers, fulfillments, and B2B data (companies, catalogs, payment terms). EDI integration connects those APIs to the EDI document flow your trading partner requires.

The integration layer sits between Shopify and the trading partner and handles document translation, protocol connectivity (AS2, SFTP, VAN), and mapping between EDI field structures and Shopify's data model. Inbound 850 purchase orders become Shopify orders or draft orders; outbound fulfillment events become 856 ASNs and 810 invoices. That translation happens outside Shopify, not inside it.

The data that flows between EDI and Shopify typically includes: companies and customer accounts, orders and order updates, inventory levels, products, fulfillments, catalogs and price lists, payment term status, and customer PO numbers. What's available depends on the specific integration approach and whether the connector supports Shopify's B2B APIs.

Integration Approaches

There are three main ways to connect EDI to Shopify, each with different tradeoffs.

1. Pre-built app connectors

The fastest path for established ERP and EDI ecosystems. These are purpose-built integrations available on the Shopify App Store or directly from EDI providers. They handle VAN connectivity, document translation, trading partner onboarding, and the Shopify API connection in one package.

Providers with Shopify connectors include SPS Commerce Fulfillment (one of the largest EDI networks), TrueCommerce, DiCentral, and 1 EDI Source. Each manages the compliance layer on your behalf, including 997 acknowledgment handling and trading partner-specific mapping.

Best for: Manufacturers whose trading partners are already in the provider's network and whose EDI requirements are reasonably standard.

2. iPaaS (integration platform as a service)

An iPaaS platform sits between Shopify and your EDI system (or ERP) and handles data transformation and routing. Tools in this category (Celigo, Boomi, MuleSoft, and others) support more complex mapping scenarios and can connect multiple systems beyond just Shopify and EDI.

Best for: Manufacturers already using an iPaaS for other integrations, or those needing more control over field-level mapping and data routing logic.

3. Custom API integration

A custom-built integration against Shopify's APIs, written to match your specific EDI partner requirements and internal data model. The most flexible option and the most resource-intensive to build and maintain.

Best for: Manufacturers with highly unique EDI mapping requirements, no viable pre-built connector, or teams with existing development capability who want full control.

Evaluation questions for any approach

Before committing to a provider or approach:

  • Does it support Shopify's B2B APIs, specifically companies, company locations, catalogs, and payment terms? Some connectors were built before Shopify's B2B suite was released and interact only with the standard order and customer APIs. Verify B2B compatibility explicitly if you're on Shopify Plus and using B2B features.
  • Which of your specific trading partners does the provider already have established connections with?
  • How is mapping handled for trading partner-specific field requirements (most large retailers have custom requirements)?
  • What does the integration create in Shopify when a PO arrives: a standard order, a draft order, or something else?

How Inbound Purchase Orders Land in Shopify

The most important design decision in an EDI-Shopify integration is where the inbound 850 purchase order lands.

Option 1: Direct order creation

The EDI provider creates a standard order in Shopify immediately upon receiving the 850. This is faster but removes the review step. If the PO has an item not in your Shopify catalog, an invalid address, or a quantity your inventory can't fill, you're dealing with a live order that needs manual correction.

Option 2: Draft order creation

The EDI provider creates a draft order in Shopify, giving your team a review window before the order is confirmed. This is the recommended approach for most B2B EDI scenarios. The draft order can be reviewed for inventory availability, pricing accuracy, and catalog alignment before being converted to a live order and acknowledged back to the trading partner with an 855.

The draft order review workflow in Shopify Plus supports this pattern well. For how to structure that review step, see How to Set Up B2B Order Review Workflows in Shopify.

Order tagging for EDI orders

Regardless of which approach you use, tag EDI-sourced orders consistently (for example, edi-order, trading-partner-walmart, edi-850-received). Tags make it possible to filter, report, and build Shopify Flow automations specifically for EDI orders without touching non-EDI workflows.

Setting Up EDI Trading Partners as B2B Companies

On Shopify Plus, each EDI trading partner should be set up as a B2B company account. This gives you several advantages:

  • Pricing assigned through catalogs rather than relying on the EDI provider to pass the correct price
  • Payment terms configured at the account level (Net 30, Net 60, or due on receipt depending on the trading partner)
  • Order history associated with the correct company rather than appearing as anonymous orders
  • The ability to apply order submission settings (requiring draft review) specifically to EDI accounts

When your integration creates orders in Shopify, orders can be associated with the correct company account if the integration is configured to pass the customer and company reference via the B2B API. This is worth specifying during setup rather than treating EDI orders as standalone transactions.

One important check: not all EDI connectors and iPaaS integrations support Shopify's B2B APIs. Some older connectors interact only with the standard Orders and Customers APIs and don't recognize companies, company locations, or catalogs. If you're on Shopify Plus and using B2B features, confirm B2B API compatibility with your integration provider before committing to an approach.

For configuration of payment terms per account, see Best Payment Options for B2B Customers on Shopify.

Outbound EDI Documents and Shopify Data

The outbound half of the EDI loop is driven by what happens in Shopify after the order is received.

855 Purchase Order Acknowledgment

Sent back to the trading partner to confirm you received the PO and whether you can fulfill it (full acceptance, partial acceptance, or rejection). This typically needs to be transmitted within 24-48 hours of receiving the 850. If your process involves draft order review, the 855 fires after the review step, not immediately on receipt.

856 Advance Ship Notice

Sent when the order ships. The 856 must include accurate shipment details: carrier, tracking number, ship date, item quantities, and often carton-level details (dimensions, weight, packing configuration). Large retailers have strict 856 requirements, and an ASN that arrives after the shipment or contains incorrect carton data triggers chargebacks.

Your EDI provider pulls shipment data from Shopify (via fulfillment events and order data) and generates the 856. The accuracy of this document depends on how well your Shopify fulfillment process captures carrier and packing data.

810 Invoice

Sent after shipment. Invoice data is pulled from the Shopify order (line items, quantities, prices, customer and shipping details). For EDI customers, pricing in the invoice must match the original 850 PO. Discrepancies trigger invoice disputes and payment delays.

846 Inventory Inquiry / Advice

Some trading partners periodically request your inventory levels. The 846 response is generated from your Shopify inventory data. If you're using Shopify's multi-location inventory, the integration needs to be clear about which location's inventory to report.

Where ERP Fits

Many manufacturers run a three-way integration: trading partner EDI → EDI provider → Shopify → ERP. In this setup, Shopify is the order management and customer-facing layer, and the ERP handles inventory, production, and accounting.

Two common patterns:

EDI → Shopify → ERP: The EDI provider creates orders in Shopify, and a separate integration syncs those orders into the ERP as sales orders. The ERP processes fulfillment, and shipment data flows back to Shopify, which then triggers the outbound 856 via the EDI provider.

EDI → EDI provider → ERP (Shopify as catalog only): For some manufacturers with complex ERP-driven fulfillment, the EDI provider integrates directly with the ERP, and Shopify serves primarily as the product catalog and customer portal. EDI orders don't touch Shopify at all.

The right architecture depends on where order management actually lives in your operation. If your warehouse and fulfillment team works out of Shopify, route EDI orders through Shopify. If your ERP drives fulfillment, the EDI-to-ERP path may be simpler.

For ERP integration guidance, see Shopify ERP Integration: A Guide.

EDI Compliance and Chargebacks

EDI compliance chargebacks are financial penalties your trading partner deducts from your invoice when you don't meet their EDI requirements. They are common, often automatic, and add up quickly.

Common chargeback triggers:

  • Late 855 acknowledgment: Didn't acknowledge the PO within the required window
  • Late or missing 856 ASN: ASN arrived after the shipment or not at all
  • Incorrect 856 carton data: Carton dimensions, weight, or pack quantities don't match physical shipment
  • Invoice discrepancy: Billed price or quantity doesn't match the PO
  • Non-compliant labeling: GS1-128 shipping labels missing or incorrect (often tied to 856 data)
  • Shipment to wrong location: Order fulfilled to the wrong distribution center

Your EDI provider's compliance monitoring tools surface many of these issues before they generate chargebacks. Most providers include trading partner scorecard reporting that shows your compliance rate per document type and per trading partner.

Automating Around EDI with Shopify Flow and n8n

EDI handles the structured document exchange with trading partners. Shopify Flow and n8n handle the operational automation around it.

Shopify Flow is useful for:

  • Holding EDI draft orders for review before they can be fulfilled
  • Notifying your operations team when a new EDI order arrives
  • Flagging orders where EDI-sourced quantities exceed available inventory
  • Auto-tagging EDI orders by trading partner for reporting

n8n is useful when you need to bridge Shopify with systems outside the EDI provider's scope:

  • Syncing EDI order data to your ERP with field-level mapping that doesn't fit a pre-built connector
  • Triggering inventory updates in Shopify when your ERP signals stock changes (feeding accurate data into 846 responses)
  • Sending internal alerts for EDI errors that require manual resolution before the trading partner's acknowledgment window closes

n8n is particularly useful if your EDI provider handles document translation but you need custom logic for how that data moves through your internal systems.

Getting Started

If you're new to EDI or adding a new large trading partner that requires it:

  1. Get the trading partner's EDI specifications: Every major retailer publishes a vendor EDI guide. Get this before selecting a provider, as it defines the documents, fields, and timing requirements you need to support.
  2. Identify an EDI provider with a Shopify connector and existing connection to that trading partner: Reducing setup effort on the trading partner side matters. If your provider already has the connection established, onboarding is faster.
  3. Decide where inbound POs land in Shopify: Draft orders are almost always the right answer for B2B EDI, giving you a review step before committing to fulfillment.
  4. Set up the trading partner as a B2B company in Shopify Plus: Company account, catalog pricing, and payment terms should all be in place before the first live EDI order arrives.

Test with the trading partner before going live: Most large retailers have a formal trading partner testing process. Your EDI provider facilitates this. Don't skip it.