<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: challan116-ux</title>
    <description>The latest articles on DEV Community by challan116-ux (@challan116ux).</description>
    <link>https://dev.to/challan116ux</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3943125%2F8351e7ea-b9c8-4797-96fc-12a1023e7843.png</url>
      <title>DEV Community: challan116-ux</title>
      <link>https://dev.to/challan116ux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/challan116ux"/>
    <language>en</language>
    <item>
      <title>The EDIFACT CONTRL, Decoded: The Receipt That Only Proves the Envelope Arrived</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Sat, 28 Nov 2026 14:26:24 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-contrl-decoded-the-receipt-that-only-proves-the-envelope-arrived-5b0i</link>
      <guid>https://dev.to/challan116ux/the-edifact-contrl-decoded-the-receipt-that-only-proves-the-envelope-arrived-5b0i</guid>
      <description>&lt;p&gt;Most EDIFACT arguments start one message too late. A sender says "we sent it," a receiver says "we never got a usable file," and both are telling the truth — because they are talking about different layers. The EDIFACT CONTRL · Syntax and Service Report is the message built for exactly that gap. It does not say your order was accepted, your invoice was correct, or your prices matched. It says one narrower, more useful thing: an interchange arrived, its syntax was checked, and here is what happened at that layer.&lt;/p&gt;

&lt;p&gt;I run SignalEDI. This series has walked the EDIFACT order cycle message by message — PRICAT, ORDERS, ORDRSP, ORDCHG, DESADV, INVOIC, APERAK. CONTRL sits underneath all of them. If APERAK is the application saying "I read your message and found a problem in the business content," CONTRL is the translator saying "I received your interchange and here is the syntax verdict." Confusing those two layers is how teams chase a pricing bug that was actually a rejected envelope, or resend a perfect file that was already received.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a CONTRL actually carries
&lt;/h2&gt;

&lt;p&gt;A CONTRL opens by identifying the interchange it answers. It references the interchange control reference from the UNB header of the original transmission, and it identifies the sender and receiver — reversed, because the report travels back the other way. That reference is the whole point: a CONTRL is meaningless floating free. It only makes sense bound to one specific interchange.&lt;/p&gt;

&lt;p&gt;Inside, the report works at three levels. At the interchange level it can accept the transmission or reject it outright. At the functional-group level, where a transmission groups messages under a UNG header, it can report per group. At the message level it reports per UNH — each individual message in the interchange gets its own verdict. That granularity matters in a mixed file: one bad INVOIC should not silently poison an ORDERS and a DESADV that parsed cleanly in the same envelope, and a good CONTRL implementation reports them separately instead of collapsing everything into a single pass or fail.&lt;/p&gt;

&lt;p&gt;Where it rejects, CONTRL carries coded errors, not prose. The error codes point at the segment, element, or code value that failed syntax checking, and the segment position in the message. A useful implementation preserves those codes all the way to the operator's screen. A useless one translates them into "file rejected" and throws the detail away — which is the EDIFACT equivalent of an API returning a bare 500 with no body.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three layers teams keep collapsing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Transport receipt is not syntax receipt.&lt;/strong&gt; An AS2 MDN, an SFTP file landing, or an HTTP 200 proves bytes moved. It proves nothing about whether the interchange parsed. CONTRL is the first verdict on the file itself. If you treat the transport receipt as the acknowledgment, you will mark documents delivered that the receiver's translator rejected minutes later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Syntax acceptance is not business acceptance.&lt;/strong&gt; A CONTRL that accepts an interchange means the segments were in the right order, the elements were the right type and length, and the control counts reconciled. It does not mean the purchase order's prices were right, the delivery date was achievable, or the invoice matched anything. That verdict belongs to the application layer — in EDIFACT, APERAK for application errors, and the business response messages themselves: ORDRSP answers an order, not CONTRL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. No CONTRL is itself a signal — if you agreed to expect one.&lt;/strong&gt; Partners configure whether CONTRL is requested at all, often via the interchange header. When it is requested and nothing comes back, that silence is diagnostic: the file may never have reached a translator, may be queued behind a failed connection, or may have failed so early that no report could be generated. The operational mistake is having no clock on it. Decide the window — an hour, four hours, whatever the partner's processing rhythm justifies — and alert when it passes. A missing acknowledgment you never look for is just a chargeback or a stock-out arriving later with a different name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks in practice
&lt;/h2&gt;

&lt;p&gt;The commonest CONTRL failure I see is a control-count mismatch: the UNT trailer count, the number of messages declared in UNZ, or a segment count disagrees with what was actually sent, usually because a generator built the trailer before a last message was dropped or split. The file is 99% good and 100% rejected. Generators should build trailers last, from the finished interchange, never from the plan.&lt;/p&gt;

&lt;p&gt;The second is version drift. An interchange declares a syntax version and message release in its headers, and the receiver validates against exactly that release. A partner who upgrades a mapping and starts sending a newer release without telling anyone produces clean business data that fails syntax on arrival. CONTRL error codes expose this immediately — if anyone reads them.&lt;/p&gt;

&lt;p&gt;The third is the one-way mirror: a sender's system files the CONTRL but never acts on rejections. The report arrived, the interchange was rejected, and the document sat unresent until the buyer asked where it was. An acknowledgment pipeline that does not page a human on a rejection is decoration.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule to take away
&lt;/h2&gt;

&lt;p&gt;For every interchange you send, you should be able to answer three separate questions, from three separate records: did it arrive (transport), did it parse (CONTRL), and was it accepted as business (APERAK and the response message)? Systems that keep those three answers in three places reconcile in minutes. Systems that merge them into one green tick reconcile at month-end, badly.&lt;/p&gt;

&lt;p&gt;That layered view is how we handle acknowledgments at &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-28" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; — transport, syntax, and application verdicts tracked separately, so a rejection names its layer instead of just failing.&lt;/p&gt;

&lt;p&gt;— Chris, founder of SignalEDI. Next in this series: the EDIFACT AUTACK and KEYMAN messages — EDIFACT's own answer to signing and key management, and why almost nobody uses them the way they were designed.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT PRICAT, Decoded: A Price Catalogue Is Where Every Later Mismatch Is Born</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:26:10 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-pricat-decoded-a-price-catalogue-is-where-every-later-mismatch-is-born-19bl</link>
      <guid>https://dev.to/challan116ux/the-edifact-pricat-decoded-a-price-catalogue-is-where-every-later-mismatch-is-born-19bl</guid>
      <description>&lt;p&gt;An EDIFACT PRICAT · Price/Sales Catalogue message rarely makes anyone excited. It carries no order, no shipment, and no money. What it carries is the shared truth every later message will be judged against: which items exist, under which identifiers, at which prices, in which pack sizes, from when until when. When an ORDERS · Purchase Order, an ORDRSP · Order Response, or an INVOIC · Invoice disagrees with the catalogue, the argument is almost never about that message. It is about a PRICAT that was loaded badly, versioned loosely, or never loaded at all.&lt;/p&gt;

&lt;p&gt;I run SignalEDI. This series has walked the EDIFACT order cycle message by message — ORDERS, ORDRSP, ORDCHG, DESADV, INVOIC, APERAK. PRICAT sits before all of them. It is the foundation document, and foundations fail quietly: the crack shows up three messages later, in a price dispute nobody can trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a PRICAT actually carries
&lt;/h2&gt;

&lt;p&gt;A PRICAT opens with UNH and BGM, and the BGM message function matters more here than in almost any other EDIFACT message. The function tells the receiver whether this catalogue is a complete replacement, an update to selected items, or a deletion set. Treat an update as a replacement and you wipe live items. Treat a replacement as an update and discontinued items stay orderable for months. Read the function code first, before a single line is parsed.&lt;/p&gt;

&lt;p&gt;Below the header, the line groups repeat per item: LIN identifies the item with its GTIN and the supplier's and buyer's item numbers, PIA carries additional identifiers, IMD describes the item in structured and free-text form, and PRI carries the price — with the price type qualifier doing the real work. A gross price, a net price, and a promotional price can all be legal in the same file for the same item. The qualifier is the difference between them. Systems that store "the price" as a single field have already lost information the sender sent on purpose.&lt;/p&gt;

&lt;p&gt;DTM segments bound the catalogue in time: validity start, validity end, and the date the prices were calculated. A price with no validity window is not a simpler price. It is a price that will be applied to orders it was never meant for.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three ways PRICAT loading goes wrong
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Identifier drift.&lt;/strong&gt; The catalogue keys items by GTIN, the order arrives keyed by the buyer's internal number, and the cross-reference table was built from an older catalogue version. Every downstream match becomes a guess. Load every identifier the PRICAT carries — GTIN, supplier number, buyer number — and keep them versioned together, so a lookup can always answer "which catalogue version made this number valid?"&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Silent partial loads.&lt;/strong&gt; A 4,000-line catalogue fails validation on line 3,812 and the loader commits the first 3,811 lines anyway. The catalogue now looks loaded. It is not. PRICAT loads should be atomic at the version level: a catalogue version is either fully applied or fully rejected, and the rejection — ideally answered with an APERAK · Application Acknowledgment naming the failing line — goes back to the sender the same day, not at invoice time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Price-type flattening.&lt;/strong&gt; Promotional and contract prices collapse into one field, so the INVOIC is priced from whichever record loaded last. The fix is boring and absolute: store price by item, price type, currency, and validity window, and let the invoice match select the price that was valid on the order date — not the price that happens to be current on the invoice date.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the catalogue decides invoice disputes
&lt;/h2&gt;

