824 Application Advice

Functional Group ID=AG

Introduction:

This Draft Standard for Trial Use contains the format and establishes the data contents of the Application Advice Transaction Set (824) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide the ability to report the results of an application system's data content edits of transaction sets. The results of editing transaction sets can be reported at the functional group and transaction set level, in either coded or free-form format. It is designed to accommodate the business need of reporting the acceptance, rejection or acceptance with change of any transaction set. The Application Advice should not be used in place of a transaction set designed as a specific response to another transaction set (e.g., purchase order acknowledgment sent in response to a purchase order).

Heading:

	Pos.	Seg.		Req.		Loop	Notes and
	No.	ID	Name	Des.	Max.Use	Repeat	Comments	
M	010	ST	Transaction Set Header	M	1									
M	020	BGN	Beginning Segment	M	1									
			LOOP ID - N1			>1								
	030	N1	Name (Distribution Company)	O	1									
Not Used	040	N2	Additional Name Information	O	2									
Not Used	050	N3	Address Information	O	2									
Not Used	060	N4	Geographic Location	O	1									
Not Used	070	REF	Reference Identification [Account/SD ID]	O	12									
	080	PER	Administrative Communications Contact	O	3									
														
			LOOP ID - N1			>1								
	030	N1	Name (Clearinghouse)	O	1									
Not Used	040	N2	Additional Name Information	O	2									
Not Used	050	N3	Address Information	O	2									
Not Used	060	N4	Geographic Location	O	1									
Not Used	070	REF	Reference Identification [Account/SD ID]	O	12									
	080	PER	Administrative Communications Contact	O	3									
														
			LOOP ID - N1			>1								
	030	N1	Name (Supplier)	O	1									
Not Used	040	N2	Additional Name Information	O	2									
Not Used	050	N3	Address Information	O	2									
Not Used	060	N4	Geographic Location	O	1									
Not Used	070	REF	Reference Identification [Account/SD ID]	O	12									
	080	PER	Administrative Communications Contact	O	1									
														
			LOOP ID - N1			>1								
Not Used	030	N1	Name (Customer)	O	1									
Not Used	040	N2	Additional Name Information	O	2									
Not Used	050	N3	Address Information	O	2									
Not Used	060	N4	Geographic Location	O	1									
Not Used	070	REF	Reference Identification [Account/SD ID]	O	12									
Not Used	070	REF	Reference Identification [Non-Billing Party Account ID]	O	12									
Not Used	080	PER	Administrative Communications Contact	O	1									

Detail:

	Pos.	Seg.		Req.		Loop	Notes and
	No.	ID	Name	Des.	Max.Use	Repeat	Comments	
			LOOP ID - OTI			>1								
M	010	OTI	Original Transaction Identification	M	1		n1							
	020	REF	Reference Identification (Account/SD ID)	O	12		n2							
	020	REF	Reference Identification (Old Account ID)	O	12									
Not Used	030	DTM	Date/Time Reference	O	2		n3							
Not Used	040	PER	Administrative Communications Contact	O	3		n4							
Not Used	050	AMT	Monetary Amount	O	>1		n5							
Not Used	060	QTY	Quantity	O	>1		n6							
Not Used	065	NM1	Individual or Organizational Name	O	9		n7							
			LOOP ID - TED			>1								
	070	TED	Technical Error Description	O	1									
	080	NTE	Note/Special Instruction	O	100									
Not Used	082	RED	Related Data	O	100		n8							
														
			LOOP ID - LM			>1								
Not Used	085	LM	Code Source Information	O	1		n9							
			LOOP ID - LQ			100								
Not Used	086	LQ	Industry Code	M	1									
Not Used	087	RED	Related Data	O	100		n10							
														
M	090	SE	Transaction Set Trailer	M	1									

Transaction Set Notes

