Stedi maintains this guide based on public documentation from GSA (General Services Administration). Contact GSA (General Services Administration) for official EDI specifications. To report any errors in this guide, please contact us.
X12 850 Purchase Order 5010 (GSA OMS)
—
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
BEG
0200
Beginning Segment for Purchase Order
Max use 1
Required
REF
0500
Reference Information
Max use 1
Optional
FOB
0800
F.O.B. Related Instructions
Max use 1
Optional
PKG
2200
Marking, Packaging, Loading
Max use 200
Optional
MAN
2700
Marks and Numbers Information
Max use 10
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
—
Usage notes
—
- 00
- Original
- 22
- Information Copy
—
- CN
- Consigned Order
- RL
- Release or Delivery Order
REF
0500
Heading > REF
Reference Information
OptionalMax use >1
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
FOB
0800
Heading > FOB
F.O.B. Related Instructions
OptionalMax use >1
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
—
Usage notes
—
- DE
- Destination (Shipping)
- FV
- Free Alongside Vessel (Free On Board [F.O.B.] Point)
- OR
- Origin (Shipping Point)
PKG
2200
Heading > PKG
Marking, Packaging, Loading
OptionalMax use 200
—
Example
If Description (PKG-05) is present, then Item Description Type (PKG-01) is required
If Packaging Description Code (PKG-04) is present, then Agency Qualifier Code (PKG-03) is required
At least one of Packaging Description Code (PKG-04), Description (PKG-05) or Unit Load Option Code (PKG-06) is required
N9 Loop
OptionalMax 1000
N9
2950
Heading > N9 Loop > N9
Extended Reference Information
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
MTX
3000
Heading > N9 Loop > MTX
Text
OptionalMax use 1
—
Example
If Note Reference Code (MTX-01) is present, then Textual Data (MTX-02) is required
N9 Loop end
N1 Loop
RequiredMax 200
N1
3100
Heading > N1 Loop > N1
Party Identification
RequiredMax use 1
—
Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
At least one of Name (N1-02) or Identification Code Qualifier (N1-03) is required
—
Usage notes
—
- BY
- Buying Party (Purchaser)
- IC
- Intermediate Consignee
- RC
- Receiving Location
- SE
- Selling Party
- ST
- Ship To
- SU
- Supplier/Manufacturer
- Z7
- Mark-for Party
—
Usage notes
—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix
- 10
- Department of Defense Activity Address Code (DODAAC)
- 92
- Assigned by Buyer or Buyer's Agent
REF
3500
Heading > N1 Loop > REF
Reference Information
OptionalMax use 12
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
PER
3600
Heading > N1 Loop > PER
Administrative Communications Contact
OptionalMax use >1
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
—
Usage notes
—
- BD
- Buyer Name or Department
- CN
- General Contact
- SU
- Supplier Contact
N1 Loop end
Heading end
Detail
PO1 Loop
OptionalMax 100000
PO1
0100
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Example
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity (PO1-02) is required
If Basis of Unit Price Code (PO1-05) is present, then Unit Price (PO1-04) is required
If either Product/Service ID Qualifier (PO1-06) or Product/Service ID (PO1-07) is present, then the other is required
If either Product/Service ID Qualifier (PO1-08) or Product/Service ID (PO1-09) is present, then the other is required
If either Product/Service ID Qualifier (PO1-10) or Product/Service ID (PO1-11) is present, then the other is required
If either Product/Service ID Qualifier (PO1-12) or Product/Service ID (PO1-13) is present, then the other is required
If either Product/Service ID Qualifier (PO1-14) or Product/Service ID (PO1-15) is present, then the other is required
If either Product/Service ID Qualifier (PO1-16) or Product/Service ID (PO1-17) is present, then the other is required
If either Product/Service ID Qualifier (PO1-18) or Product/Service ID (PO1-19) is present, then the other is required
If either Product/Service ID Qualifier (PO1-20) or Product/Service ID (PO1-21) is present, then the other is required
If either Product/Service ID Qualifier (PO1-22) or Product/Service ID (PO1-23) is present, then the other is required
If either Product/Service ID Qualifier (PO1-24) or Product/Service ID (PO1-25) is present, then the other is required
—
- CL
- Color
- CN
- Commodity Name
- FS
- National Stock Number
- FT
- Federal Supply Classification
- MF
- Manufacturer
- MG
- Manufacturer's Part Number
- PD
- Part Number Description
- VP
- Vendor's (Seller's) Part Number
CTP Loop
OptionalMax 999999
CTP
0400
Detail > PO1 Loop > CTP Loop > CTP
Pricing Information
RequiredMax use 1
—
Example
If either Quantity (CTP-04) or Composite Unit of Measure (CTP-05) is present, then the other is required
CTP Loop end
PID Loop
OptionalMax 1000
PID
0500
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Example
At least one of Product Description Code (PID-04) or Description (PID-05) is required
PID Loop end
PO4
0900
Detail > PO1 Loop > PO4
Item Physical Details
OptionalMax use >1
—
Example
If either Gross Weight per Pack (PO4-06) or Unit or Basis for Measurement Code (PO4-07) is present, then the other is required
If either Gross Volume per Pack (PO4-08) or Unit or Basis for Measurement Code (PO4-09) is present, then the other is required
REF
1000
Detail > PO1 Loop > REF
Reference Information
OptionalMax use >1
—
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
—
- 2E
- Foreign Military Sales Case Number
- CO
- Customer Order Number
- IL
- Internal Order Number
- P4
- Project Code
- PH
- Priority Rating
- TG
- Transportation Control Number (TCN)
- TH
- Transportation Account Code (TAC)
- ZZ
- Mutually Defined
PER
1100
Detail > PO1 Loop > PER
Administrative Communications Contact
OptionalMax use 3
—
Example
If either Communication Number Qualifier (PER-03) or Communication Number (PER-04) is present, then the other is required
If either Communication Number Qualifier (PER-05) or Communication Number (PER-06) is present, then the other is required
If either Communication Number Qualifier (PER-07) or Communication Number (PER-08) is present, then the other is required
—
- AA
- Authorized Representative
- IC
- Information Contact
SAC Loop
OptionalMax 25
SAC
1300
Detail > PO1 Loop > SAC Loop > SAC
Service, Promotion, Allowance, or Charge Information
RequiredMax use 1
—
Example
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
At least one of Service, Promotion, Allowance, or Charge Code (SAC-02) or Agency Qualifier Code (SAC-03) is required
—
- D230
- Freight Surcharge
- F040
- Order-Flat
- F050
- Other (See related description)
- F180
- Pallet
- H650
- Tax - Excise Tax - Origin
SAC Loop end
DTM
2100
Detail > PO1 Loop > DTM
Date/Time Reference
OptionalMax use 10
—
Example
If either Date Time Period Format Qualifier (DTM-05) or Date Time Period (DTM-06) is present, then the other is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-05) is required
N9 Loop
OptionalMax >1
N9
3300
Detail > PO1 Loop > N9 Loop > N9
Extended Reference Information
RequiredMax use 1
—
Example
At least one of Reference Identification (N9-02) or Free-form Description (N9-03) is required
MTX
3400
Detail > PO1 Loop > N9 Loop > MTX
Text
RequiredMax use >1
—
Example
If Note Reference Code (MTX-01) is present, then Textual Data (MTX-02) is required
N9 Loop end
AMT Loop
OptionalMax 999999
AMT Loop end
PO1 Loop end
Detail end
Summary
CTT Loop
OptionalMax >1
CTT Loop end
Summary end
EDI Samples
EDI_850_1.txt
ISA*00* *00* *ZZ*SENDERID *ZZ*RECEIVERID *200318*1257*^*00501*000635641*0*T*>~
GS*PO*SENDERID*RECEIVERID*20200318*1257*87224*X*005010~
ST*850*0001~
BEG*00*RL*CONTRACT NUMBER*PO NUMBER*20030118~
FOB*PP*DE*DESTINATION TAILGATE DELIVERY~
PKG*F**DD**MILITARY~
N9*SU*Instructions to Follow~
MTX*ADD*FREE FORM TEXT GOES HERE~
N1*BY*BUYING PARTY~
N3*ADDRESS*ADDRESS LINE~
N3*ADDRESS INFORMATION~
PER*BD*BUYER NAME*EM*BUYER EMAIL*TE*BUYER PHONE NUMBER~
N1*ST*SHIP TO*10*STORE CODE~
N2*ADDTIONAL NAME INFORMATION~
N3*ADDRESS INFORMATION~
N4*CITY*PA*ZIP*US~
N1*Z7*MARK FOR PARTY*10*CP15~
N2*ADDITIONAL NAME INFORMATION~
N3*ADDRESS INFORMATION*ADDRESS INFORMATION~
N3*ADDRESS INFORMATION~
N4*CITY*PA*ZIP*US~
N1*SE*SELLING PARTY*9*DUNS~
N2*DUNS~
N4*CITY*PA*ZIP*US~
PER*SU*SUPPLIER*EM*EMAIL*TE*PHONE NUMBER~
N1*IC*INTERMEDIATE CONSIGNEE~
N3*DLA DEFENSE DIST DEPOT TRACY DEPOT*PHONE NUMBER~
N3*ADDRESS~
N4*CITY*PA*ZIP*US~
PO1*1*1*EA*1.17******FS*NATIONAL STOCK NUMBER*FT*FEDERAL SUPPLY*****PD*PART NUMBER DESCRIPTION~
CTP**GOV*1.02*1*EA~
PID*F****KEY, SOCKET HEAD SCREW SECM P/N: AW028D~
PO4******0.001*LB*0.01*CF~
REF*P4*9GJ~
REF*PH*05~
REF*IL*REQUISITION NUMBER~
REF*TG*TRANSPORTAION CONTROL NUMBER~
REF*TH*TRANSPORTAION ACCOUNT NUMBER~
REF*ZZ*999~
DTM*996*20230125~
N9*SU*Instructions to Follow~
MTX*ADD*FREE FORM TEXT GOES HERE~
AMT*1*1.02~
CTT*1*1.02~
AMT*TT*1.02~
SE*44*0001~
GE*1*87224~
IEA*1*000635641~
GS*PO*SENDERID*RECEIVERID*20200318*1257*87224*X*005010~
ST*850*0001~
BEG*00*RL*CONTRACT NUMBER*PO NUMBER*20030118~
FOB*PP*DE*DESTINATION TAILGATE DELIVERY~
PKG*F**DD**MILITARY~
N9*SU*Instructions to Follow~
MTX*ADD*FREE FORM TEXT GOES HERE~
N1*BY*BUYING PARTY~
N3*ADDRESS*ADDRESS LINE~
N3*ADDRESS INFORMATION~
PER*BD*BUYER NAME*EM*BUYER EMAIL*TE*BUYER PHONE NUMBER~
N1*ST*SHIP TO*10*STORE CODE~
N2*ADDTIONAL NAME INFORMATION~
N3*ADDRESS INFORMATION~
N4*CITY*PA*ZIP*US~
N1*Z7*MARK FOR PARTY*10*CP15~
N2*ADDITIONAL NAME INFORMATION~
N3*ADDRESS INFORMATION*ADDRESS INFORMATION~
N3*ADDRESS INFORMATION~
N4*CITY*PA*ZIP*US~
N1*SE*SELLING PARTY*9*DUNS~
N2*DUNS~
N4*CITY*PA*ZIP*US~
PER*SU*SUPPLIER*EM*EMAIL*TE*PHONE NUMBER~
N1*IC*INTERMEDIATE CONSIGNEE~
N3*DLA DEFENSE DIST DEPOT TRACY DEPOT*PHONE NUMBER~
N3*ADDRESS~
N4*CITY*PA*ZIP*US~
PO1*1*1*EA*1.17******FS*NATIONAL STOCK NUMBER*FT*FEDERAL SUPPLY*****PD*PART NUMBER DESCRIPTION~
CTP**GOV*1.02*1*EA~
PID*F****KEY, SOCKET HEAD SCREW SECM P/N: AW028D~
PO4******0.001*LB*0.01*CF~
REF*P4*9GJ~
REF*PH*05~
REF*IL*REQUISITION NUMBER~
REF*TG*TRANSPORTAION CONTROL NUMBER~
REF*TH*TRANSPORTAION ACCOUNT NUMBER~
REF*ZZ*999~
DTM*996*20230125~
N9*SU*Instructions to Follow~
MTX*ADD*FREE FORM TEXT GOES HERE~
AMT*1*1.02~
CTT*1*1.02~
AMT*TT*1.02~
SE*44*0001~
GE*1*87224~
IEA*1*000635641~
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.