Stedi maintains this guide based on public documentation from Rural King. Contact Rural King for official EDI specifications. To report any errors in this guide, please contact us.
X12 812 Credit/Debit Adjustment
—
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
heading
ST
0100
Transaction Set Header
Max use 1
Required
BCD
0200
Beginning Credit/Debit Adjustment
Max use 1
Required
CUR
0300
Currency
Max use 1
Optional
N9
0400
Extended Reference Information
Max use 5
Required
ITD
0600
Terms of Sale/Deferred Terms of Sale
Max use 1
Optional
SAC
0970
Service, Promotion, Allowance, or Charge Information
Max use 1
Optional
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)
—
- 00501
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
—
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
—
- I
- Information
- P
- Production Data
- T
- Test Data
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
—
- 1X
- Credit or Debit Adjustment Number
- PD
- Promotion/Deal Number
SAC
0970
Heading > SAC
Service, Promotion, Allowance, or Charge Information
OptionalMax use >1
—
Example
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
N1 Loop
RequiredMax 1
N1
1000
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Example
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
N1 Loop end
Heading end
Detail
CDD Loop
RequiredMax >1
CDD
1600
Detail > CDD Loop > CDD
Credit/Debit Adjustment Detail
RequiredMax use 1
—
Example
If either Credit/Debit Quantity (CDD-07) or Unit or Basis for Measurement Code (CDD-08) is present, then the other is required
If Credit/Debit Quantity (CDD-07) is present, then Unit Price (CDD-11) is required
If either Price Identifier Code (CDD-10) or Unit Price (CDD-11) is present, then the other is required
—
- 01
- Pricing Error
- 06
- Quantity Contested
- 10
- Pallet/Container Charge Error
- 11
- Returns - Damage
- 54
- Freight Deducted
- 55
- Tax Deducted
- 57
- Volume Discount Taken
- 79
- Cooperative Advertising
- 81
- Credit as Agreed
- 82
- Defective Allowance
- 88
- Duty Charge Variance
- 98
- Labor Charges
- A3
- New Store Allowance
- A5
- Overage
- A8
- Promotional Allowance
- B2
- Rebate
- B6
- Repay Discount
- BE
- Fixture Allowance
- E5
- Invoice Price Protection
- E7
- Goods and Services Tax Decreased Due to Billing Error
- GA
- Free Goods
- GE
- Slotting Charge
- IA
- Invoice Amount Does Not Match Account Analysis Statement
- L7
- Miscellaneous Deductions
- L8
- Miscellaneous Credits
- RB
- Agreed Freight Allowance
- SF
- Shipping and Freight Charge
- WW
- Overpayment Credit
- ZZ
- Mutually Defined
LIN
1700
Detail > CDD Loop > LIN
Item Identification
RequiredMax use 1
—
Usage notes
—
Example
If either Product/Service ID Qualifier (LIN-04) or Product/Service ID (LIN-05) is present, then the other is required
If either Product/Service ID Qualifier (LIN-06) or Product/Service ID (LIN-07) is present, then the other is required
N9
2000
Detail > CDD Loop > N9
Extended Reference Information Letters or Notes
RequiredMax use 1
—
Usage notes
—
Example
Variants (all may be used)
N9Extended Reference Information Mutually DefinedN9
2000
Detail > CDD Loop > N9
Extended Reference Information Mutually Defined
OptionalMax use 5
—
Usage notes
—
Example
Variants (all may be used)
N9Extended Reference Information Letters or NotesSAC Loop
OptionalMax >1
SAC
2030
Detail > CDD Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
—
- A122
- Additional Tariff Classifications—
- A310
- Air Express Charge—
- A570
- Beyond Freight Charges—
- B210
- Co-op Credit—
- B720
- Cooperative Advertising/Merchandising Allowance (Performance)—
- B750
- Core Charge
- B950
- Damaged Merchandise—
- C000
- Defective Allowance—
- C010
- Deficit Freight—
- C530
- Duty Charge—
- C750
- Excess Value Fee—
- D170
- Free Goods
- D240
- Freight—
- D350
- Goods and Services Credit Allowance—
- D890
- Installation and Training—
- E190
- Labor Charges
- E565
- Markdown Allowance
- E890
- Ocean Freight
- F050
- Other (See related description)—
- F180
- Pallet—
- F680
- Price Deviation—
- F800
- Promotional Allowance—
- F810
- Promotional Discount—
- F910
- Quantity Discount—
- F970
- Rebate—
- G821
- Shipping
- G960
- Slotting Allowance
- H850
- Tax—
- I090
- Tool Charge—
- I530
- Volume Discount—
- I590
- Warranties
- IDCT
- Improper Documentation—
SAC Loop end
CDD Loop end
Detail end
EDI Samples
Sample from Rural King 1
ST*812*000000005~
BCD*20220101*DMC99SP9999-9-Q/YTL999*H*1016000*C**INV_34567***PO_00012345678**DR*1X*DMC99SP9999-9-Q/YTL99999~
CUR*BY*USD~
N9*IA*12345~
ITD******20220131******Net 30~
N1*ST*Waverly Warehouse*92*896~
N3*1205 West 2nd Street~
N4*Waverly*OH*45690~
CDD*IA*C*****80*EA**UCP*127.000~
LIN*1*IN*999999~
N9*L1*Invoice Cost exceeds PO Cost~
SE*12*000000005~
BCD*20220101*DMC99SP9999-9-Q/YTL999*H*1016000*C**INV_34567***PO_00012345678**DR*1X*DMC99SP9999-9-Q/YTL99999~
CUR*BY*USD~
N9*IA*12345~
ITD******20220131******Net 30~
N1*ST*Waverly Warehouse*92*896~
N3*1205 West 2nd Street~
N4*Waverly*OH*45690~
CDD*IA*C*****80*EA**UCP*127.000~
LIN*1*IN*999999~
N9*L1*Invoice Cost exceeds PO Cost~
SE*12*000000005~
Sample from Rural King 2
ST*812*000000019~
BCD*20220101*CNQPM20220101D999999-9*T*2274*C*****RTV999999**RA*1X*CNQPM20220224D515056-1089409~
CUR*BY*USD~
N9*IA*12345~
ITD******20220131******Net 30~
N1*ST*Rural King, Columbus*92*32~
N3*2985 N National Rd~
N4*Columbus*IN*47201~
CDD*ZZ*C*****6*EA**UCP*3.790~
LIN*1*IN*65370432~
N9*L1*RTV Charge Back~
SE*12*000000019~
BCD*20220101*CNQPM20220101D999999-9*T*2274*C*****RTV999999**RA*1X*CNQPM20220224D515056-1089409~
CUR*BY*USD~
N9*IA*12345~
ITD******20220131******Net 30~
N1*ST*Rural King, Columbus*92*32~
N3*2985 N National Rd~
N4*Columbus*IN*47201~
CDD*ZZ*C*****6*EA**UCP*3.790~
LIN*1*IN*65370432~
N9*L1*RTV Charge Back~
SE*12*000000019~
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.