1.	The OTI loop is intended to provide a unique identification of the transaction set that is the subject of this application acknowledgment.
2.	The REF segment allows for the provision of secondary reference identification or numbers required to uniquely identify the original transaction set. The primary reference identification or number should be provided in elements OTI02-03.
3.	The DTM segment allows for the provision of date, time, or date and time information required to uniquely identify the original transaction set.
4.	The PER segment should be utilized if administrative communications contact information is important to the unique identification of the original transaction set.
5.	The AMT segment should be utilized if monetary amount information is important to the unique identification of the original transaction set.
6.	The QTY segment should be utilized if quantity information is important to the unique identification of the original transaction set.
7.	The NM1 segment allows for the provision of entity identification information required to uniquely identify the original transaction set.
8.	The RED segment may be used to provide data related to the error condition specified in the associated TED01 element.
9.	The LM loop is used to identify industry-based or proprietary application error conditions.
10.	The RED segment may be used to provide data related to the error condition specified in the associated LQ02 element.

	Segment:	ST Transaction Set Header
	Position:	010
	Loop:
	Level:	Heading
	Usage:	Mandatory
	Max Use:	1
	Purpose:	To indicate the start of a transaction set and to assign a control number
	Syntax Notes:
	Semantic Notes:	1	The transaction set identifier (ST01) is used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
	Comments:
Notes:		Required
	
		ST~824~000000001	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	ST01	143	Transaction Set Identifier Code	M		ID 3/3	
	Code uniquely identifying a Transaction Set	
 	824		Application Advice	
M	ST02	329	Transaction Set Control Number	M		AN 4/9	
	Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set	

	Segment:	BGN Beginning Segment
	Position:	020
	Loop:
	Level:	Heading
	Usage:	Mandatory
	Max Use:	1
	Purpose:	To indicate the beginning of a transaction set
	Syntax Notes:	1	If BGN05 is present, then BGN04 is required.
	Semantic Notes:	1	BGN02 is the transaction set reference number.
		2	BGN03 is the transaction set date.
		3	BGN04 is the transaction set time.
		4	BGN05 is the transaction set time qualifier.
		5	BGN06 is the transaction set reference number of a previously sent transaction affected by the current transaction.
	Comments:
Notes:		Required
	
		BGN~11~200107111230001~20010711~~~~~82	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	BGN01	353	Transaction Set Purpose Code	M		ID 2/2	
	Code identifying purpose of transaction set	
 	11		Response	
M	BGN02	127	Reference Identification	M		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
	A unique transaction identification number assigned by the originator of this transaction.  This number must be unique over time.

Transaction Reference numbers will only contain uppercase letters (A to Z) and digits (0 to 9).  Note that punctuation (spaces, dashes, etc.) must be excluded.	
M	BGN03	373	Date	M		DT 8/8	
	Date expressed as CCYYMMDD	
	The transaction creation date - the date that the data was processed by the sender's application system.	
X	BGN04	337	Time	X		TM 4/8	
	Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)	
X	BGN05	623	Time Code	O		ID 2/2	
	Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time; since + is a restricted character, + and - are substituted by P and M in the codes that follow	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	BGN06	127	Reference Identification	O		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
X	BGN07	640	Transaction Type Code	O		ID 2/2	
	Code specifying the type of transaction	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
M	BGN08	306	Action Code	M		ID 1/2	
	Code indicating type of action	
 	82		Follow Up	
	Indicates that the receiver of the transaction must correct and resend the transaction. 	
 	EV		Evaluate	
	Indicates that the receiver of the transaction must evaluate the error, but the transaction should NOT be resent.	
X	BGN09	786	Security Level Code	O		ID 2/2	
	Code indicating the level of confidentiality assigned by the sender to the information following	
	Refer to 004010 Data Element Dictionary for acceptable code values.	

	Segment:	N1 Name (Distribution Company)
	Position:	030
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	1
	Purpose:	To identify a party by type of organization, name, and code
	Syntax Notes:	1	At least one of N102 or N103 is required.
		2	If either N103 or N104 is present, then the other is required.
	Semantic Notes:
	Comments:	1	This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
		2	N105 and N106 further define the type of entity in N101.
Notes:		Required
	
		N1~8S~Distribution Company NAME~1~007909999~~40	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	N101	98	Entity Identifier Code	M		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	8S		Consumer Service Provider (CSP)	
	Distribution Company (Distribution Company)	
>>	N102	93	Name	X		AN 1/60	
	Free-form name	
	Distribution Company Name	
