ANSI X12 essentials

CodeNamePurpose
850Purchase OrderBuyer tells supplier what to ship.
855PO AcknowledgmentSupplier confirms (or rejects) the PO.
856Advance Ship NoticeSupplier tells buyer what's on the truck.
810InvoiceSupplier requests payment.
997Functional AcknowledgmentReceiver confirms the file was syntactically valid.

UN/EDIFACT essentials

MessagePurpose
ORDERSPurchase order.
ORDRSPPurchase order response (acknowledgment).
DESADVDespatch advice (the EDIFACT ASN).
INVOICInvoice.
CONTRLSyntax and service report — the EDIFACT 997.

How a normal cycle looks

  1. Buyer sends an 850 / ORDERS.
  2. Supplier replies with a 997 / CONTRL, then a business 855 / ORDRSP.
  3. Supplier ships, sends a 856 / DESADV.
  4. Supplier invoices with an 810 / INVOIC.

EDIFlux ships parsers for each of the documents above out of the box. Other transaction sets can be added without code changes.