Stedi maintains this guide based on public documentation from American Association of Railroads (AAR). Contact American Association of Railroads (AAR) for official EDI specifications. To report any errors in this guide, please contact us.
X12 824 Application Advice
—
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
detail
OTI Loop Transaction Set Accept
OTI
0100
Original Transaction Identification
Max use 1
Required
REF
0200
Reference Information Interchange Train Identification
Max use 1
Required
REF
0200
Reference Information Section Number
Max use 1
Required
DTM
0300
Date/Time Reference
Max use 1
Required
DTM
0300
Date/Time Reference Tenant Train Departure
Max use 1
Required
OTI Loop Transaction Set Reject
OTI
0100
Original Transaction Identification
Max use 1
Required
REF
0200
Reference Information Interchange Train Identification
Max use 1
Required
REF
0200
Reference Information Section Number
Max use 1
Required
DTM
0300
Date/Time Reference
Max use 1
Required
DTM
0300
Date/Time Reference Tenant Train Departure
Max use 1
Optional
SE
0900
Transaction Set Trailer
Max use 1
Required
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- 00801
- 00801 Standards Approved for Publication by ASC X12 Procedures Review Board through December 2019
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
- 2
- Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors"
- 3
- Interchange Acknowledgment Requested only when Interchange is "Rejected Because Of Errors" or "Accepted but Errors are Noted"
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
Heading end
Detail
OTI Loop Transaction Set Accept
RequiredMax >1
Variants (one may be used)
OTI Loop Transaction Set RejectOTI
0100
Detail > OTI Loop Transaction Set Accept > OTI
Original Transaction Identification
RequiredMax use 1
—
Example
If Transaction Set Control Number (OTI-09) is present, then Group Control Number (OTI-08) is required
REF
0200
Detail > OTI Loop Transaction Set Accept > REF
Reference Information Interchange Train Identification
RequiredMax use >1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Section NumberREF
0200
Detail > OTI Loop Transaction Set Accept > REF
Reference Information Section Number
RequiredMax use 1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Interchange Train IdentificationDTM
0300
Detail > OTI Loop Transaction Set Accept > DTM
Date/Time Reference
RequiredMax use 1
—
Example
Variants (all may be used)
DTMDate/Time Reference Tenant Train DepartureDTM
0300
Detail > OTI Loop Transaction Set Accept > DTM
Date/Time Reference Tenant Train Departure
RequiredMax use >1
—
Example
Variants (all may be used)
DTMDate/Time ReferenceOTI Loop Transaction Set Accept end
OTI Loop Transaction Set Reject
RequiredMax 1
Variants (one may be used)
OTI Loop Transaction Set AcceptOTI
0100
Detail > OTI Loop Transaction Set Reject > OTI
Original Transaction Identification
RequiredMax use 1
—
Example
If Transaction Set Control Number (OTI-09) is present, then Group Control Number (OTI-08) is required
—
- SPL
- Standard Point Location Code (SPLC)
REF
0200
Detail > OTI Loop Transaction Set Reject > REF
Reference Information Interchange Train Identification
RequiredMax use >1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Section NumberREF
0200
Detail > OTI Loop Transaction Set Reject > REF
Reference Information Section Number
RequiredMax use 1
—
Usage notes
—
Example
Variants (all may be used)
REFReference Information Interchange Train IdentificationDTM
0300
Detail > OTI Loop Transaction Set Reject > DTM
Date/Time Reference
RequiredMax use 1
—
Example
Variants (all may be used)
DTMDate/Time Reference Tenant Train DepartureDTM
0300
Detail > OTI Loop Transaction Set Reject > DTM
Date/Time Reference Tenant Train Departure
OptionalMax use >1
—
Example
Variants (all may be used)
DTMDate/Time ReferenceTED Loop
RequiredMax >1
TED
0700
Detail > OTI Loop Transaction Set Reject > TED Loop > TED
Technical Error Description
RequiredMax use 1
—
Example
OptionalMax use 1
Code indicating the relative position of the simple data element or composite data structure in error within a segment, count beginning with 1 for the position immediately following the segment ID; additionally indicating the relative position of a repeating structure in error, count beginning with 1 for the position immediately following the preceding element separator; additionally indicating the relative position of a component of a composite data structure in error, count beginning with 1 for the position following the preceding element or repetition separator
OptionalMax use 1
To hold the reference number of a data element and optionally a component data element within a composite
TED Loop end
OTI Loop Transaction Set Reject end
Detail end
EDI Samples
Sample 1 (TA - Acceptance)
ISA*00* *00* *02*UP *02*BNSF *200718*0017*U*00705*955094144*0*P*~
GS*TR*UP*BNSF*20200718*0017*000091583*X*008010
ST*EDI 824*915830001
BGN*00*EDI 161*20200718*0017
OTI*TA*SPL*684884***20200718*0016*148756886*568860001
REF*7W*YGAT284418*YTNNSJ
REF*UQ*1
DTM*TTD*20200718
DTM*HTD*20200719
SE*8*915830001
GE*1*000091583
IEA*1*955094144
GS*TR*UP*BNSF*20200718*0017*000091583*X*008010
ST*EDI 824*915830001
BGN*00*EDI 161*20200718*0017
OTI*TA*SPL*684884***20200718*0016*148756886*568860001
REF*7W*YGAT284418*YTNNSJ
REF*UQ*1
DTM*TTD*20200718
DTM*HTD*20200719
SE*8*915830001
GE*1*000091583
IEA*1*955094144
Sample 2 (TR - Rejection)
ISA*00* *00* *02*UP *02*BNSF *200718*0005*U*00705*955087261*0*P*~
GS*TR*UP*BNSF*20200718*0005*000091582*X*008010
ST*EDI 824*915820001
BGN*00*EDI 161*20200718*0005
OTI*TR*SPL*876158***20200718*0004*148756768*567680001
REF*7W*HVAWBAK117*KEDEPA
REF*UQ*1
DTM*TTD*20200717
DTM*HTD*20200717
TED*006*DUPLICATE*BTS*3*13*373*200717
TED*006*DUPLICATE*BTS*3*15*1470*1
TED*006*DUPLICATE*BTS*3*14*41*KEDEPA
SE*11*915820001
GE*1*000091582
IEA*1*955087261
GS*TR*UP*BNSF*20200718*0005*000091582*X*008010
ST*EDI 824*915820001
BGN*00*EDI 161*20200718*0005
OTI*TR*SPL*876158***20200718*0004*148756768*567680001
REF*7W*HVAWBAK117*KEDEPA
REF*UQ*1
DTM*TTD*20200717
DTM*HTD*20200717
TED*006*DUPLICATE*BTS*3*13*373*200717
TED*006*DUPLICATE*BTS*3*15*1470*1
TED*006*DUPLICATE*BTS*3*14*41*KEDEPA
SE*11*915820001
GE*1*000091582
IEA*1*955087261
Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.