>>	N103	66	Identification Code Qualifier	X		ID 1/2	
	Code designating the system/method of code structure used for Identification Code (67)	
 	1		D-U-N-S Number, Dun & Bradstreet	
 	9		D-U-N-S+4, D-U-N-S Number with Four Character Suffix	
>>	N104	67	Identification Code	X		AN 2/80	
	Code identifying a party or other code	
	Distribution Company D-U-N-S Number or D-U-N-S + 4 Number	
X	N105	706	Entity Relationship Code	O		ID 2/2	
	Code describing entity relationship	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
D	N106	98	Entity Identifier Code	O		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	40		Receiver	
	Required if Distribution Company is the receiver	
 	41		Submitter	
	Required if Distribution Company is submitter for consolidated bill	

	Segment:	PER Administrative Communications Contact
	Position:	080
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	3
	Purpose:	To identify a person or office to whom administrative communications should be directed
	Syntax Notes:	1	If either PER03 or PER04 is present, then the other is required.
		2	If either PER05 or PER06 is present, then the other is required.
		3	If either PER07 or PER08 is present, then the other is required.
	Semantic Notes:
	Comments:
Notes:		Optional
	
		PER~IC~CONTACT~TE~8005551212~EM~CONTACT@COMPANY.COM	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	PER01	366	Contact Function Code	M		ID 2/2	
	Code identifying the major duty or responsibility of the person or group named	
 	IC		Information Contact	
	Distribution Company Contact to resolve this particular issue	
>>	PER02	93	Name	O		AN 1/60	
	Free-form name	
>>	PER03	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
 	EM		Electronic Mail	
 	TE		Telephone	
>>	PER04	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
D	PER05	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than one contact number	
 	EM		Electronic Mail	
 	TE		Telephone	
D	PER06	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than one contact number	
X	PER07	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than two contact numbers	
 	EM		Electronic Mail	
 	FX		Facsimile	
 	TE		Telephone	
X	PER08	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than two contact numbers	
X	PER09	443	Contact Inquiry Reference	O		AN 1/20	
	Additional reference number or description to clarify a contact number	

	Segment:	N1 Name (Clearinghouse)
	Position:	030
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	1
	Purpose:	To identify a party by type of organization, name, and code
	Syntax Notes:	1	At least one of N102 or N103 is required.
		2	If either N103 or N104 is present, then the other is required.
	Semantic Notes:
	Comments:	1	This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
		2	N105 and N106 further define the type of entity in N101.
Notes:		Required when Submitter or Receiver.
	
		N1~AY~Clearinghouse~1~183529049~~40
N1~AY~Clearinghouse~1~183529049~~41	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	N101	98	Entity Identifier Code	M		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	AY		Clearinghouse	
	Clearinghouse	
>>	N102	93	Name	X		AN 1/60	
	Free-form name	
	Clearinghouse Name	
>>	N103	66	Identification Code Qualifier	X		ID 1/2	
	Code designating the system/method of code structure used for Identification Code (67)	
 	1		D-U-N-S Number, Dun & Bradstreet	
>>	N104	67	Identification Code	X		AN 2/80	
	Code identifying a party or other code	
	Clearinghouse D-U-N-S Number	
X	N105	706	Entity Relationship Code	O		ID 2/2	
	Code describing entity relationship	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
>>	N106	98	Entity Identifier Code	O		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	40		Receiver	
 	41		Submitter	
 	OA		Electronic Return Originator	

	Segment:	PER Administrative Communications Contact
	Position:	080
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	3
	Purpose:	To identify a person or office to whom administrative communications should be directed
	Syntax Notes:	1	If either PER03 or PER04 is present, then the other is required.
		2	If either PER05 or PER06 is present, then the other is required.
		3	If either PER07 or PER08 is present, then the other is required.
	Semantic Notes:
	Comments:
Notes:		Clearinghouse Initiated 824: Optional
Other 824s: Not Used
	
		PER~IC~CONTACT~TE~8005551212~EM~CONTACT@COMPANY.COM	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	PER01	366	Contact Function Code	M		ID 2/2	
	Code identifying the major duty or responsibility of the person or group named	
 	IC		Information Contact	
	Clearinghouse Contact to resolve this particular issue	
