Stedi maintains this guide based on public documentation from Rite Aid. Contact Rite Aid for official EDI specifications. To report any errors in this guide, please
contact us.
Delimiters
- ~ Segment
- * Element
- > Component
- ^ Repetition
Interchange Control Header
RequiredMax use 1
- 00
- No Authorization Information Present (No Meaningful Information in I02)
- 00
- No Security Information Present (No Meaningful Information in I04)
- 01
- Duns (Dun & Bradstreet)
- 02
- SCAC (Standard Carrier Alpha Code)
- 03
- FMC (Federal Maritime Commission)
- 04
- IATA (International Air Transport Association)
- 07
- Global Location Number (GLN)
- 08
- UCC EDI Communications ID (Comm ID)
- 09
- X.121 (CCITT)
- 10
- Department of Defense (DoD) Activity Address Code
- 11
- DEA (Drug Enforcement Administration)
- 12
- Phone (Telephone Companies)
- 13
- UCS Code (The UCS Code is a Code Used for UCS Transmissions; it includes the Area Code and Telephone Number of a Modem; it Does Not Include Punctuation, Blanks or Access Code)
- 14
- Duns Plus Suffix
- 15
- Petroleum Accountants Society of Canada Company Code
- 16
- Duns Number With 4-Character Suffix
- 17
- American Bankers Association (ABA) Transit Routing Number (Including Check Digit, 9 Digit)
- 18
- Association of American Railroads (AAR) Standard Distribution Code
- 19
- EDI Council of Australia (EDICA) Communications ID Number (COMM ID)
- 20
- Health Industry Number (HIN)
- 21
- Integrated Postsecondary Education Data System, or (IPEDS)
- 22
- Federal Interagency Commission on Education, or FICE
- 23
- National Center for Education Statistics Common Core of Data 12-Digit Number for Pre-K-Grade 12 Institutes, or NCES
- 24
- The College Board's Admission Testing Program 4-Digit Code of Postsecondary Institutes, or ATP
- 25
- ACT, Inc. 4-Digit Code of Postsecondary Institutions.
- 26
- Statistics of Canada List of Postsecondary Institutions
- 27
- Carrier Identification Number as assigned by Health Care Financing Administration (HCFA)
- 28
- Fiscal Intermediary Identification Number as assigned by Health Care Financing Administration (HCFA)
- 29
- Medicare Provider and Supplier Identification Number as assigned by Health Care Financing Administration (HCFA)
- 30
- U.S. Federal Tax Identification Number
- 31
- Jurisdiction Identification Number Plus 4 as assigned by the International Association of Industrial Accident Boards and Commissions (IAIABC)
- 32
- U.S. Federal Employer Identification Number (FEIN)
- 33
- National Association of Insurance Commissioners Company Code (NAIC)
- 34
- Medicaid Provider and Supplier Identification Number as assigned by individual State Medicaid Agencies in conjunction with Health Care Financing Administration (HCFA)
- 35
- Statistics Canada Canadian College Student Information System Institution Codes
- 36
- Statistics Canada University Student Information System Institution Codes
- 37
- Society of Property Information Compilers and Analysts
- 38
- The College Board and ACT, Inc. 6-Digit Code List of Secondary Institutions
- AM
- Association Mexicana del Codigo de Producto (AMECOP) Communication ID
- NR
- National Retail Merchants Association (NRMA) - Assigned
- SA
- User Identification Number as assigned by the Safety and Fitness Electronic Records (SAFER) System
- SN
- Standard Address Number
- ZZ
- Mutually Defined
- 01
- Duns (Dun & Bradstreet)
- 02
- SCAC (Standard Carrier Alpha Code)
- 03
- FMC (Federal Maritime Commission)
- 04
- IATA (International Air Transport Association)
- 07
- Global Location Number (GLN)
- 08
- UCC EDI Communications ID (Comm ID)
- 09
- X.121 (CCITT)
- 10
- Department of Defense (DoD) Activity Address Code
- 11
- DEA (Drug Enforcement Administration)
- 12
- Phone (Telephone Companies)
- 13
- UCS Code (The UCS Code is a Code Used for UCS Transmissions; it includes the Area Code and Telephone Number of a Modem; it Does Not Include Punctuation, Blanks or Access Code)
- 14
- Duns Plus Suffix
- 15
- Petroleum Accountants Society of Canada Company Code
- 16
- Duns Number With 4-Character Suffix
- 17
- American Bankers Association (ABA) Transit Routing Number (Including Check Digit, 9 Digit)
- 18
- Association of American Railroads (AAR) Standard Distribution Code
- 19
- EDI Council of Australia (EDICA) Communications ID Number (COMM ID)
- 20
- Health Industry Number (HIN)
- 21
- Integrated Postsecondary Education Data System, or (IPEDS)
- 22
- Federal Interagency Commission on Education, or FICE
- 23
- National Center for Education Statistics Common Core of Data 12-Digit Number for Pre-K-Grade 12 Institutes, or NCES
- 24
- The College Board's Admission Testing Program 4-Digit Code of Postsecondary Institutes, or ATP
- 25
- ACT, Inc. 4-Digit Code of Postsecondary Institutions.
- 26
- Statistics of Canada List of Postsecondary Institutions
- 27
- Carrier Identification Number as assigned by Health Care Financing Administration (HCFA)
- 28
- Fiscal Intermediary Identification Number as assigned by Health Care Financing Administration (HCFA)
- 29
- Medicare Provider and Supplier Identification Number as assigned by Health Care Financing Administration (HCFA)
- 30
- U.S. Federal Tax Identification Number
- 31
- Jurisdiction Identification Number Plus 4 as assigned by the International Association of Industrial Accident Boards and Commissions (IAIABC)
- 32
- U.S. Federal Employer Identification Number (FEIN)
- 33
- National Association of Insurance Commissioners Company Code (NAIC)
- 34
- Medicaid Provider and Supplier Identification Number as assigned by individual State Medicaid Agencies in conjunction with Health Care Financing Administration (HCFA)
- 35
- Statistics Canada Canadian College Student Information System Institution Codes
- 36
- Statistics Canada University Student Information System Institution Codes
- 37
- Society of Property Information Compilers and Analysts
- 38
- The College Board and ACT, Inc. 6-Digit Code List of Secondary Institutions
- AM
- Association Mexicana del Codigo de Producto (AMECOP) Communication ID
- NR
- National Retail Merchants Association (NRMA) - Assigned
- SA
- User Identification Number as assigned by the Safety and Fitness Electronic Records (SAFER) System
- SN
- Standard Address Number
- ZZ
- Mutually Defined
- 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
- >
- Component Element Separator
Functional Group Header
RequiredMax use 1
- IN
- Invoice Information (810)
RequiredHHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
- 005010
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
Heading
Transaction Set Header
RequiredMax use 1
Beginning Segment for Invoice
RequiredMax use 1
N1
0700
Heading > Remit to > N1
Party Identification
RequiredMax use 1
N1-03
66
Identification Code Qualifier
- 1
- D-U-N-S Number, Dun & Bradstreet
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 92
- Assigned by Buyer or Buyer's Agent
N1 Remit to end
N1
0700
Heading > Ship to > N1
Party Identification
RequiredMax use 1
N1-03
66
Identification Code Qualifier
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 92
- Assigned by Buyer or Buyer's Agent
N3
0900
Heading > Ship to > N3
Party Location
RequiredMax use 2
N4
1000
Heading > Ship to > N4
Geographic Location
RequiredMax use 1
N1 Ship to end
Terms of Sale/Deferred Terms of Sale
RequiredMax use >1
- 01
- Basic
- 02
- End of Month (EOM)
- 12
- 10 Days After End of Month (10 EOM)
Heading end
Detail
IT1
0100
Detail > IT1 Loop > IT1
Baseline Item Data (Invoice)
RequiredMax use 1
- CA
- Catalog
- PE
- Price per Each
- EN
- EAN/UCC - 13
- IN
- Buyer's Item Number
- ND
- National Drug Code (NDC)
- UA
- U.P.C./EAN Case Code (2-5-5)
- UI
- U.P.C. Consumer Package Code (1-5-5)
- UK
- GTIN 14-digit Data Structure
- UP
- UCC - 12
- VN
- Vendor's (Seller's) Item Number
PID
0600
Detail > IT1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
PID Loop end
SAC
1800
Detail > IT1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
- A260
- Advertising Allowance
- A400
- Allowance Non-performance
- C320
- Display Allowance
SAC-12
331
Allowance or Charge Method of Handling Code
SAC Loop end
IT1 Loop end
Detail end
Summary
Total Monetary Value Summary
RequiredMax use 1
SAC
0400
Summary > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
- A170
- Adjustments
- A260
- Advertising Allowance
- A400
- Allowance Non-performance
- B130
- Cigarette Stamping
- B660
- Contract Allowance
- B950
- Damaged Merchandise
- C000
- Defective Allowance
- C090
- Deposit Charges
- C260
- Discount - Incentive
- C310
- Discount
- C320
- Display Allowance
- D200
- Freight Charges to Destination
- D240
- Freight
- D250
- Freshness/Leaker Allowance
- D270
- Fuel Surcharge
- D500
- Handling
- E800
- No Return Credit Allowance
- F050
- Other (See related description)
- F180
- Pallet
- F190
- Palletizing
- F280
- Performance Allowance
- F340
- Pick/Up
- F800
- Promotional Allowance
- F910
- Quantity Discount
- F970
- Rebate
- H000
- Special Allowance
- H330
- State Sales Charge
- H390
- Stop-off Charge
- H625
- Tax - Beverage Tax
- H660
- Tax - Federal Excise Tax, FET
- H730
- Tax - Local Sales Tax
- H750
- Tax - Sales Tax (State and Local)
- H760
- Tax - State Hazardous Substance
- H770
- Tax - State Tax
- H850
- Tax
- I380
- Unloading (Labor Charges)
- I410
- Unsaleable Merchandise Allowance
- I570
- Warehouse
SAC-12
331
Allowance or Charge Method of Handling Code
- 02
- Off Invoice
- 06
- Charge to be Paid by Customer
SAC Loop end
Transaction Totals
OptionalMax use 1
Transaction Set Trailer
RequiredMax use 1
Summary end
Functional Group Trailer
RequiredMax use 1
GE-01
97
Number of Transaction Sets Included
Interchange Control Trailer
RequiredMax use 1
IEA-01
I16
Number of Included Functional Groups
EDI Samples
Sample
ST*810*0001~
BIG*20060316*90612701*20061018*1234567~
N1*RI**92*12345~
N1*ST*RITE-AID LANCASTER DIST CTR*9*0145788920088~
N3*LANCASTER DIST CENTER~
N4*LANCASTER*CA*93536~
ITD*01*****20060415*30~
IT1**216*EA*6.98*PE*UA*041689400132*IN*0421586~
PID*F****Description~
IT1**216*EA*6.98*PE*UA*041689400101*IN*0421587~
PID*F****DESCRIPTION~
SAC*A*A400***228*******02***Allowance Non-Performance~
TDS*301536~
SAC*A*A400***228*******02***Allowance Non-Performance~
CTT*2~
SE*16*0001~
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.