EDI 824 application advice: OTI and TED codes explained
An EDI 824 application advice tells you that a trading partner’s business system checked the content of a document you sent and found it acceptable, wrong, or acceptable with changes. It is transaction set 824 in the X12 standard. A 997 says your file arrived in good shape. An 824 says what the receiving application thought of the data inside it. Reading one comes down to two segments, OTI and TED, and a short list of codes.
What is an EDI 824 application advice?
Stedi’s X12 005010 reference says the 824 reports the results of an application system’s data content edits of transaction sets. It can report acceptance, rejection or “accepted-with-change” for any transaction set.
Walmart’s supplier documentation gives the same purpose. It says edits can be reported in coded or free-form format, at the functional group and transaction set level.
Both sources add a usage warning. The 824 should not be used in place of a transaction set designed as a specific response to another one. For a purchase order, that specific response is the 855. Our EDI 855 guide covers it.
How is an 824 different from a 997?
| Document | What it checks | Typical question |
|---|---|---|
| 997 | Syntax and structure of the file | Did it arrive and parse? |
| 824 | Content edits by the receiving application | Did the data pass the business edits? |
| 855 | The supplier’s answer to a purchase order | Will you fill it, and how? |
Our EDI 997 guide explains the first. A document can pass the syntax check and still fail an application edit. Whether a partner sends an 824 at all, and for which documents, is their choice, so ask for their guide.
What segments does an 824 contain?
Per Stedi’s reference, the main pieces are:
- ST and SE open and close the transaction set. Both are mandatory.
- BGN is the beginning segment. It is mandatory.
- N1 loop is optional and can name the parties.
- OTI loop is mandatory and repeats. It identifies the transaction being acknowledged and carries the result.
- TED loop is optional and repeats inside the OTI loop. It describes an error.
- REF, DTM and others are optional inside the OTI loop, for secondary reference numbers and dates.
Walmart’s page shows its own use. BGN identifies the original file and when it was processed. BGN02 holds the interchange sequence number from the original ISA13, and BGN03 and BGN04 hold the processing date and time. Multiple errors produce multiple OTI loops. That is one partner’s rule, not the whole standard, so read your partner’s guide.
What does the OTI segment tell you?
OTI means Original Transaction Identification. Stedi says its loop is meant to identify the transaction set being acknowledged uniquely, and that the primary reference should go in OTI02 and OTI03. OTI02 is the reference qualifier and OTI03 is the reference itself. In practice, OTI03 is where you look for the order number, invoice number or other key that lets you find your original.
OTI01 is the application acknowledgment code. Stedi’s code list for element 110 groups the codes by the level they apply to:
| Level | Accept | Accept with change | Accept with error | Reject |
|---|---|---|---|---|
| Transaction set | TA | TC | TE | TR |
| Item | IA | IC | IE | IR |
| Functional group | GA | GC | GE | GR |
| Batch | BA | BC | BE | BR |
The same list also has partial accept or reject codes (TP, IP, GP, BP) and hold codes for a transaction set (TH) and a functional group (GH). Stedi describes TH as a transaction set on hold pending further investigation to either accept or reject it.
Walmart’s sample uses BP, “Batch Partial Accept/Reject.” So a partner can use any of these, and you should map the ones yours sends.
What does the TED segment tell you?
TED means Technical Error Description. Stedi says it exists to identify the error and, if feasible, the erroneous segment, data element, or both.
In Walmart’s sample, TED01 is the error condition code. The sample uses 024, “Other Unlisted Reason,” and TED02 is a free-form message of up to 60 characters. An optional NTE segment in the same sample carries longer debugging notes, such as an order number and line number. Stedi adds that a RED segment can supply data related to the error condition in TED01.
Stedi also notes an LM loop, used to identify industry-based or proprietary application error conditions. If your partner uses it, their code list is the only way to decode it.
What should you do when you receive an 824?
- Find the original. Use the reference in OTI02 and OTI03, and the control numbers if the partner supplies them.
- Read the OTI01 code. Accept needs no action. Any other code, including accept with change, partial or hold, needs a person to review.
- Read TED and any notes. They say which segment or element failed, or give free text.
- Fix the source data, then resend if required. Ask your partner whether a corrected document replaces the first or must be sent as a change.
- Keep a log by cause. A short weekly count of 824s by error text shows which customers and fields fail most often.
Frequently asked questions
Is an 824 the same as an 855?
No. The 855 is the supplier’s answer to a purchase order. Stedi and Walmart both say the 824 should not replace a transaction set designed as a specific response.
Does a 997 make an 824 unnecessary?
No. They check different things. A 997 reports on structure. An 824 reports on content edits.
Who sends an 824?
The party whose application edited the data. Which of your documents trigger one is set in the partner’s implementation guide.
Will every partner use the same codes?
No. Error codes and free text vary by partner and version. Treat each partner’s guide as the rule.
Where Dockmend fits
Dockmend is being built to help operations teams spot rejected or flagged documents and put a clear summary in front of the right person to review. It is still being built, and we have not announced support for any EDI network or ERP. Join the waitlist
This guide is general information, not legal or compliance advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.