>>	PER02	93	Name	O		AN 1/60	
	Free-form name	
>>	PER03	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
 	EM		Electronic Mail	
 	TE		Telephone	
>>	PER04	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
D	PER05	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than one contact number	
 	EM		Electronic Mail	
 	FX		Facsimile	
 	TE		Telephone	
D	PER06	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than one contact number	
D	PER07	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than two contact numbers	
 	EM		Electronic Mail	
 	FX		Facsimile	
 	TE		Telephone	
D	PER08	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than two contact numbers	
X	PER09	443	Contact Inquiry Reference	O		AN 1/20	
	Additional reference number or description to clarify a contact number	

	Segment:	N1 Name (Supplier)
	Position:	030
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	1
	Purpose:	To identify a party by type of organization, name, and code
	Syntax Notes:	1	At least one of N102 or N103 is required.
		2	If either N103 or N104 is present, then the other is required.
	Semantic Notes:
	Comments:	1	This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
		2	N105 and N106 further define the type of entity in N101.
Notes:		Required when sent by Supplier to Distribution Company
Required when sent by Supplier to Clearinghouse
Required when sent by Clearinghouse to Distribution Company only if sent in originating transaction
Required when sent by MCDistribution Company to reject the 810_03 Invoice sent by the Supplier. 
	
		N1~SJ~Supplier NAME~1~183529049~~41	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	N101	98	Entity Identifier Code	M		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	SJ		Service Provider	
	Competitive Retailer (Supplier)	
>>	N102	93	Name	X		AN 1/60	
	Free-form name	
	Supplier Name	
>>	N103	66	Identification Code Qualifier	X		ID 1/2	
	Code designating the system/method of code structure used for Identification Code (67)	
 	1		D-U-N-S Number, Dun & Bradstreet	
 	9		D-U-N-S+4, D-U-N-S Number with Four Character Suffix	
>>	N104	67	Identification Code	X		AN 2/80	
	Code identifying a party or other code	
	Supplier D-U-N-S Number or D-U-N-S + 4 Number	
X	N105	706	Entity Relationship Code	O		ID 2/2	
	Code describing entity relationship	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
D	N106	98	Entity Identifier Code	O		ID 2/3	
	Code identifying an organizational entity, a physical location, property or an individual	
 	40		Receiver	
	Required if Supplier is the receiver.  Only used for MCDistribution Company ESI IDs.  Otherwise not used.	
 	41		Submitter	
	Required if Supplier is the submitter, otherwise not used.	
 	OA		Electronic Return Originator	
	Required when the original 824 from the Supplier is being forwarded on to the Distribution Company from Clearinghouse. (The N106 code will be changed by Clearinghouse only).	

	Segment:	PER Administrative Communications Contact
	Position:	080
	Loop:	N1        Optional
	Level:	Heading
	Usage:	Optional
	Max Use:	1
	Purpose:	To identify a person or office to whom administrative communications should be directed
	Syntax Notes:	1	If either PER03 or PER04 is present, then the other is required.
		2	If either PER05 or PER06 is present, then the other is required.
		3	If either PER07 or PER08 is present, then the other is required.
	Semantic Notes:
	Comments:
Notes:		Clearinghouse Initiated 824: Optional
Other 824s: Not Used
	
		PER~IC~CONTACT~TE~8005551212~EM~CONTACT@COMPANY.COM	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	PER01	366	Contact Function Code	M		ID 2/2	
	Code identifying the major duty or responsibility of the person or group named	
 	IC		Information Contact	
	Clearinghouse Contact to resolve this particular issue	
>>	PER02	93	Name	O		AN 1/60	
	Free-form name	
>>	PER03	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
 	EM		Electronic Mail	
 	TE		Telephone	
>>	PER04	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
D	PER05	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than one contact number	
 	EM		Electronic Mail	
 	FX		Facsimile	
 	TE		Telephone	
D	PER06	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than one contact number	
D	PER07	365	Communication Number Qualifier	X		ID 2/2	
	Code identifying the type of communication number	
	Condition: Required if providing more than two contact numbers	
 	EM		Electronic Mail	
 	FX		Facsimile	
 	TE		Telephone	
