Plain English Grower Operations
Gate 1: 997 Syntax AckProves only that your file arrived and passed X12 grammar checks.
824 Application AdviceA retailer message tied to a specific document, such as an 810 invoice or 856 advance ship notice (ASN), usually reporting a problem with it.
864 Text MessageFree-text message from the retailer for a person to read, sometimes about a problem with a document you sent, or about compliance, chargeback, or program news.
Daily 824 CheckCheck for 824 OTI*TR rejections every day so you can send a corrected invoice the same day.
Common IssueWhen 824 or 864 messages remain unread in a value-added network (VAN) mailbox, rejected invoices go uncorrected and can pass the retailer's invoice deadline unpaid.
ANSI X12 / UCS Technical Specification
Functional GroupsGS01='FA' (997 Ack), GS01='AG' (824 App Advice), GS01='TX' (864 Text).
997 Status CodesAK1 (Group), AK2 (Set), AK5/AK9 ('A' Accepted, 'E' Accepted With Errors Noted, 'R' Rejected), plus AK9 'P' (Partially Accepted: at least one set rejected). A TA1 acknowledges only the ISA envelope and is requested with ISA14=1. The 999 (Implementation Acknowledgment) is a 5010 set used mostly in healthcare.
824 Error LoopBGN + OTI*TR (Rejected) + OTI03 (Doc#) + TED (Error Code & Message).
864 Message LoopBMG (Text Header) + MIT (Subject ID) + MSG (Free-form message text).
Control & ValidationEach sample line is labeled 997, 824, or 864. The 864 closes with its MSG text.