Muon SolutionsSearch services, guides and toolsBook a callMenu

Type 2 or more letters. Press Enter to open the first result, Esc to close.

RS-62ResourcesIntegration and applications

EDI or API for connecting to customers and carriers

What to build when a customer mandates EDI and a carrier has an API, with a decision table, 8 test cases and 6 alerts.

Article9 minute read

  • Integration
  • Logistics

Key points

  • The partner's onboarding guide sets the method: a customer that mandates X12 documents gets EDI, and a carrier with a published API gets API calls.
  • In X12, the 204 is the Motor Carrier Load Tender, the 990 is the Response to a Load Tender, the 214 is the shipment status message and the 210 is the freight invoice.
  • A translator converts each partner's format to 1 internal format, so a new partner adds maps in the translator and changes nothing in the TMS, WMS or ERP.
  • A 997 confirms only that a file parsed, so monitoring has to catch a tender with no 990 and a partner that has stopped sending.

What do you build when a customer wants EDI and a carrier has an API?

Build both connections, and put 1 translator between your partners and your own systems. Each partner's guide sets its method. Your TMS, WMS and ERP see 1 internal format for a load, a status and an invoice.

EDI
Electronic data interchange: business documents exchanged as structured files. North American freight and retail use the X12 standard.
API
Application programming interface: the partner's system answers 1 request at a time over HTTPS, usually in JSON and within seconds.
AS2
A method for sending EDI files directly between 2 companies over HTTP, with a receipt for each file.
VAN
Value-added network: a third party that passes EDI files between company mailboxes.
TMS, WMS, ERP
Transportation management, warehouse management and enterprise resource planning systems.

Key facts, as of December 2026

The standards and tooling behind each method, with sources.
ItemWhat the source saysSource and date
AS2Business data such as X12 or EDIFACT sent over HTTP and secured with S/MIME. The receiver returns a Message Disposition Notification (MDN), signed if the sender asks.IETF RFC 4130, July 2005
Freight API standards10 published standards: 4 for LTL (less-than-truckload), such as electronic bill of lading, and 6 for full truckload, such as appointment scheduling.National Motor Freight Traffic Association (NMFTA), read December 4, 2026
Translator toolingThe Enterprise Integration Pack in Azure Logic Apps supports AS2, X12, EDIFACT and RosettaNet.Microsoft Learn, March 10, 2026

Which freight documents will partners ask for?

6 X12 freight documents, who sends each and what your system does with it.
X12 number and nameWho sends itWhat your system must do
204, Motor Carrier Load TenderShipper or broker to the carrierCreate the load in the TMS with stops, dates and reference numbers. Handle the original, a change and a cancellation.
990, Response to a Load TenderCarrier to the sender of the 204Accept or decline inside the partner's response window. A late 990 can send the load to the partner's next carrier.
214, Transportation Carrier Shipment Status MessageCarrier to the shipper, broker or consigneeSend a status for each event the partner lists, with the event's own time and time zone. Many partners score carriers on late and missing 214s.
210, Motor Carrier Freight Details and InvoiceCarrier to whoever pays the freightBill linehaul, fuel surcharge and accessorial charges against the reference numbers from the 204. A 210 that fails the partner's audit is rejected or held unpaid.
856, Ship Notice/ManifestShipper, supplier or third-party warehouse to the consigneeDescribe the shipment before it arrives: orders, items, quantities and cartons. Retail customers commonly charge back for an 856 that is late or wrong.
997, Functional AcknowledgmentReceiver of any document, to its senderConfirm that the file parsed. It says nothing about the load or the invoice.

Names are from X12's transaction set list, read December 4, 2026. Each partner's implementation guide states the segments and codes it uses.

EDI over AS2 gives 3 separate receipts. The MDN says the file reached the partner's AS2 server, the 997 says it passed the syntax checks, and the 990 says whether the carrier took the load. An API usually returns the first 2 as the status code of the same call.

When does EDI fit, and when does an API fit?

Use EDI where a partner mandates it and for scheduled, high-volume documents. Use an API where someone is waiting for the answer.

Which method to use for 1 partner connection, by situation.
SituationUseReason
The partner's onboarding guide or vendor manual mandates X12EDIThe guide is a condition of doing business with that partner.
You need an answer or an event within seconds: a rate quote, a pickup booking, a tracking updateAPIEDI usually moves in batches on a schedule. An API answers in the same call.
The partner supports bothAPI for booking and status, EDI for invoices and ship noticesBooking and status gain from speed. Scheduled, high-volume documents suit batches, and payables systems often expect the 210.
A small partner has neitherThe partner's portal, or CSV files over SFTPSet a monthly volume below which you do not build a connection.

Why put a translator between partners and your TMS?

A translator is software that converts each partner's format to your internal format and back. Each partner and document pair needs 1 map. When a partner changes its format, you change that map and nothing inside your TMS, WMS or ERP.

  1. PartnerX12 over AS2, or JSON over HTTPS
  2. TranslatorValidates, maps, logs and acknowledges
  3. Internal format1 load, 1 status, 1 invoice
  4. TMS, WMS, ERP1 owning system per record