D	PER08	364	Communication Number	X		AN 1/80	
	Complete communications number including country or area code when applicable	
	Condition: Required if providing more than two contact numbers	
X	PER09	443	Contact Inquiry Reference	O		AN 1/20	
	Additional reference number or description to clarify a contact number	

	Segment:	OTI Original Transaction Identification
	Position:	010
	Loop:	OTI        Mandatory
	Level:	Detail
	Usage:	Mandatory
	Max Use:	1
	Purpose:	To identify the edited transaction set and the level at which the results of the edit are reported, and to indicate the accepted, rejected, or accepted-with-change edit result
	Syntax Notes:	1	If OTI09 is present, then OTI08 is required.
	Semantic Notes:	1	OTI03 is the primary reference identification or number used to uniquely identify the original transaction set.
		2	OTI06 is the group date.
		3	OTI07 is the group time.
		4	If OTI11 is present, it will contain the version/release under which the original electronic transaction was translated by the receiver.
		5	OTI12 is the purpose of the original transaction set, and is used to assist in its unique identification.
		6	OTI13 is the type of the original transaction set, and is used to assist in its unique identification.
		7	OTI14 is the application type of the original transaction set, and is used to assist in its unique identification.
		8	OTI15 is the type of action indicated or requested by the original transaction set, and is used to assist in its unique identification.
		9	OTI16 is the action requested by the original transaction set, and is used to assist in its unique identification.
		10	OTI17 is the status reason of the original transaction set, and is used to assist in its unique identification.
	Comments:	1	OTI02 contains the qualifier identifying the business transaction from the original business application, and OTI03 will contain the original business application identification.
		2	If used, OTI04 through OTI08 will contain values from the original electronic functional group generated by the sender.
		3	If used, OTI09 through OTI10 will contain values from the original electronic transaction set generated by the sender.
Notes:		Required
	
		OTI~TR~TN~2001010100001~~~~~~~810
OTI~TR~TN~2001010100001~~~~~~~867	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	OTI01	110	Application Acknowledgment Code	M		ID 1/2	
	Code indicating the application system edit results of the business data	
 	IR		Item Reject	
	Indicates an item has been rejected	
 	TE		Transaction Set Accept with Error	
	Used when BGN08 = EV	
 	TP		Transaction Set Partial Accept/Reject	
	Used to reject one or more individual accounts on the transaction.  Valid for 568, 820	
 	TR		Transaction Set Reject	
	Used when BGN08 = 82	
M	OTI02	128	Reference Identification Qualifier	M		ID 2/3	
	Code qualifying the Reference Identification	
 	TN		Transaction Reference Number	
M	OTI03	127	Reference Identification	M		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
	810: This data element is populated from the BIG02 of the 810
867: This data element is populated from the BPT02 of the 867	
X	OTI04	142	Application Sender's Code	O		AN 2/15	
	Code identifying party sending transmission; codes agreed to by trading partners	
X	OTI05	124	Application Receiver's Code	O		AN 2/15	
	Code identifying party receiving transmission; codes agreed to by trading partners	
X	OTI06	373	Date	O		DT 8/8	
	Date expressed as CCYYMMDD	
X	OTI07	337	Time	O		TM 4/8	
	Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)	
X	OTI08	28	Group Control Number	X		N0 1/9	
	Assigned number originated and maintained by the sender	
X	OTI09	329	Transaction Set Control Number	O		AN 4/9	
	Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set	
>>	OTI10	143	Transaction Set Identifier Code	O		ID 3/3	
	Code uniquely identifying a Transaction Set	
	The EDI Transaction Set number of the transaction being responded to.	
 	810		Invoice	
 	867		Product Transfer and Resale Report	
