DevToolCase
Sign in Sign in

Read and check an ANSI X12 EDI file

Paste an ANSI X12 interchange (850, 856, 810, 997…): every segment and element named, envelopes, control numbers and counts checked.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

Runs entirely in your browser: nothing you type is sent or stored.

What is ANSI X12?

ANSI ASC X12 is the EDI standard of North America: retailers, carriers, warehouses and health insurers exchange purchase orders (850), ship notices (856), invoices (810) or claims (837) as X12 transaction sets. Version 004010 is still the most used in retail and logistics, 005010 is required in US healthcare.

A file is a series of segments such as BEG*00*SA*PO-458812**20261125~, made of an identifier, elements separated by *, and a terminator, ~ most often. The file is read in your browser: nothing is sent.

The envelopes: ISA, GS and ST

SegmentsRole
ISA … IEAinterchange: sender and receiver IDs with their qualifiers (ISA05 to ISA08), date, control number ISA13, version ISA12, production or test ISA15. IEA01 counts the functional groups.
GS … GEfunctional group: transaction sets of one kind, given by GS01 (PO for purchase orders, SH for ship notices, IN for invoices…), version GS08 such as 004010. GE01 counts the transaction sets.
ST … SEtransaction set: one document, its type in ST01 (850, 856…). SE01 counts its segments, ST and SE included.

Each trailer repeats the control number of its header: ISA13 = IEA02, GS06 = GE02, ST02 = SE02. The viewer checks these numbers and the three counts.

Delimiters come from the ISA segment

The ISA segment always has 106 characters, as its 16 elements have fixed lengths (padded with spaces). This is how a reader finds the delimiters, which vary between partners:

  • the element separator is the 4th character, right after ISA;
  • the component separator is ISA16, the last element;
  • the repetition separator is ISA11 from version 00402 on (^ most often); before, ISA11 is U;
  • the segment terminator is the character right after ISA16, possibly followed by a line break.

X12 and EDIFACT

UN/EDIFACT is the international counterpart of X12, used in Europe. The documents match closely; to read an EDIFACT message, use the EDIFACT viewer.

X12EDIFACTDocument
850ORDERSpurchase order
855ORDRSPpurchase order acknowledgment
860ORDCHGpurchase order change
856DESADVship notice (advance shipping notice)
810INVOICinvoice
846INVRPTinventory report
830DELFORplanning schedule (delivery forecast)
204IFTMINload tender (transport instruction)
214IFTSTAshipment status
997CONTRLfunctional acknowledgment

Acknowledgments: 997, 999 and TA1

The receiver of a functional group answers with a 997 functional acknowledgment: AK1 names the group, AK2 and AK5 accept or reject each transaction set, AK3 and AK4 point at faulty segments and elements, AK9 sums up the group. The 999 implementation acknowledgment, used with 005010 in healthcare, has the same role with IK3, IK4 and IK5.

When ISA14 is 1, the sender also asks for a TA1 segment, which acknowledges the interchange envelope itself.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.