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
| Item | What the source says | Source and date |
|---|---|---|
| AS2 | Business 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 standards | 10 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 tooling | The 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?
| X12 number and name | Who sends it | What your system must do |
|---|---|---|
| 204, Motor Carrier Load Tender | Shipper or broker to the carrier | Create the load in the TMS with stops, dates and reference numbers. Handle the original, a change and a cancellation. |
| 990, Response to a Load Tender | Carrier to the sender of the 204 | Accept 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 Message | Carrier to the shipper, broker or consignee | Send 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 Invoice | Carrier to whoever pays the freight | Bill 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/Manifest | Shipper, supplier or third-party warehouse to the consignee | Describe 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 Acknowledgment | Receiver of any document, to its sender | Confirm 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.
| Situation | Use | Reason |
|---|---|---|
| The partner's onboarding guide or vendor manual mandates X12 | EDI | The 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 update | API | EDI usually moves in batches on a schedule. An API answers in the same call. |
| The partner supports both | API for booking and status, EDI for invoices and ship notices | Booking and status gain from speed. Scheduled, high-volume documents suit batches, and payables systems often expect the 210. |
| A small partner has neither | The partner's portal, or CSV files over SFTP | Set 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.
- PartnerX12 over AS2, or JSON over HTTPS
- TranslatorValidates, maps, logs and acknowledges
- Internal format1 load, 1 status, 1 invoice
- 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.
| Option | Fits when | Check before you choose |
|---|---|---|
| The EDI module of your TMS or ERP | A few partners and standard documents | Whether it handles APIs, and how each new partner map is priced. |
| A managed EDI service or VAN | Nobody on staff runs mapping and connectivity | Who 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 Apps | EDI and APIs go through 1 tool, and you have developers on staff | Who 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.
- Mon 14:02Translator204 arrives over AS2. MDN and 997 sent. Load created.Done
- Mon 14:21DispatcherAccepts the load. 990 sent. LTL pickup booked through the carrier's API.Done
- Wed 11:15TranslatorCarrier API reports delivery. 214 sent to the customer.Done
- 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.
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
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
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
Test in the partner's test environment
Run the 8 cases below. Many partners certify each document separately.
Weeks 3 to 6
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
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.
| What goes wrong | How the monitor sees it | Example alert rule |
|---|---|---|
| A 204 arrives and no 990 goes back | Open tenders with no response | Alert dispatch 30 minutes before the partner's deadline |
| An outbound document is never acknowledged | Sent documents with no 997 | Alert after 2 hours |
| The partner rejects a document | A 997 reporting a rejection, or an API 4xx response | Alert at once, with the error attached |
| A partner stops sending | No inbound messages during the partner's usual hours | Alert after 2 hours of silence on a working day |
| A connection fails | No MDN from AS2, a failed SFTP login, or an API 401, 429 or 5xx | Retry a 429 or 5xx 3 times, then alert the person on call. Alert on a 401 at once |
| A certificate or secret nears expiry | Expiry dates held in the monitor | Alert 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
- List every trading partner with its documents, its method (EDI, API, portal or email) and the person who owns the relationship.
- Count the maps written directly against TMS or ERP tables.
- Confirm that 2 alerts exist: a tender with no response, and a partner that has stopped sending.
- 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
Last reviewed December 2026. Written and reviewed by Muon Solutions staff.