X	OTI11	480	Version / Release / Industry Identifier Code	O		AN 1/12	
	Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI12	353	Transaction Set Purpose Code	O		ID 2/2	
	Code identifying purpose of transaction set	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI13	640	Transaction Type Code	O		ID 2/2	
	Code specifying the type of transaction	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI14	346	Application Type	O		ID 2/2	
	Code identifying an application	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI15	306	Action Code	O		ID 1/2	
	Code indicating type of action	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI16	305	Transaction Handling Code	O		ID 1/2	
	Code designating the action to be taken by all parties	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	OTI17	641	Status Reason Code	O		ID 3/3	
	Code indicating the status reason	
	Refer to 004010 Data Element Dictionary for acceptable code values.	

	Segment:	REF Reference Identification (Account/SD ID)
	Position:	020
	Loop:	OTI        Mandatory
	Level:	Detail
	Usage:	Optional
	Max Use:	12
	Purpose:	To specify identifying information
	Syntax Notes:	1	At least one of REF02 or REF03 is required.
		2	If either C04003 or C04004 is present, then the other is required.
		3	If either C04005 or C04006 is present, then the other is required.
	Semantic Notes:	1	REF04 contains data relating to the value cited in REF02.
	Comments:
Notes:		Required when rejecting a partial 820 (OTI01=TP).
Not used on response to other transactions.
	
		REF~IK~1234950100	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	REF01	128	Reference Identification Qualifier	M		ID 2/3	
	Code qualifying the Reference Identification	
 	11		Account Number	
	Number identifies a telecommunications industry account	
 	Q5		Property Control Number	
>>	REF02	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
	Invoice Number	
	REF03	352	Description	X		AN 1/80	
	A free-form description to clarify the related data elements and their content	
X	REF04	C040	Reference Identifier	O			
	To identify one or more reference numbers or identification numbers as specified by the Reference Qualifier	
X	C04001	128	Reference Identification Qualifier	M		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04002	127	Reference Identification	M		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
X	C04003	128	Reference Identification Qualifier	X		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04004	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
X	C04005	128	Reference Identification Qualifier	X		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04006	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	

	Segment:	REF Reference Identification (Old Account ID)
	Position:	020
	Loop:	OTI        Mandatory
	Level:	Detail
	Usage:	Optional
	Max Use:	12
	Purpose:	To specify identifying information
	Syntax Notes:	1	At least one of REF02 or REF03 is required.
		2	If either C04003 or C04004 is present, then the other is required.
		3	If either C04005 or C04006 is present, then the other is required.
	Semantic Notes:	1	REF04 contains data relating to the value cited in REF02.
	Comments:
Notes:		Required
	
		REF~Q5~~10111111234567890ABCDEFGHIJKLMNOPQRS	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	REF01	128	Reference Identification Qualifier	M		ID 2/3	
	Code qualifying the Reference Identification	
 	45		Old Account Number	
	Identifies accounts being changed	
	Prior Account ID for Customer; used when company changes Account ID for cross reference	
	REF02	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
	Invoice Number	
X	REF03	352	Description	X		AN 1/80	
	A free-form description to clarify the related data elements and their content	
	ESI ID	
X	REF04	C040	Reference Identifier	O			
	To identify one or more reference numbers or identification numbers as specified by the Reference Qualifier	
X	C04001	128	Reference Identification Qualifier	M		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04002	127	Reference Identification	M		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
X	C04003	128	Reference Identification Qualifier	X		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04004	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	
X	C04005	128	Reference Identification Qualifier	X		ID 2/3	
	Code qualifying the Reference Identification	
	Refer to 004010 Data Element Dictionary for acceptable code values.	
X	C04006	127	Reference Identification	X		AN 1/30	
	Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier	

	Segment:	TED Technical Error Description
	Position:	070
	Loop:	TED        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	1
	Purpose:	To identify the error and, if feasible, the erroneous segment, or data element, or both
	Syntax Notes:
	Semantic Notes:
	Comments:	1	If used, TED02 will contain a generic description of the data in error (e.g., part number, date, reference number, etc.).
Notes:		More than one rejection reason code may be sent, by repeating the TED Loop.

Required
	
		TED~848~A76	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	TED01	647	Application Error Condition Code	M		ID 1/3	
	Code indicating application error condition	
 	848		Incorrect Data	