Take 10 EDI partners with 4 documents each. Mapped straight into the TMS, that is up to 40 maps written against TMS tables, and a TMS upgrade can break any of them. With a translator, the 40 maps sit outside the TMS, which keeps 4 interfaces in its own format. The carrier's API adds 2 more: booking and tracking.

3 places the translator can run, and what to check before you choose.
OptionFits whenCheck before you choose
The EDI module of your TMS or ERPA few partners and standard documentsWhether it handles APIs, and how each new partner map is priced.
A managed EDI service or VANNobody on staff runs mapping and connectivityWho owns the maps, how you get them back when you leave, and what is watched after hours.
An integration platform you run, such as Azure Logic AppsEDI and APIs go through 1 tool, and you have developers on staffWho watches it after hours and who runs partner testing.

Apply 2 rules whichever you choose.

  • Each record has 1 owning system: the TMS owns the load and the ERP owns the invoice. Connecting a TMS, a WMS and an ERP has the ownership table.
  • Every raw message is kept as received and as sent, for as long as a freight claim or billing dispute can run.
Example 1 load at a broker with an EDI customer and an API carrier
  1. Mon 14:02Translator204 arrives over AS2. MDN and 997 sent. Load created.Done
  2. Mon 14:21DispatcherAccepts the load. 990 sent. LTL pickup booked through the carrier's API.Done
  3. Wed 11:15TranslatorCarrier API reports delivery. 214 sent to the customer.Done
  4. Wed 15:00Monitor210 sent at 13:00 still has no 997. Alert raised.Blocked

Illustrative data, not a client record.

How does trading partner onboarding run?

The weeks are a planning example for 1 partner. The partner's test queue sets most of the calendar.

  1. Collect the documents

    EDI: the implementation guide for each transaction set, and the test plan. API: the developer documentation, a sandbox account and the policy for retiring old versions.

    Week 1

  2. Exchange identifiers and connect

    EDI: interchange IDs and qualifiers, your SCAC (Standard Carrier Alpha Code), AS2 URLs and certificates, or the VAN mailbox. API: a key or a client ID and secret, for sandbox and production.

    Weeks 1 to 2

  3. Write the mapping document

    1 spreadsheet row per field: the partner's field, your internal field and the rule between them. Settle location codes, reference numbers, units and time zones. Operations signs it.

    Weeks 2 to 3

  4. Test in the partner's test environment

    Run the 8 cases below. Many partners certify each document separately.

    Weeks 3 to 6

  5. Go live, watch, then hand over

    For 2 weeks, someone compares every load in the TMS with the partner's portal each morning. Then write the runbook: contacts, IDs, alert rules and how to resend a document.

    Weeks 6 to 8

8 test cases before go-live

How do you find failed and late messages before the partner does?

Alert on what failed and on what never arrived. A missing message leaves no error, so the monitor has to hold what was expected and by when.

Example 6 failures to alert on. The times are examples: set yours from each partner's guide.
What goes wrongHow the monitor sees itExample alert rule
A 204 arrives and no 990 goes backOpen tenders with no responseAlert dispatch 30 minutes before the partner's deadline
An outbound document is never acknowledgedSent documents with no 997Alert after 2 hours
The partner rejects a documentA 997 reporting a rejection, or an API 4xx responseAlert at once, with the error attached
A partner stops sendingNo inbound messages during the partner's usual hoursAlert after 2 hours of silence on a working day
A connection failsNo MDN from AS2, a failed SFTP login, or an API 401, 429 or 5xxRetry a 429 or 5xx 3 times, then alert the person on call. Alert on a 401 at once
A certificate or secret nears expiryExpiry dates held in the monitorAlert 30 days and 7 days before

Send alerts to a queue that someone reads on every dispatch shift. If a tender can arrive when nobody is on shift, decide now who gets the call.

What drives the cost?

Cost follows the number of maps and the hours of attention. Each partner and document pair is a map to build and test, then to change each time the partner reissues its guide or retires an API version.

Message volume matters mainly on a VAN, which usually charges by volume plus a mailbox fee. AS2 has no charge per message, and you run the server and its certificates.

What to do on Monday

  1. List every trading partner with its documents, its method (EDI, API, portal or email) and the person who owns the relationship.
  2. Count the maps written directly against TMS or ERP tables.
  3. Confirm that 2 alerts exist: a tender with no response, and a partner that has stopped sending.
  4. Record the expiry date of every AS2 certificate and API secret, each with a named owner.

EDI and supply-chain integration describes how we build and run these connections. See also 4 ways to connect an ERP to your other systems.

Sources

  1. X12: Transaction sets (read December 4, 2026)
  2. IETF RFC 4130: Applicability Statement 2 (July 2005)
  3. NMFTA Digital Standards Development Council: API standards (read December 4, 2026)
  4. Microsoft Learn: B2B enterprise integration workflows in Azure Logic Apps (March 10, 2026)

Last reviewed December 2026. Written and reviewed by Muon Solutions staff.

Tell us what you want to fix or build

Book a 30-minute call. You speak with someone who does this work, and you get a 1-page written summary afterwards.

  1. We reply by email within 1 business day.
  2. A 30-minute call with someone technical.
  3. A written scope and a fixed price, if there is a fit.
Book a 30-minute callIncident