&lt;p&gt;Most three-way-match failures I see — order price versus invoice price versus catalogue price — are catalogue failures wearing an invoice costume. The buyer ordered at the catalogue price that was valid when they ordered. The seller invoiced at the price in their ERP, which came from a newer catalogue the buyer had loaded but not yet activated, or an older one they had never retired. Both systems are internally consistent. The shared truth was never shared.&lt;/p&gt;

&lt;p&gt;The discipline that prevents it is version discipline: every order should be traceable to the catalogue version it was priced from, every catalogue version should carry its validity window, and overlapping windows for the same item and price type should be treated as a load error, not a tie to break silently.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the boring message
&lt;/h2&gt;

&lt;p&gt;Nobody load-tests the catalogue. Test yours anyway: send a full replacement, a partial update, a deletion set, a file with one bad line near the end, and two versions with overlapping validity. If your system can tell you, for any item on any date, exactly which price was authoritative and which catalogue version supplied it, your PRICAT handling is sound — and a surprising number of your invoice disputes will simply stop happening.&lt;/p&gt;

&lt;p&gt;We handle this at &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-27" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; by versioning catalogues atomically and pricing orders from the version valid on the order date — the unglamorous bookkeeping that keeps a catalogue from becoming a dispute three messages later.&lt;/p&gt;

&lt;p&gt;— Chris, founder of SignalEDI&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT ORDCHG, Decoded: A Changed Order Is a New Negotiation, Not a Correction</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Thu, 26 Nov 2026 14:26:07 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-ordchg-decoded-a-changed-order-is-a-new-negotiation-not-a-correction-37o5</link>
      <guid>https://dev.to/challan116ux/the-edifact-ordchg-decoded-a-changed-order-is-a-new-negotiation-not-a-correction-37o5</guid>
      <description>&lt;h1&gt;
  
  
  The EDIFACT ORDCHG, Decoded: A Changed Order Is a New Negotiation, Not a Correction
&lt;/h1&gt;

&lt;p&gt;An EDIFACT ORDCHG · Purchase Order Change Request message is how a buyer changes an order they have already sent: quantities moved, delivery dates pushed, lines added, lines cancelled, prices corrected. It does not edit the original ORDERS · Purchase Order message. It references it — and until the seller answers with an ORDRSP · Order Response, nobody actually knows which version of the order is real.&lt;/p&gt;

&lt;p&gt;I run SignalEDI. This series has walked the EDIFACT order cycle in order: the ORDERS that opens it, the ORDRSP where the seller commits, the DESADV · Despatch Advice that ships it, the INVOIC · Invoice that bills it, and the APERAK · Application Acknowledgment that reports when a message itself was rejected. ORDCHG is the message that interrupts that tidy sequence — usually after the warehouse has already started picking.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an ORDCHG actually carries
&lt;/h2&gt;