>>	TED02	3	Free Form Message	O		AN 1/60	
	Free-form text	
 	008		Account/SD ID exists but is not active	
 	A13		Other	
	Explanation Required in NTE~ADD.	
 	A76		Account/SD ID Invalid or Not Found	
 	A83		Invalid or Unauthorized Action	
	Information provided was not supported in the Texas SET Standards.	
 	A84		Invalid Relationship	
	Receiver obtained a document from an entity that has not established a relationship with the sender.	
 	ABN		Duplicate Request Received	
 	ABO		Corrected transaction received prior to cancellation or rejection transaction	
 	API		Required information missing	
	Explanation Required in NTE~ADD.  May not be used in place of other, more specific error codes.	
 	CRI		Cross Reference Number Invalid	
	The cross reference number provided on the 810 or 867 Cancel does not match the cross reference number on an open 867.	
 	D76		Common Code ID Invalid or Not Found	
 	DDM		Dates Do Not Match	
	Valid for 810, 867
810: The Service Period Begin and End Dates do not match the same dates on an open 867.
867: The Service Period Dates do not match.  The Service Period End Date from the previous period does not match with the beginning date of current service period.  There is a gap in service periods.  For example, last read was August 27, and the first read was August 30.  	
 	DIV		Date Invalid	
	Use NTE~ADD to further describe the invalid date	
 	I76		Invoice Number Invalid or Missing	
 	INT		Interval Data Invalid or Not Found	
	Valid for 867	
 	MBW		Missed Bill Window	
	Resubmit Charges Next Cycle
Used by Billing Party for consolidated billing
	
 	MRI		Incorrect Meter Role for ID Type	
 	SUM		Sum of details does not equal total	
 	TOU		Incorrect TOU Period	
X	TED03	721	Segment ID Code	O		ID 2/3	
	Code defining the segment ID of the data segment in error (See Appendix A - Number 77)	
X	TED04	719	Segment Position in Transaction Set	O		N0 1/6	
	The numerical count position of this data segment from the start of the transaction set: the transaction set header is count position 1	
X	TED05	722	Element Position in Segment	O		N0 1/2	
	This is used to indicate the relative position of a simple data element, or the relative position of a composite data structure with the relative position of the component within the composite data structure, in error; in the data segment the count starts with 1 for the simple data element or composite data structure immediately following the segment ID	
X	TED06	725	Data Element Reference Number	O		N0 1/4	
	Reference number used to locate the data element in the Data Element Dictionary	
X	TED07	724	Copy of Bad Data Element	O		AN 1/99	
	This is a copy of the data element in error	
X	TED08	961	Data Element New Content	O		AN 1/99	
	New data which has replaced erroneous data	

	Segment:	NTE Note/Special Instruction
	Position:	080
	Loop:	TED        Optional
	Level:	Detail
	Usage:	Optional
	Max Use:	100
	Purpose:	To transmit information in a free-form format, if necessary, for comment or special instruction
	Syntax Notes:
	Semantic Notes:
	Comments:	1	The NTE segment permits free-form information/data which, under ANSI X12 standard implementations, is not machine processable. The use of the NTE segment should therefore be avoided, if at all possible, in an automated environment.
Notes:		Used to further describe the rejection reason code sent in TED02.
	
		Required when TED02 = A13, API, or DIV
	
		NTE~ADD~ACCOUNT NOT FOUND	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
>>	NTE01	363	Note Reference Code	O		ID 3/3	
	Code identifying the functional area or purpose for which the note applies	
 	ADD		Additional Information	
M	NTE02	352	Description	M		AN 1/80	
	A free-form description to clarify the related data elements and their content	
	Rejection Reason Text	

	Segment:	SE Transaction Set Trailer
	Position:	090
	Loop:
	Level:	Detail
	Usage:	Mandatory
	Max Use:	1
	Purpose:	To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
	Syntax Notes:
	Semantic Notes:
	Comments:	1	SE is the last segment of each transaction set.
Notes:		Required
	
		SE~9~000000001	

Data Element Summary
	Ref.	Data	
	Des.	Element	Name	Attributes
M	SE01	96	Number of Included Segments	M		N0 1/10	
	Total number of segments included in a transaction set including ST and SE segments	
M	SE02	329	Transaction Set Control Number	M		AN 4/9	
	Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set