&lt;p&gt;An ORDCHG opens with UNH and BGM, and the BGM segment is where the first trap lives. BGM carries a document name code (1055 in EDIFACT code lists for a purchase order change request in common directory versions — always confirm against your partner's message implementation guideline, because directories differ) plus the buyer's change document number and, critically, a message function code. That function code tells the receiver what kind of change this is: a full replacement of the order, an addition of lines, a deletion, or a change to existing lines. Misread the function code and you will apply a partial change as if it were the whole order — the single most common ORDCHG failure I see.&lt;/p&gt;

&lt;p&gt;Next comes DTM segments for the dates that matter — the change date, and any revised requested delivery date — and RFF segments that tie the change back to the original order. The RFF referencing the buyer's original order number is not decoration. It is the join key. An ORDCHG that cannot be matched to exactly one open order is not a change request; it is an exception waiting for a human.&lt;/p&gt;

&lt;h2&gt;
  
  
  The lines: change at the level the seller promised
&lt;/h2&gt;

&lt;p&gt;Below the header, the line groups repeat: LIN identifies the item, and action-related qualifiers and accompanying segments describe what is different — a revised QTY, a new delivery schedule in SCC/DTM detail, a changed PRI price, or a line marked for cancellation.&lt;/p&gt;

&lt;p&gt;Two rules keep ORDCHG processing honest:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A change is line-scoped, not file-scoped.&lt;/strong&gt; If line 3 changes quantity and lines 1, 2, and 4 are absent, absent means unchanged — unless the message function said full replacement, in which case absent means deleted. The function code and the line content have to be read together. Systems that treat every ORDCHG as a replacement corrupt orders; systems that treat every one as a patch drop cancellations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Sequence matters more than timestamps.&lt;/strong&gt; Buyers sometimes send two changes before the seller answers the first. Apply them in interchange order, answer each one, and never let a later change silently absorb an earlier unacknowledged one. When the seller's ORDRSP accepts change two but the warehouse is still working from change one, the shipment will be wrong in a way no ASN can fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  The answer is part of the protocol
&lt;/h2&gt;

&lt;p&gt;In X12, the 860/865 pair makes the request-and-answer structure explicit. EDIFACT folds the answer into ORDRSP: the seller responds to the changed order with line-level acceptance, rejection, or acceptance with a revised date, quantity, or price. That means an unanswered ORDCHG is an open liability, not a completed transaction. Track it the way you track an unacknowledged 997 · Functional Acknowledgment: age it, escalate it, and do not release the shipment against an order version the seller never confirmed.&lt;/p&gt;

&lt;p&gt;Watch for these failure patterns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Change arrives after DESADV.&lt;/strong&gt; The goods already left. The ORDCHG now describes a return or a short-shipment conversation, not a pick change — route it to humans, not to the warehouse feed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Price changes without a contract reference.&lt;/strong&gt; A revised PRI with no supporting agreement reference is a dispute scheduled for invoice day, when the INVOIC is matched against the wrong price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cancelled lines that reappear.&lt;/strong&gt; If a later ORDERS or a retransmitted original resurrects a cancelled line, your matching logic keyed on document number alone instead of order-plus-version. Version your orders; every accepted change increments the working version.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;APERAK says fine, business says no.&lt;/strong&gt; APERAK (and CONTRL at the syntax level) only proves the message parsed and was accepted at the application layer. It says nothing about whether the change was commercially accepted. Only the ORDRSP does that.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why this message deserves respect
&lt;/h2&gt;

&lt;p&gt;Every integration team rehearses the happy path: order in, response back, despatch out, invoice paid. Real trading relationships live in the interruptions. The buyer whose demand forecast moved, the port delay that pushed a date, the line that has to die before it ships — all of that arrives as an ORDCHG, and how your system handles it decides whether a change costs a phone call or a chargeback.&lt;/p&gt;

&lt;p&gt;If you are building EDIFACT flows, test the change path as hard as the order path: send a partial change, a full replacement, a cancellation after picking starts, and two changes in flight at once. If your system can tell you, for any open order, exactly which version is current and who confirmed it, your ORDCHG handling is probably sound.&lt;/p&gt;

&lt;p&gt;We handle this at &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-26" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; by versioning every order and holding shipment release until the latest change is answered — the unglamorous bookkeeping that keeps a changed order from becoming a wrong shipment.&lt;/p&gt;

&lt;p&gt;— Chris, founder of SignalEDI&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT APERAK, Decoded: The Message That Tells You Your Message Was Wrong</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:27:14 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-aperak-decoded-the-message-that-tells-you-your-message-was-wrong-4067</link>
      <guid>https://dev.to/challan116ux/the-edifact-aperak-decoded-the-message-that-tells-you-your-message-was-wrong-4067</guid>
      <description>&lt;h1&gt;
  
  
  The EDIFACT APERAK, Decoded: The Message That Tells You Your Message Was Wrong
&lt;/h1&gt;

&lt;p&gt;Most EDIFACT conversations look polite on the surface. An ORDERS arrives, an ORDRSP commits, a DESADV announces the shipment, an INVOIC asks for money. Then one day a different message shows up — short, blunt, and easy to ignore until a partner's orders quietly stop flowing: the APERAK.&lt;/p&gt;

&lt;p&gt;APERAK is the Application Error and Acknowledgement Message. It is EDIFACT's equivalent of X12's 824 Application Advice, with a touch of the 997's job mixed in: it reports that a message you sent was received, and then it tells you — at the application level — what was wrong with it. Not "the file would not parse." Worse: "the file parsed fine, and the business content still failed."&lt;/p&gt;

&lt;h2&gt;
  
  
  Where APERAK sits in the stack
&lt;/h2&gt;

&lt;p&gt;EDIFACT acknowledgements come in layers, and confusing them is the first operational mistake.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CONTRL&lt;/strong&gt; is the syntax layer. It says your interchange was structurally readable — segments in order, envelopes balanced — or it rejects it with syntax errors. It says nothing about whether the order inside made sense.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;APERAK&lt;/strong&gt; is the application layer. It says the receiving application processed your message and found errors in the content: a missing reference, an unknown product code, a date in the past, a price that does not match the agreement.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;functional response&lt;/strong&gt; like ORDRSP is the business layer. It accepts, changes, or rejects the order itself.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If CONTRL is "we could read it" and ORDRSP is "we will ship it," APERAK is "we read it, we understood it, and here is the list of reasons it cannot enter our system." Treating an APERAK as a transport receipt is how errors age into chargebacks and cancelled orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a real APERAK contains
&lt;/h2&gt;

&lt;p&gt;An APERAK opens with UNH and BGM, where BGM names the function: an acknowledgement, an error notification, or both. Then comes DTM for the timing, and the segments that do the real work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;RFF&lt;/strong&gt; ties the APERAK back to the original message — its reference number, and usually the original document number, so you can find the exact ORDERS or INVOIC being complained about without guessing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ERC&lt;/strong&gt; carries the application error code. In the classic pattern it sits inside a segment group with FTX, so the code says &lt;em&gt;what class&lt;/em&gt; of error occurred and the free text says &lt;em&gt;where&lt;/em&gt;: which segment, which element, which line item.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FTX&lt;/strong&gt; is the human-readable part. Good partners write FTX text an operator can act on ("Line 20: unknown GTIN, not in catalogue as of 2026-11-01"). Weak implementations send a bare code and leave you to phone someone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The discipline that matters: one APERAK can report several errors against one original message, and the absence of an error group is the positive acknowledgement. If your integration only checks "did an APERAK arrive?" and not "did it contain ERC segments?", you have built a system that reads bad news as good news.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four failures APERAK exists to catch
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reference failures.&lt;/strong&gt; The INVOIC references an order number the buyer never issued, or a DESADV references a shipment the ORDERS never authorised. The document is valid EDIFACT and commercially meaningless.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Catalogue failures.&lt;/strong&gt; GTINs, buyer item numbers, and unit-of-measure codes that do not exist in the receiver's master data. These spike after every assortment change — the sender updated their catalogue, the receiver did not, or the reverse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agreement failures.&lt;/strong&gt; Prices, tax rates, and payment terms that contradict the contract the messages are supposed to execute. An INVOIC priced 4% above the agreed line price parses perfectly and fails here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sequence failures.&lt;/strong&gt; A second DESADV for the same shipment with different quantities, an INVOIC sent before any DESADV exists, a cancellation referencing a message already acknowledged as processed. Order matters, and APERAK is where disorder gets reported.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Notice what is &lt;em&gt;not&lt;/em&gt; on that list: syntax. If your file is malformed, you should get a CONTRL rejection, not an APERAK. Partners who send APERAK for syntax errors — and some do — are telling you their stack collapses the layers, and your error handling has to cope with both dialects.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do when one lands
&lt;/h2&gt;

&lt;p&gt;First, stop the line, not the relationship. An APERAK against an ORDERS usually means no order was created downstream. Resending the identical file buys you a second identical APERAK. Fix the referenced data first.&lt;/p&gt;

&lt;p&gt;Second, route by error class, not by partner. Catalogue failures go to whoever owns master data; agreement failures go to commercial; reference failures are usually a sequencing bug in your own system. The ERC code is the routing key — build the runbook around it before go-live, not after the first incident.&lt;/p&gt;

&lt;p&gt;Third, acknowledge the acknowledgement loop in your monitoring. The healthy pattern is symmetrical: every outbound business message should end in exactly one terminal state — accepted (functional response), rejected with errors (APERAK/CONTRL), or escalated as &lt;em&gt;unacknowledged&lt;/em&gt; after an agreed timeout. "Sent and silent" is not a state; it is a debt.&lt;/p&gt;

&lt;p&gt;Fourth, keep the APERAK with the original message forever. Audits, disputes, and chargeback defence all turn on being able to show what you sent, what they said about it, and when. A screenshot of a portal is not that record.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this obscure message matters more in 2026
&lt;/h2&gt;

&lt;p&gt;As more EDIFACT traffic is generated and translated by software — APIs in front, JSON inside, EDIFACT only at the edge — the syntax layer gets more reliable and the application layer gets &lt;em&gt;less&lt;/em&gt; reliable. Machines are excellent at producing well-formed segments carrying stale catalogue data at scale. APERAK is the feedback signal that catches exactly that failure mode, which is why mature programmes monitor its rate the way API teams monitor 4xx rates: a sudden rise is rarely the partner's parser breaking; it is somebody's data drifting.&lt;/p&gt;

&lt;p&gt;Build for it accordingly: parse APERAK automatically, surface ERC codes in the same dashboard as your other integration errors, and never let a human discover one by opening a mailbox on Monday morning.&lt;/p&gt;




&lt;p&gt;I'm Chris, founder of SignalEDI — we build AI-assisted EDI onboarding where acknowledgement handling (CONTRL, APERAK, 997, 999, 824) is treated as a first-class workflow, not an afterthought, because the errors that cost money almost always arrive as acknowledgements someone ignored. More on how we approach that at &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-25" rel="noopener noreferrer"&gt;signaledi.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Next in this series: the EDIFACT RECADV — the receiving advice that closes the loop between what shipped and what actually arrived.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT ORDRSP, Decoded: An Order Response Is Where the Seller Stops Nodding and Starts Committing</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:26:15 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-ordrsp-decoded-an-order-response-is-where-the-seller-stops-nodding-and-starts-50g4</link>
      <guid>https://dev.to/challan116ux/the-edifact-ordrsp-decoded-an-order-response-is-where-the-seller-stops-nodding-and-starts-50g4</guid>
      <description>&lt;h1&gt;
  
  
  The EDIFACT ORDRSP, Decoded: An Order Response Is Where the Seller Stops Nodding and Starts Committing
&lt;/h1&gt;

&lt;p&gt;Short answer: ORDRSP is UN/EDIFACT's order response message — the global counterpart to the X12 855 · Purchase Order Acknowledgment. A seller sends ORDRSP to answer an ORDERS message line by line: accepted as ordered, accepted with changes, or rejected — with the dates, quantities, and prices the seller is actually committing to. If ORDERS is the buyer's promise request, ORDRSP is the seller's signed answer.&lt;/p&gt;

&lt;p&gt;I build EDI tooling for a living. Here is how ORDRSP actually works, segment by segment.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an ORDRSP message actually contain?
&lt;/h2&gt;

&lt;p&gt;An ORDRSP sits inside an EDIFACT interchange (UNB/UNZ envelope), and its own structure runs like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UNH&lt;/strong&gt; — opens the message and names it: message type ORDRSP, plus the directory version and release (for example D:96A or D:01B). The directory decides which segments and codes are even legal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BGM&lt;/strong&gt; — the document header: the response type and the seller's response number. That number is what the buyer files the commitment against.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DTM&lt;/strong&gt; — the dates that matter commercially: the response date, and the confirmed delivery date where it differs from what the buyer asked for. A changed delivery date buried in DTM is still a change — buyers who only check quantities miss it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RFF&lt;/strong&gt; — the references that tie the response back to the chain: above all the buyer's order number from ORDERS. Lose that reference and the buyer cannot match your commitment to their order automatically.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NAD&lt;/strong&gt; — the parties: buyer, seller, delivery party. Each NAD carries a qualifier naming its role; the same company often appears in several roles at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LIN / PIA / IMD&lt;/strong&gt; — the answered lines themselves: line number, the buyer's item number and additional IDs such as a GTIN in PIA, and the description. LIN numbers the line; everything about that commitment hangs off it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QTY / PRI / MOA&lt;/strong&gt; — the confirmed quantity, the confirmed unit price, and the line amount. ORDRSP states what the seller will actually do; whether it matches what the buyer ordered is the comparison both sides need to run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UNS / CNT / UNT&lt;/strong&gt; — the summary and trailer: control counts and the segment count that proves the message arrived whole.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The line-level action code is the heart of the message. Each LIN group carries a code that says, in effect: accepted without change, accepted with a quantity change, accepted with a date change, accepted with a price change, or not accepted. That code — not the prose around it — is what the buyer's system acts on.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is ORDRSP different from the X12 855?
&lt;/h2&gt;

&lt;p&gt;The business content is nearly identical — parties, lines, quantities, prices, dates, and a per-line accept/change/reject decision. The differences that break integrations are structural:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One message, whole vocabulary of answers.&lt;/strong&gt; X12 splits acknowledgment behavior across the 855 · Purchase Order Acknowledgment and the 865 · Purchase Order Change Acknowledgment. ORDRSP carries the response to the original order in one message type, with the per-line action code doing the work that X12 spreads across ACK segment status codes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Changes are stated, not implied.&lt;/strong&gt; In a well-formed ORDRSP, a changed line restates the confirmed quantity, price, and date explicitly. Code that reads only the action code and assumes the original ORDERS values for everything else will commit the warehouse to numbers the seller never confirmed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The acknowledgment pair is different.&lt;/strong&gt; X12 answers an 850 at the syntax layer with a 997 · Functional Acknowledgment. EDIFACT answers ORDERS with CONTRL for syntax where the agreement calls for it — and ORDRSP is the commercial answer. Confusing those two layers is how teams end up believing an order was accepted when it was only received.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Versions are directories, not releases of one guide.&lt;/strong&gt; X12 partners argue about 4010 versus 5010. EDIFACT partners argue about D.96A versus D.01B, and a code value legal in one directory may not exist in the other. The version negotiation happens before mapping, or it happens as a rejection.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks most often in production?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Accepting in the response what the warehouse cannot ship.&lt;/strong&gt; ORDRSP is a commitment, not a courtesy. Sellers who auto-accept every line and fix it later with a changed DESADV discover that the buyer's planning system already consumed the confirmed date — and the late change reads as a broken promise, not an update.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Confirming the order quantity instead of the shippable quantity.&lt;/strong&gt; The confirmed QTY is the quantity the seller will deliver on the confirmed date. Echoing the ordered quantity when stock is short turns a manageable partial shipment into a surprise short shipment at the dock.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dropping the buyer's line references.&lt;/strong&gt; The order number, the buyer's line number, and the item identifiers are how the buyer's system matches response to order. An ORDRSP that carries only the seller's internal references forces a human to do the matching, at human speed and human error rates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Treating a price change as a footnote.&lt;/strong&gt; A confirmed PRI that differs from the ordered price will surface again at invoice time, when INVOIC is matched against the order. A price disagreement belongs in the ORDRSP, negotiated while there is still time — not discovered in the three-way match.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do with an ORDRSP message?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read the action code first, per line.&lt;/strong&gt; It tells you whether that line is a commitment, a changed commitment, or a refusal — before you look at a single amount.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare confirmed against ordered, field by field.&lt;/strong&gt; Quantity, price, and delivery date, per line. Any difference is a decision the buyer needs to accept explicitly, not absorb silently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate against the partner's subset, not the directory alone.&lt;/strong&gt; Almost nobody trades raw D.01B; they trade a documented subset of it. The subset is the contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Answer changes commercially and explicitly.&lt;/strong&gt; A rejected or changed line gets a revised order, a phone call, or a new agreement — never silence, and never a quietly edited resend with the same references.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is ORDRSP the same as an 855?&lt;/strong&gt;&lt;br&gt;
In business purpose, yes: both are the seller's line-by-line answer to a purchase order. In syntax, change handling, and versioning, no — plan a real mapping between them, not a rename.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What answers an ORDRSP message?&lt;/strong&gt;&lt;br&gt;
Nothing at the syntax layer beyond CONTRL where the agreement calls for it. Commercially, the buyer accepts the confirmed terms, negotiates the changed lines, or issues a revised ORDERS — the response starts that conversation, it does not end it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can one ORDRSP answer more than one order?&lt;/strong&gt;&lt;br&gt;
Normally no: an ORDRSP answers one ORDERS message, and its RFF trail points back to that order. Splitting one response across orders breaks the matching both sides depend on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What directory version should a new ORDRSP integration use?&lt;/strong&gt;&lt;br&gt;
The one your partner's implementation guide specifies. D.96A and D.01B are both still common in production; supporting "EDIFACT" without naming a directory is supporting neither.&lt;/p&gt;




&lt;p&gt;Getting ORDRSP matched cleanly against the original order — and catching a changed date or price before it becomes an invoice dispute — is a large part of what we built &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-24" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; to handle. I'm Chris, founder of SignalEDI — if your order responses keep confirming things your warehouse never agreed to, I'd genuinely like to hear where yours break.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT INVOIC, Decoded: An Invoice Is a Claim That Three Earlier Messages Have to Support</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:26:03 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-invoic-decoded-an-invoice-is-a-claim-that-three-earlier-messages-have-to-support-ip8</link>
      <guid>https://dev.to/challan116ux/the-edifact-invoic-decoded-an-invoice-is-a-claim-that-three-earlier-messages-have-to-support-ip8</guid>
      <description>&lt;p&gt;Short answer: INVOIC is UN/EDIFACT's invoice message — the global counterpart to the X12 810 · Invoice. A seller sends INVOIC to bill for goods or services already ordered and, usually, already despatched. If ORDERS is the promise and DESADV is the shipment, INVOIC is the bill — and it only gets paid cleanly when it agrees, line by line, with both of them.&lt;/p&gt;

&lt;p&gt;I build EDI tooling for a living. Here is how INVOIC actually works, segment by segment.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an INVOIC message actually contain?
&lt;/h2&gt;

&lt;p&gt;An INVOIC sits inside an EDIFACT interchange (UNB/UNZ envelope), and its own structure runs like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UNH&lt;/strong&gt; — opens the message and names it: message type INVOIC, plus the directory version and release (for example D:96A or D:01B). The directory decides which segments and codes are even legal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BGM&lt;/strong&gt; — the document header: what kind of invoice this is (a commercial invoice, a credit note, a debit note) and the seller's invoice number. That number is what the buyer pays against — lose it and nothing downstream matches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DTM&lt;/strong&gt; — the dates that drive payment terms: invoice date, and where relevant the delivery or tax point date. A wrong tax-point date can put a correct invoice in the wrong VAT period.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RFF&lt;/strong&gt; — references that tie the invoice back to the chain: the buyer's order number from ORDERS, the despatch advice number from DESADV, a contract reference. These are the join keys for the three-way match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NAD&lt;/strong&gt; — the parties: seller, buyer, invoicee, payer. Each NAD carries a qualifier naming its role; the same company often appears in several roles at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LIN / PIA / IMD&lt;/strong&gt; — the billed lines themselves: line number, the buyer's item number and additional IDs such as a GTIN in PIA, and the description. LIN numbers the line; everything about that charge hangs off it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QTY / PRI / MOA&lt;/strong&gt; — the invoiced quantity, the unit price, and the line amount. INVOIC states what the seller believes is owed; whether it matches the agreed price is the buyer's check to run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TAX&lt;/strong&gt; — the tax treatment per line or summary: rate, category, and amount. In EDIFACT markets this is rarely decoration — a missing or wrong TAX segment is a compliance rejection, not a rounding note.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UNS / MOA / CNT / UNT&lt;/strong&gt; — the summary and trailer: total invoiced amount, tax totals, control counts, and the segment count that proves the message arrived whole.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How is INVOIC different from the X12 810?
&lt;/h2&gt;

&lt;p&gt;The business content is nearly identical — parties, lines, quantities, prices, taxes, totals. The differences that break integrations are structural:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The credit note lives in the same message.&lt;/strong&gt; X12 splits billing across the 810 · Invoice and the 812 · Credit/Debit Adjustment. INVOIC carries its document type in BGM — the same message type can be an invoice, a credit note, or a debit note. Code that assumes every INVOIC increases what is owed will eventually post a credit as a charge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tax is a first-class citizen.&lt;/strong&gt; X12 invoices often carry tax as a summary afterthought. INVOIC was built for VAT regimes: TAX segments, tax-point dates, and per-rate summaries are part of the message's normal shape, and many partners validate them before they look at a single line price.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The acknowledgment pair is different.&lt;/strong&gt; X12 answers an 810 at the syntax layer with a 997 · Functional Acknowledgment. EDIFACT answers INVOIC with CONTRL for syntax where the agreement calls for it — and a disputed INVOIC is answered commercially, with a credit note or a corrected invoice, not with a status message that quietly makes the problem go away.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Versions are directories, not releases of one guide.&lt;/strong&gt; X12 partners argue about 4010 versus 5010. EDIFACT partners argue about D.96A versus D.01B, and a segment valid in one directory may not exist in the other. The version negotiation happens before mapping, or it happens as a rejection.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks most often in production?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Billing against the order instead of the shipment.&lt;/strong&gt; INVOIC should bill what DESADV says actually left the building. Shops that generate the invoice from ORDERS bill for the backordered line too — and discover it at payment, the most expensive place to discover anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Losing the buyer's references.&lt;/strong&gt; The order number, the despatch number, and the line numbers are how the buyer's system matches invoice to order to receipt. An INVOIC that carries only the seller's internal references forces a human to do the matching, at human speed and human error rates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Treating a credit note as a negative invoice.&lt;/strong&gt; A credit note references the original invoice and reverses specific lines for specific reasons. Posting it as a free-standing negative total destroys the audit trail that both finance teams will need at quarter-end.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rounding tax per line when the partner rounds per rate.&lt;/strong&gt; Both totals are defensible; they differ by cents; and the invoice fails the match. Tax rounding is a partner agreement, not an implementation detail — settle it in the subset guide, not in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do with an INVOIC message?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read the document type first.&lt;/strong&gt; BGM tells you whether this is a charge, a credit, or a debit before a single amount is posted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the three-way match.&lt;/strong&gt; Invoice lines against ORDERS lines against DESADV quantities — in that order, per line, before payment is scheduled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate against the partner's subset, not the directory alone.&lt;/strong&gt; Almost nobody trades raw D.01B; they trade a documented subset of it. The subset is the contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Answer disputes commercially and explicitly.&lt;/strong&gt; A wrong INVOIC gets a corrected INVOIC or a credit note that references it — never silence, and never a quietly edited resend with the same number.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is INVOIC the same as an 810?&lt;/strong&gt;&lt;br&gt;
In business purpose, yes: both are invoices. In syntax, tax handling, credit-note handling, and versioning, no — plan a real mapping between them, not a rename.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What answers an INVOIC message?&lt;/strong&gt;&lt;br&gt;
CONTRL for syntax-level acknowledgment where the agreement calls for it. Commercially, payment — or a credit note / corrected invoice when the bill is disputed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can one INVOIC bill against more than one order?&lt;/strong&gt;&lt;br&gt;
It can, when the partner agreement allows consolidated billing — but every line still needs its RFF trail back to its own order and despatch, or the three-way match collapses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What directory version should a new INVOIC integration use?&lt;/strong&gt;&lt;br&gt;
The one your partner's implementation guide specifies. D.96A and D.01B are both still common in production; supporting "EDIFACT" without naming a directory is supporting neither.&lt;/p&gt;




&lt;p&gt;Getting INVOIC matched cleanly against the order and the shipment — and handling the credit note when it does not match — is a large part of what we built &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-23" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; to handle. I'm Chris, founder of SignalEDI — if your EDIFACT invoices keep failing on tax or reference mismatches nobody can explain, I'd genuinely like to hear where yours break.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDIFACT ORDERS, Decoded: A Purchase Order Is a Contract Written in Segments</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Sun, 22 Nov 2026 14:27:18 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-orders-decoded-a-purchase-order-is-a-contract-written-in-segments-12p9</link>
      <guid>https://dev.to/challan116ux/the-edifact-orders-decoded-a-purchase-order-is-a-contract-written-in-segments-12p9</guid>
      <description>&lt;p&gt;Short answer: ORDERS is UN/EDIFACT's purchase order message — the European and global counterpart to the X12 850 · Purchase Order. A buyer sends ORDERS to place, change, or cancel an order; the seller answers with ORDRSP · Order Response. If you trade with partners outside North America and only know the 850, ORDERS is the same business promise written in a different grammar — and the grammar is where integrations quietly break.&lt;/p&gt;

&lt;p&gt;I build EDI tooling for a living. Here is how ORDERS actually works, segment by segment.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an ORDERS message actually contain?
&lt;/h2&gt;

&lt;p&gt;An ORDERS message sits inside an EDIFACT interchange (UNB/UNZ envelope, optional UNG/UNG group), and its own structure runs like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UNH&lt;/strong&gt; — opens the message and names it: message type ORDERS, plus the directory version and release (for example D:96A or D:01B). Two partners on different directories are not speaking quite the same dialect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BGM&lt;/strong&gt; — the document header: what kind of order this is (a standard order, a rush order, a blanket-order release) and the buyer's order number. That number is the thread every later message pulls on.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DTM&lt;/strong&gt; — dates that carry legal weight: when the order was placed, and the requested delivery date or window. A DTM read as decoration instead of a commitment is a late shipment waiting to happen.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NAD&lt;/strong&gt; — the parties: buyer, supplier, delivery point, invoicee. Each NAD carries a qualifier saying which role it plays; the same company can appear three times in three roles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LIN / PIA / IMD&lt;/strong&gt; — the order lines themselves: the buyer's item number, additional product IDs (such as a GTIN in PIA), and the item description. LIN numbers the line; everything about that line hangs off it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;QTY&lt;/strong&gt; — the ordered quantity, with a qualifier distinguishing ordered quantity from, say, a previously ordered quantity it replaces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PRI / MOA&lt;/strong&gt; — the price the buyer expects to pay and line amounts. ORDERS states the buyer's price; whether the seller accepts it is ORDRSP's job to say.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RFF&lt;/strong&gt; — references that tie the line or header to something outside the message: a contract number, a prior order, a delivery instruction reference.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UNS / CNT / UNT&lt;/strong&gt; — the trailer: section separation, control totals, and the segment count that proves the message arrived whole.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How is ORDERS different from the X12 850?
&lt;/h2&gt;

&lt;p&gt;The business content is nearly identical — parties, lines, quantities, prices, dates. The differences that break integrations are structural:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delimiters are declared, not fixed.&lt;/strong&gt; EDIFACT opens with an optional UNA string that can redefine the segment terminator, element separator, and release character. A parser that hard-codes &lt;code&gt;+&lt;/code&gt;, &lt;code&gt;:&lt;/code&gt;, and &lt;code&gt;'&lt;/code&gt; will eventually meet a partner who changed them — legally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Versions are directories, not releases of one guide.&lt;/strong&gt; X12 partners argue about 4010 versus 5010. EDIFACT partners argue about D.96A versus D.01B, and a segment valid in one directory may not exist in the other. The version negotiation happens before mapping, or it happens as a rejection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The acknowledgment pair is different.&lt;/strong&gt; X12 answers an 850 with an 855 · Purchase Order Acknowledgment and a 997 · Functional Acknowledgment for syntax. EDIFACT answers ORDERS with ORDRSP for the business answer and CONTRL for the syntax receipt. Teams that map 855 logic straight onto ORDRSP miss that ORDRSP can change quantities, dates, and prices line by line — it is a negotiation, not a receipt.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks most often in production?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Treating the requested delivery date as informational.&lt;/strong&gt; In ORDERS, the DTM delivery window is part of the offer. Accepting the order in ORDRSP while silently shipping outside the window is how suppliers earn chargebacks in EDIFACT markets just as reliably as in X12 ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Losing the buyer's order number.&lt;/strong&gt; BGM carries it, RFF may repeat it, and every downstream message — ORDRSP, DESADV · Despatch Advice, INVOIC · Invoice — is matched against it. Shops that key fulfillment on their own internal order ID and drop the buyer's number discover the break at invoice matching, the most expensive place to discover anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hard-coding delimiters and directories.&lt;/strong&gt; Both failures look identical from the outside — "the file would not parse" — and both are partner-specific, which is why they survive generic testing and fail on the second trading partner, not the first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Answering with a blanket ORDRSP.&lt;/strong&gt; An ORDRSP that accepts every line unchanged when quantities or dates have actually moved is worse than a rejection: it converts a solvable difference into a delivery dispute. Answer line by line, the way the order was written.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do with an ORDERS message?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Read the envelope first.&lt;/strong&gt; Directory, sender, and control counts decide whether the message can be trusted before a single line is mapped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Preserve the buyer's references end to end.&lt;/strong&gt; Order number, line numbers, and contract references are the join keys for the whole order-to-cash chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate against the partner's subset, not the directory alone.&lt;/strong&gt; Almost nobody trades raw D.01B; they trade a documented subset of it. The subset is the contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the loop explicitly.&lt;/strong&gt; Every ORDERS deserves an ORDRSP that says, per line, accepted, changed, or rejected — in the window the partner's agreement specifies.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is ORDERS the same as an 850?&lt;/strong&gt;&lt;br&gt;
In business purpose, yes: both are purchase orders. In syntax, envelope, versioning, and acknowledgment pairing, no — plan a real mapping between them, not a rename.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What directory version should a new ORDERS integration use?&lt;/strong&gt;&lt;br&gt;
The one your partner's implementation guide specifies. D.96A and D.01B are both still common in production; supporting "EDIFACT" without naming a directory is supporting neither.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What answers an ORDERS message?&lt;/strong&gt;&lt;br&gt;
ORDRSP · Order Response for the business answer, and CONTRL for syntax-level acknowledgment where the agreement calls for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can one interchange carry more than one ORDERS message?&lt;/strong&gt;&lt;br&gt;
Yes. An interchange can carry multiple messages, and control totals in UNZ exist precisely so the receiver can prove all of them arrived.&lt;/p&gt;




&lt;p&gt;Getting ORDERS parsed, answered line by line, and matched cleanly through shipment and invoice is a large part of what we built &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-22" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; to handle. I'm Chris, founder of SignalEDI — if your EDIFACT partners each seem to speak a slightly different dialect, I'd genuinely like to hear how you keep the versions straight.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDI 999, Decoded: The Implementation Acknowledgment Is Where Healthcare EDI Stops Guessing</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:27:05 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edi-999-decoded-the-implementation-acknowledgment-is-where-healthcare-edi-stops-guessing-3p21</link>
      <guid>https://dev.to/challan116ux/the-edi-999-decoded-the-implementation-acknowledgment-is-where-healthcare-edi-stops-guessing-3p21</guid>
      <description>&lt;h1&gt;
  
  
  The EDI 999, Decoded: The Implementation Acknowledgment Is Where Healthcare EDI Stops Guessing
&lt;/h1&gt;

&lt;p&gt;Short answer: the 999 · Implementation Acknowledgment is healthcare EDI's detailed receipt. Where the older 997 · Functional Acknowledgment could only say "accepted" or "rejected" in broad strokes, the 999 reports back at the functional-group, transaction, segment, and element level — including &lt;em&gt;which&lt;/em&gt; implementation rule a claim broke. If you trade 837 · Health Care Claim files and only watch for a 999 that says "accepted," you are reading the envelope and ignoring the letter inside.&lt;/p&gt;

&lt;p&gt;I build EDI tooling for a living, and the 999 is the acknowledgment I see misread most often. Here is how it actually works.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does a 999 actually contain?
&lt;/h2&gt;

&lt;p&gt;A 999 answers one functional group at a time, and its structure mirrors the file it is judging:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ST/SE&lt;/strong&gt; — the acknowledgment transaction itself, carrying its own control number.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AK1&lt;/strong&gt; — identifies the functional group being acknowledged, by functional ID and group control number, so the receipt can be matched to exactly one outbound group.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AK2&lt;/strong&gt; — opens the report on one transaction set inside that group (for example, one 837 · Health Care Claim). A group with ten claims transactions gets up to ten AK2 loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IK3&lt;/strong&gt; — reports a segment-level error inside that transaction: which segment, where it sat, and an error code saying what class of problem was found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IK4&lt;/strong&gt; — goes one level deeper, to the element: position in the segment, the element reference, the error code, and often a copy of the offending data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IK5&lt;/strong&gt; — closes the transaction report with its verdict: accepted, accepted with errors, or rejected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AK9&lt;/strong&gt; — closes the group report with the group-level verdict and counts of included and received transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That hierarchy is the whole point. A single AK9 verdict of "accepted with errors" is a headline; the IK3 and IK4 loops underneath it are the story.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is the 999 different from the 997?
&lt;/h2&gt;

&lt;p&gt;The 997 · Functional Acknowledgment was designed against the base X12 standard: it can report that a segment or element violates the standard itself. Healthcare does not run on the base standard alone — it runs on implementation guides (the TR3s), which add situational rules the base standard knows nothing about: "this element is required when the claim is for ambulance services," "this code is only valid for institutional claims."&lt;/p&gt;

&lt;p&gt;The 999 exists to report against those implementation rules. Its error codes distinguish a segment that is out of order from one that is missing, an element that is too long from a code value that is not on the implementation's allowed list, and a situational rule that fired from one that was simply never checked. When a clearinghouse or payer returns a 999 instead of a 997, they are telling you they validated your file the way their guide is written — which is also the standard your rejections will be judged by.&lt;/p&gt;

&lt;p&gt;In practice: a file can be perfectly valid X12 and still earn a rejected 999, because validity against the standard and validity against the guide are two different gates.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks most often in production?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Treating "accepted with errors" as accepted.&lt;/strong&gt; IK5 and AK9 code E means the receiver took the file &lt;em&gt;and&lt;/em&gt; found implementation errors. Some of those errors are harmless today and fatal at adjudication tomorrow. If your pipeline files E the same way it files A, you will learn about the errors from a denial, weeks later, instead of from the 999, hours later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Matching the 999 to the wrong file.&lt;/strong&gt; The match key is the group control number in AK1, not the file name, not the timestamp, and not the interchange control number alone. Shops that rename files in transit or regenerate control numbers on resend routinely strand their 999s — the receipt exists, but nothing in the system can prove which submission it belongs to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stopping at the first error.&lt;/strong&gt; A rejected transaction can carry several IK3/IK4 reports, and fixing only the first one starts a slow loop: resend, wait, reject, repeat. Read the whole AK2 loop before touching the map. The errors usually share one root cause — a missing situational segment early in the transaction tends to make everything after it look wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Confusing the 999 with claim status.&lt;/strong&gt; A 999 says nothing about whether a claim will be paid, or even whether it reached adjudication. It is a syntax-and-implementation receipt. Claim-level answers live downstream: the 277CA · Claim Acknowledgment reports claim acceptance into the payer's system, and the 835 · Health Care Claim Payment/Advice reports the payment decision. Teams that tell a provider "your claim was accepted" on the strength of a 999 alone are promising something the document never said.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you do with a 999?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Parse it, don't archive it.&lt;/strong&gt; Load IK3/IK4 errors into the same queue your operators already watch. A 999 that lands in a folder is a rejection you chose not to read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Route by verdict.&lt;/strong&gt; Accepted flows forward untouched. Accepted-with-errors flows forward &lt;em&gt;and&lt;/em&gt; opens a fix task. Rejected stops the affected transaction — and only that transaction — from being treated as delivered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Feed errors back to the map, not just the file.&lt;/strong&gt; An IK4 pointing at one claim is a data problem. The same IK4 across forty claims is a mapping problem. Count by error code and segment before you count by claim.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the pair together.&lt;/strong&gt; Retain each outbound group with its 999 for as long as you retain the claim itself. In a dispute about what was sent and when, the 999 is the receiver's own signed statement of what arrived.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is a 999 required for healthcare EDI?&lt;/strong&gt;&lt;br&gt;
For HIPAA-covered transactions such as the 837 · Health Care Claim, the 999 is the acknowledgment specified by the implementation guides, and most clearinghouses and payers return it in place of the 997. Whether you receive one — and how fast — is set in your trading partner agreement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can one 999 cover several files?&lt;/strong&gt;&lt;br&gt;
No. One 999 acknowledges one functional group. A file with three groups should produce three 999s, and a missing third 999 means that group is unacknowledged, not accepted.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does "accepted with errors" mean for payment?&lt;/strong&gt;&lt;br&gt;
By itself, nothing. It means the receiver accepted the transaction despite implementation errors. Whether those errors affect adjudication depends on what they are — which is exactly what the IK3/IK4 detail is for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How is the 999 different from the 277CA?&lt;/strong&gt;&lt;br&gt;
The 999 judges the file's construction against the implementation guide. The 277CA reports whether individual claims were accepted into the payer's adjudication system. You need both: a clean 999 with a rejecting 277CA still means the claim is going nowhere.&lt;/p&gt;




&lt;p&gt;Getting acknowledgments parsed, matched, and routed — instead of archived and forgotten — is a large part of what we built &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-21" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt; to handle. I'm Chris, founder of SignalEDI — if your 999s currently land in a folder nobody reads, I'd genuinely like to hear what your error queue looks like today.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>healthcare</category>
    </item>
    <item>
      <title>The EDIFACT DESADV, Decoded: The Despatch Advice Is Where the Shipment Stops Being a Plan</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:26:31 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edifact-desadv-decoded-the-despatch-advice-is-where-the-shipment-stops-being-a-plan-1je9</link>
      <guid>https://dev.to/challan116ux/the-edifact-desadv-decoded-the-despatch-advice-is-where-the-shipment-stops-being-a-plan-1je9</guid>
      <description>&lt;p&gt;Short answer: the DESADV (Despatch Advice) is the EDIFACT message a supplier sends when goods actually leave — it is the EDIFACT counterpart of the X12 856 · Ship Notice / ASN. An ORDERS message says what the buyer wants; a DESADV says what physically shipped, in which packages, under which identifiers. If the DESADV disagrees with the truck, the receiving dock — not your system — finds out first.&lt;/p&gt;

&lt;p&gt;I build EDI tooling for a living, and DESADV is the message where European supply chains quietly succeed or fail. Here is how it actually works on the wire.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does a DESADV contain?
&lt;/h2&gt;

&lt;p&gt;A DESADV is built from a small set of segments that repeat in a strict hierarchy:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UNH/UNT&lt;/strong&gt; — the message envelope: reference number, message type (DESADV), version (commonly D.96A or D.01B), and the segment count plus control reference that must match at the tail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BGM&lt;/strong&gt; — the document identity: &lt;code&gt;BGM+351+DA-88412+9'&lt;/code&gt; declares a despatch advice (code 351) with the sender's despatch number. Receivers key their goods-receipt posting off this number, so it must be unique per despatch — reusing it is the EDIFACT equivalent of sending two different 856 · Ship Notice / ASN files with the same shipment ID.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DTM&lt;/strong&gt; — dates that matter: despatch date/time (DTM+11), estimated delivery (DTM+17). Format qualifiers in the 102/203/204 family decide whether the receiver reads your date as a date or as noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NAD&lt;/strong&gt; — the parties: NAD+BY (buyer), NAD+SU (supplier), NAD+DP (delivery party). The GLNs in these segments are how the receiver's system routes the advice to the right warehouse; a wrong delivery-party GLN sends your ASN to a building that is not expecting your truck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CPS&lt;/strong&gt; — the consignment packaging structure: this is the hierarchy. CPS segments nest shipments into packages, and the PAC/PCI/GIN segments under each CPS describe the packaging and carry the SSCC (Serial Shipping Container Code) — the licence plate the dock scans.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why is the hierarchy the hard part?
&lt;/h2&gt;

&lt;p&gt;In a flat message, a line item is a line item. In a DESADV, every LIN (line item) hangs under a CPS node, which means the message asserts a physical claim: &lt;em&gt;these items are in this box, this box is on this pallet.&lt;/em&gt; Retailers and automotive receivers validate that claim mechanically:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Every SSCC in PCI/GIN must be unique within the message and check-digit valid.&lt;/li&gt;
&lt;li&gt;The quantities across the CPS tree must sum to the shipped quantities on each LIN — no more, no less.&lt;/li&gt;
&lt;li&gt;The packaging counts in PAC must match the number of CPS children that claim that level.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When any of these fail, the receiver does not send you a friendly email. You get a CONTRL (the EDIFACT syntax acknowledgment) if the file is malformed, or an APERAK (application error message) if it parsed but the content was wrong — or, worst of all, silence plus a chargeback when the goods arrive and the dock cannot match them to an advice.&lt;/p&gt;

&lt;p&gt;That is the same failure shape as an X12 ASN rejected after the 997 · Functional Acknowledgment already said "accepted": syntax acceptance is not business acceptance. The DESADV equivalent of the 997 only proves the envelope opened.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks most often in production?
&lt;/h2&gt;

&lt;p&gt;Three things, in our experience:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Version drift.&lt;/strong&gt; A partner certifies on D.96A, then their ERP upgrade quietly starts emitting D.01B segment order. Your map "works" in testing because the test file was last year's. Pin the version per partner, and treat a UNH version change as a breaking API change — because it is one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SSCC reuse.&lt;/strong&gt; Warehouse systems that generate SSCCs from a local counter collide after a restore or a site migration. The receiver sees a duplicate licence plate and rejects the whole consignment, not just the pallet. Generate SSCCs from a single durable sequence, and never recycle one inside the retention window your partners scan against.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quantity truth.&lt;/strong&gt; The DESADV is often generated from the order or the pick plan instead of the actual pick. Short-pick one case and the advice overstates the shipment; the receiver books goods receipt against the DESADV, then the invoice (INVOIC, the counterpart of the 810 · Invoice) matches the advice instead of the shelf — and now finance owns a logistics bug. Generate the DESADV from the confirmed pick, after the pallet is wrapped, not before.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should you test a DESADV flow?
&lt;/h2&gt;

&lt;p&gt;Test the tree, not the segments. A file where every segment is individually valid but the CPS counts disagree with the LIN quantities is the most common real-world failure, and segment-level validators wave it through. Your test set needs at least: a single-package shipment, a multi-pallet mixed shipment, a short-pick, and a duplicate-SSCC negative case that must fail loudly on your side before it ever leaves.&lt;/p&gt;

&lt;p&gt;If you are bridging worlds — say your ERP thinks in X12 because your US partners do — remember the DESADV and the 856 · Ship Notice / ASN carry the same business truth in different grammars. Map the hierarchy first and the segments second; teams that map segment-by-segment produce flat ASNs and nested DESADVs that quietly drop the pallet level.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Is DESADV the same as an ASN?&lt;/strong&gt; Yes in purpose: DESADV is the EDIFACT despatch advice; the ASN is the X12 856 · Ship Notice / ASN. Both announce a shipment with package-level detail before arrival.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What acknowledges a DESADV?&lt;/strong&gt; CONTRL for syntax, APERAK for application-level errors. Neither confirms the goods matched — only goods receipt at the dock does that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which segment carries the SSCC?&lt;/strong&gt; The GIN segment under PCI at each packaging level of the CPS hierarchy.&lt;/p&gt;




&lt;p&gt;We handle DESADV and 856 traffic side by side at &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-20" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt;, including the hierarchy validation that catches count mismatches before a partner does. I'm Chris, founder of SignalEDI — if your despatch advices keep passing syntax and failing docks, the tree is where I'd look first.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDI 211, Decoded: A Bill of Lading Is the One Document the Carrier, the Shipper, and the Court All Read</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Thu, 19 Nov 2026 14:27:04 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edi-211-decoded-a-bill-of-lading-is-the-one-document-the-carrier-the-shipper-and-the-court-28gg</link>
      <guid>https://dev.to/challan116ux/the-edi-211-decoded-a-bill-of-lading-is-the-one-document-the-carrier-the-shipper-and-the-court-28gg</guid>
      <description>&lt;p&gt;Short answer: the 211 · Motor Carrier Bill of Lading is the contract of carriage created at pickup. It names who shipped what, in what quantity and condition, to whom, under what terms — and it is the document every later message in the freight chain is judged against. The 204 · Motor Carrier Load Tender offers the load, the 990 · Response to a Load Tender accepts or declines it, and the 211 is what actually got signed when the trailer was loaded. When the 211 disagrees with the tender, the shipment, or the freight bill, the dispute is rarely about technology. It is about which version of the truth was written down at the dock.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does a 211 actually carry?
&lt;/h2&gt;

&lt;p&gt;At its core a 211 states the shipper, the carrier, the consignee, the pickup and delivery details, and — line by line — the freight itself: description, quantity, weight, packaging, and any hazardous-materials or special-handling notes. Three details do most of the work:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The bill of lading number.&lt;/strong&gt; This is the reference the whole chain keys on. The 214 · Transportation Carrier Shipment Status Message reports against it, the 210 · Motor Carrier Freight Details and Invoice bills against it, and a claim is filed against it. Reuse it, mistype it, or let the carrier assign a different one at pickup without updating your system, and every downstream match gets harder.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quantity, weight, and description as loaded — not as ordered.&lt;/strong&gt; A 211 written from the order instead of the dock count is a fiction with a signature on it. If ten pallets were tendered and nine were loaded, the 211 must say nine. Billing, rating, and delivery disputes all start from what this document claims left the building.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terms and condition notations.&lt;/strong&gt; Prepaid or collect, third-party billing, accessorials requested at pickup, and — critically — any exception noted at loading or delivery ("shipper load and count", damaged packaging, short count). A clean signature and a noted exception are different legal and financial outcomes, and the 211 is where that difference is recorded.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where do 211 programs break?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The tender and the bill of lading quietly diverge.&lt;/strong&gt; The 204 said one weight, one appointment, one set of accessorials. The dock did something slightly different, and nobody updated anything. The carrier rates and bills from the 211; the shipper audits from the 204; the 210 · Freight Invoice then matches neither side's expectation cleanly, and the difference becomes a deduction argument instead of a data fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Paper at the dock, EDI in the office.&lt;/strong&gt; Many docks still produce a paper bill of lading that a driver signs, while the office system generates the 211 from order data hours later. Those two documents can disagree on count, weight, or reference numbers — and in a claim, the signed paper is usually the one that counts. The fix is boring: generate the document from the same loaded-shipment record the dock confirms, and reconcile exceptions the same day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exceptions that never make it into the system.&lt;/strong&gt; A receiver notes a shortage or damage on delivery, the driver brings back the signed copy, and it sits in a tray. Weeks later the consignee files a claim or short-pays the freight bill, and the first anyone in the office hears of the exception is the deduction. An exception on a 211 is a message — it needs the same routing discipline as any inbound EDI document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Duplicate bills of lading after a reprint.&lt;/strong&gt; A printer jam or a lost original tempts a fresh document with a fresh number for the same load. Now two live bills of lading exist for one shipment, and status, billing, and claims can attach to either. Reprints should carry the original number and be marked as duplicates, never silently renumbered.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sane 211 checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create the 211 from the loaded shipment, confirmed at the dock — never copied forward from the order or the tender.&lt;/li&gt;
&lt;li&gt;Keep the bill of lading number unique per shipment, stable across reprints, and identical in your system, the carrier's, and the signed copy.&lt;/li&gt;
&lt;li&gt;Record accessorials requested at pickup on the document itself, so the 210 can be audited against an agreement instead of a memory.&lt;/li&gt;
&lt;li&gt;Route delivery exceptions into the same queue as inbound EDI the day they are signed, not when the claim arrives.&lt;/li&gt;
&lt;li&gt;Match the 210 against the 211 and the accepted 204 before paying: tender says what was offered, the 211 says what moved, the invoice should bill only what both support.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between a 204 and a 211?&lt;/strong&gt; The 204 · Motor Carrier Load Tender is the offer: a shipper asking a carrier to move a load on stated terms, which the carrier accepts or declines with a 990. The 211 · Motor Carrier Bill of Lading is created at pickup for the load that actually moves — it is the contract of carriage and the receipt for the freight as loaded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is a 211 a legal document?&lt;/strong&gt; Yes. A bill of lading is simultaneously a receipt for the goods, evidence of the contract of carriage, and — in its negotiable forms — a document of title. That is why count, weight, and exception notations on it carry weight that a status message or an invoice never will.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why did the freight bill not match the shipment?&lt;/strong&gt; The usual causes are a 211 written from order data instead of dock data, a renumbered reprint, or accessorials performed but never recorded at pickup. Compare the 210 line by line against the 211 first, then against the accepted tender — the leg that disagrees is where the process broke.&lt;/p&gt;

&lt;p&gt;The 211 will never be the glamorous document in the chain. It is simply the one written at the moment the freight actually changed hands — which is exactly why, when every other message disagrees, it is the one everyone reaches for.&lt;/p&gt;

&lt;p&gt;— Chris, founder of &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-19" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt;, where we handle X12 freight, order, and invoice documents for SMB shippers and their partners.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDI 880, Decoded: A Grocery Invoice Is Judged Line by Line, Allowance by Allowance</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Wed, 18 Nov 2026 14:27:10 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edi-880-decoded-a-grocery-invoice-is-judged-line-by-line-allowance-by-allowance-54k3</link>
      <guid>https://dev.to/challan116ux/the-edi-880-decoded-a-grocery-invoice-is-judged-line-by-line-allowance-by-allowance-54k3</guid>
      <description>&lt;p&gt;Short answer: the 880 · Grocery Products Invoice is how a grocery supplier bills a retailer for food and consumer products — and it is not just an 810 · Invoice with UPCs. The 880 carries grocery-specific pricing, allowances, and item detail that a grocery receiver checks before payment. When an 880 disagrees with the 875 · Grocery Products Purchase Order, the receiving agreement, or the shipment that actually arrived, payment shrinks or stalls — usually as a deduction the supplier only learns about weeks later.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does an 880 actually carry?
&lt;/h2&gt;

&lt;p&gt;At its core an 880 states who is billing whom, for which order and shipment, and — line by line — what was shipped, in what quantity and unit, at what price, with which allowances and charges. Grocery adds wrinkles a general invoice does not have to carry as carefully:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Item identity by UPC/GTIN and buyer item number.&lt;/strong&gt; Grocery item files are large and change often. If your 880 prices a case under a UPC the retailer has already replaced, the line will not match their item file — and an unmatched line is an unpaid line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quantity and unit of measure.&lt;/strong&gt; Eaches, cases, and inner packs are not interchangeable. A price that is correct per case reads as wildly wrong when the receiver expects eaches, and the math fails on every line at once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Allowances and charges, stated explicitly.&lt;/strong&gt; Grocery trading runs on allowances — promotional, pallet, freight, and handling arrangements agreed in advance. An allowance that was agreed verbally but never appears correctly on the 880 will not be honored the way you expect; an allowance you apply that was never agreed will be reversed as a deduction.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where do 880 programs break?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Price drift from the 832 · Price/Sales Catalog.&lt;/strong&gt; The catalog is the contract every order gets judged against. If a cost change goes live in your system but the retailer's 832 file still holds the old price, every 880 you send at the new price mismatches — systematically, not occasionally.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Shipping a short case and billing a full one.&lt;/strong&gt; The 880 must bill what shipped, not what was ordered. When the warehouse shorts a line and billing still copies the 875 quantities, the receiver's three-way match — order, receipt, invoice — fails on exactly the lines you can least afford to re-argue.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Duplicate invoices after a resend.&lt;/strong&gt; A transmission failure tempts a resend. If the first 880 actually arrived, the second is a duplicate billing for the same shipment. Receivers deduplicate by invoice number and shipment reference; reusing or changing those references carelessly turns a resend into an apparent double bill.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tax and deposit handling guessed per retailer.&lt;/strong&gt; Bottle deposits, taxes, and fees vary by jurisdiction and retailer guide. Copying one retailer's treatment into another's 880 is a quiet, recurring deduction source.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sane 880 checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Bill shipped quantities, never ordered quantities, and reconcile against the shipment before sending.&lt;/li&gt;
&lt;li&gt;Diff your billed prices against the last accepted 832 · Price/Sales Catalog for that retailer — weekly, not at month-end.&lt;/li&gt;
&lt;li&gt;State every agreed allowance explicitly; apply none that were not agreed.&lt;/li&gt;
&lt;li&gt;Keep invoice numbers unique per shipment and make resends reference the original, so a retry never reads as a second bill.&lt;/li&gt;
&lt;li&gt;Read every 820 · Payment Order/Remittance Advice and 812 · Credit/Debit Adjustment that comes back: they are the graded copy of your 880.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently asked questions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the difference between an 810 and an 880?&lt;/strong&gt; The 810 · Invoice is the general-purpose invoice across industries. The 880 · Grocery Products Invoice is the grocery-specific invoice, shaped for grocery item, pricing, and allowance practice, and normally answers an 875 · Grocery Products Purchase Order instead of an 850 · Purchase Order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What should an 880 match before it is sent?&lt;/strong&gt; Three things: the order (875), the shipment as actually picked and received, and the current price catalog (832). If any leg disagrees, fix the source — do not adjust the invoice to force a match.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why was an 880 paid short?&lt;/strong&gt; The common causes are price mismatches against the catalog, quantity mismatches against receipt, and allowances applied differently than agreed. The remittance advice states the reason; treat each short-pay as a defect report, not a finance dispute.&lt;/p&gt;

&lt;p&gt;The 880 will never be the document anyone celebrates. It is simply where grocery work turns into money — or into deductions. Bill what shipped, at the catalog price, with the allowances you actually agreed, and it quietly does its job.&lt;/p&gt;

&lt;p&gt;— Chris, founder of &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-18" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt;, where we handle X12 grocery, order, and shipping documents for SMB suppliers.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
    <item>
      <title>The EDI 846, Decoded: Inventory Advice Is a Promise You Have to Keep</title>
      <dc:creator>challan116-ux</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:26:41 +0000</pubDate>
      <link>https://dev.to/challan116ux/the-edi-846-decoded-inventory-advice-is-a-promise-you-have-to-keep-h4i</link>
      <guid>https://dev.to/challan116ux/the-edi-846-decoded-inventory-advice-is-a-promise-you-have-to-keep-h4i</guid>
      <description>&lt;p&gt;Short answer: the 846 · Inventory Inquiry/Advice is how a supplier tells a retailer or distributor what it can actually sell — quantities available, on order, and sometimes allocated — without taking an order. It looks like the simplest document in the set. It causes outsized damage when it is wrong, because every downstream decision — a retailer's replenishment, a marketplace listing, a drop-ship promise — is built on numbers you published.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the 846 actually carries
&lt;/h2&gt;

&lt;p&gt;An 846 is a snapshot, not a feed of record. Its core is the LIN loop identifying the item (usually by UPC/GTIN or buyer item number) and QTY segments stating quantities by type: quantity on hand, quantity available to sell, quantity on order, quantity committed. The qualifiers are the whole document. "Available" that includes stock already allocated to another channel is not available — it is double-promised.&lt;/p&gt;

&lt;p&gt;Three fields decide whether an 846 helps or hurts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The quantity qualifier.&lt;/strong&gt; On-hand, available-to-promise, and in-transit are different numbers with different meanings. Sending on-hand where the partner expects available is how oversells are manufactured.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The timestamp.&lt;/strong&gt; An 846 without a clear as-of time invites the receiver to treat a stale snapshot as live truth. Partners schedule their reads around your cadence — publish that cadence and keep it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The item identity.&lt;/strong&gt; If your LIN uses a different identifier than the partner's item file, the inventory lands on the wrong SKU silently. No error, no rejection — just stock shown for an item you do not carry and zero for the one you do.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where 846 programs break
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cadence drift.&lt;/strong&gt; The agreement says hourly; the job quietly runs daily after an infrastructure change. Nothing errors. The retailer's system keeps ordering against yesterday's numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Returns counted too early.&lt;/strong&gt; Stock that is back in the building but not yet inspected is not sellable. Counting it at dock receipt inflates available quantity by exactly the units most likely to fail inspection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Kit and case breaks.&lt;/strong&gt; If you sell eaches but report cases (or the reverse), the partner's math is off by the pack factor on every line. Unit-of-measure mismatches are the single most common silent 846 defect I see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero is a value, not an omission.&lt;/strong&gt; Dropping an item from the file when it hits zero stock reads to many receivers as "no change," not "none left." Send the explicit zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sane 846 checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Reconcile available = on hand − allocated − safety stock, in that order, every cycle.&lt;/li&gt;
&lt;li&gt;Send explicit zeros; never silently drop SKUs.&lt;/li&gt;
&lt;li&gt;Keep the identifier, unit of measure, and pack size identical to the partner's item file — and diff them weekly.&lt;/li&gt;
&lt;li&gt;Timestamp every file and monitor your own publish cadence like an SLA.&lt;/li&gt;
&lt;li&gt;Treat a sudden available-quantity jump as a bug until proven otherwise; real inventory rarely teleports.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 846 will never get the attention the 850 · Purchase Order or 856 · Ship Notice/ASN gets. That is precisely why it rots. It is a promise published on a schedule — keep it accurate, keep it on time, and it quietly prevents the angriest class of partner conversations: the ones that start with "your feed said you had it."&lt;/p&gt;

&lt;p&gt;— Chris, founder of &lt;a href="https://signaledi.com?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-11-17" rel="noopener noreferrer"&gt;SignalEDI&lt;/a&gt;, where we handle X12 inventory, order, and shipping documents for SMB suppliers.&lt;/p&gt;

</description>
      <category>edi</category>
      <category>api</category>
      <category>integration</category>
      <category>supplychain</category>
    </item>
  </channel>
</rss>
