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 3040 (GSA ADV)
—
Delimiters
- ~ Segment
- * Element
- > Component
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
010
Transaction Set Header
Max use 1
Required
BEG
020
Beginning Segment for Purchase Order
Max use 1
Required
NTE
030
Note/Special Instruction
Max use 100
Optional
REF
050
Reference Numbers
Max use 12
Optional
PER
060
Administrative Communications Contact
Max use 3
Optional
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
SAC
120
Service, Promotion, Allowance, or Charge Information
Max use 25
Optional
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 5
Optional
DTM
150
Date/Time Reference
Max use 10
Optional
PKG
220
Marking, Packaging, Loading
Max use 200
Optional
MAN
270
Marks and Numbers
Max use 10
Optional
detail
PO1 Loop
PO1
010
Baseline Item Data
Max use 1
Required
CTP
040
Pricing Information
Max use 25
Optional
MEA
049
Measurements
Max use 40
Optional
REF
100
Reference Numbers
Max use 12
Optional
PER
110
Administrative Communications Contact
Max use 3
Optional
SAC
130
Service, Promotion, Allowance, or Charge Information
Max use 25
Optional
FOB
180
F.O.B. Related Instructions
Max use 1
Optional
DTM
210
Date/Time Reference
Max use 10
Optional
MAN
280
Marks and Numbers
Max use 10
Optional
AMT
290
Monetary Amount
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)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00304
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1993
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
—
- CN
- Consigned Order—
- NE
- New Order—
- RL
- Release or Delivery Order—
REF
050
Heading > REF
Reference Numbers
OptionalMax use 12
—
Example
At least one of Reference Number (REF-02) or Description (REF-03) is required
—
- 2E
- Foreign Military Sales Case Number—
- AT
- Appropriation Number—
- BB
- Authorization Number—
- BE
- Business Activity—
- BM
- Bill of Lading Number—
- CO
- Customer order number—
- CR
- Customer Reference Number—
- DO
- Delivery Order Number
- DS
- Defense Priorities Allocation System (DPAS) Priority Rating
- E4
- Charge Card Number—
- FI
- File Identifier—
- IL
- Internal Order Number—
- IT
- Internal Customer Number—
- P4
- Project Code—
- PH
- Priority Rating—
- PR
- Price Quote Number—
- RQ
- Purchase Requisition No.—
- TG
- Transportation Control Number (TCN)
- TH
- Transportation Account Code (TAC)
- TN
- Transaction Reference Number—
- W6
- Federal Supply Schedule Number
- ZZ
- Mutually Defined—
PER
060
Heading > PER
Administrative Communications Contact
OptionalMax use 3
—
Usage notes
—
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
—
- CD
- Contract Contact
- HM
- Hazardous Material Contact
- NT
- Notification Contact—
- RE
- Receiving Contact—
- ZZ
- Mutually Defined—
—
- EM
- Electronic Mail
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone—
—
Usage notes
—
- EM
- Electronic Mail
- EX
- Telephone Extension—
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone—
FOB
080
Heading > FOB
F.O.B. Related Instructions
OptionalMax use >1
—
Usage notes
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
If Description (FOB-07) is present, then Location Qualifier (FOB-06) is required
—
- BP
- Paid by Buyer—
- PE
- Prepaid and Summary Bill—
- PP
- Prepaid (by Seller)—
—
Usage notes
—
- DE
- Destination (Shipping)
- FV
- Free Alongside Vessel (Free On Board [F.O.B.] Point)
- IT
- Intermediate FOB Point—
- OR
- Origin (Shipping Point)
- ZZ
- Mutually Defined—
—
Usage notes
—
- DE
- Destination (Shipping)
- OR
- Origin (Shipping Point)
- ZZ
- Mutually Defined—
SAC
120
Heading > SAC
Service, Promotion, Allowance, or Charge Information
OptionalMax use 25
—
Example
If either Unit or Basis for Measurement Code (SAC-09) or Allowance or Charge Quantity (SAC-10) is present, then the other is required
If Allowance or Charge Quantity (SAC-11) is present, then Allowance or Charge Quantity (SAC-10) is required
—
- A
- Allowance
- C
- Charge
- N
- No Allowance or Charge
—
Usage notes
—
PKG
220
Heading > PKG
Marking, Packaging, Loading
OptionalMax use 200
—
Usage notes
—
Example
If Description (PKG-05) is present, then Item Description Type (PKG-01) is required
—
- DD
- Department of Defense
- GS
- General Services Administration (GSA)
- MS
- Military Standard—
- ZZ
- Mutually Defined—
N1 Loop
OptionalMax >1
N1
310
Heading > N1 Loop > N1
Name
RequiredMax use 1
—
Usage notes
—
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
—
- BT
- Bill-to-Party—
- BY
- Buying Party (Purchaser)—
- IC
- Intermediate Consignee—
- OB
- Ordered By—
- PO
- Party to Receive Invoice for Goods or Services—
- RC
- Receiving Location—
- SE
- Selling Party
- ST
- Ship To—
- SV
- Service Performance Site—
- Z7
- Mark-for Party—
- ZZ
- Mutually Defined—
—
Usage notes
—
- 1
- D-U-N-S Number, Dun & Bradstreet—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix—
- 10
- Department of Defense Activity Address Code (DODAAC)—
- 16
- ZIP Code—
- 33
- Commercial and Government Entity (CAGE)
- ZZ
- Mutually Defined
PER
360
Heading > N1 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
—
Usage notes
—
- 1A
- Review/Repricing Contact—
- BD
- Buyer Name or Department
- CN
- General Contact—
- HM
- Hazardous Material Contact
- NT
- Notification Contact
- PC
- Purchasing Contracting Officer (PCO)
- PD
- Project Director—
- RP
- Responsible Person—
- SU
- Supplier Contact—
—
- EM
- Electronic Mail
- FX
- Facsimile
- IT
- International Telephone
- TE
- Telephone—
—
Usage notes
—
- EM
- Electronic Mail
- EX
- Telephone Extension—
- FX
- Facsimile
- IT
- International Telephone
- TE
- Telephone—
N1 Loop end
Heading end
Detail
PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1
Baseline Item Data
RequiredMax use 1
—
Usage notes
—
Example
If Unit or Basis for Measurement Code (PO1-03) is present, then Quantity Ordered (PO1-02) is required
If Product/Service ID Qualifier (PO1-06) is present, then Product/Service ID (PO1-07) is required
If Product/Service ID Qualifier (PO1-08) is present, then Product/Service ID (PO1-09) is required
If Product/Service ID Qualifier (PO1-10) is present, then Product/Service ID (PO1-11) is required
If Product/Service ID Qualifier (PO1-12) is present, then Product/Service ID (PO1-13) is required
If Product/Service ID Qualifier (PO1-14) is present, then Product/Service ID (PO1-15) is required
If Product/Service ID Qualifier (PO1-16) is present, then Product/Service ID (PO1-17) is required
If Product/Service ID Qualifier (PO1-18) is present, then Product/Service ID (PO1-19) is required
If Product/Service ID Qualifier (PO1-20) is present, then Product/Service ID (PO1-21) is required
If Product/Service ID Qualifier (PO1-22) is present, then Product/Service ID (PO1-23) is required
If Product/Service ID Qualifier (PO1-24) is present, then Product/Service ID (PO1-25) is required
—
Usage notes
—
- CH
- Country of Origin Code
- CL
- Color
- CN
- Commodity Name
- F7
- End-Item Description—
- FS
- National Stock Number—
- FT
- Federal Stock Classification—
- MF
- Manufacturer—
- MG
- Manufacturer's Part Number—
- MN
- Model Number
- PD
- Part Number Description—
- PI
- Purchaser's Item Code—
- PQ
- Product ID Attribute Code—
- SR
- Substitute Product Number
- SV
- Service Rendered—
- VP
- Vendor's (Seller's) Part Number—
CTP
040
Detail > PO1 Loop > CTP
Pricing Information
OptionalMax use 25
—
Usage notes
—
Example
If Quantity (CTP-04) is present, then Unit or Basis for Measurement Code (CTP-05) is required
—
Usage notes
—
- GOV
- Government Price—
- ICL
- Unit Price Through Quantity—
- MAX
- Maximum Order Quantity Price—
- PBQ
- Unit Price Beginning Quantity—
- SPC
- Special Price—
MEA
049
Detail > PO1 Loop > MEA
Measurements
OptionalMax use 40
—
Example
If Measurement Value (MEA-03) is present, then Composite Unit of Measure (MEA-04) is required
PID Loop
OptionalMax 1000
PID
050
Detail > PO1 Loop > PID Loop > PID
Product/Item Description
RequiredMax use 1
—
Usage notes
—
Example
PID Loop end
REF
100
Detail > PO1 Loop > REF
Reference Numbers
OptionalMax use 12
—
Usage notes
—
Example
At least one of Reference Number (REF-02) or Description (REF-03) is required
—
Usage notes
—
- AT
- Appropriation Number—
- BB
- Authorization Number
- IL
- Internal Order Number—
- P4
- Project Code—
- PH
- Priority Rating—
- PR
- Price Quote Number
- RQ
- Purchase Requisition No.—
- TG
- Transportation Control Number (TCN)
- TH
- Transportation Account Code (TAC)
- TN
- Transaction Reference Number—
- ZZ
- Mutually Defined—
PER
110
Detail > PO1 Loop > PER
Administrative Communications Contact
OptionalMax use 3
—
Usage notes
—
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
—
- 1A
- Review/Repricing Contact—
- AC
- Administrative Contact
- AU
- Report Authorizer—
- NT
- Notification Contact—
- PI
- Preparer—
- RE
- Receiving Contact—
—
- EM
- Electronic Mail
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone
—
Usage notes
—
- EM
- Electronic Mail
- EX
- Telephone Extension—
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone—
SAC
130
Detail > PO1 Loop > SAC
Service, Promotion, Allowance, or Charge Information
OptionalMax use 25
—
Usage notes
—
Example
If either Unit or Basis for Measurement Code (SAC-09) or Allowance or Charge Quantity (SAC-10) is present, then the other is required
If Allowance or Charge Quantity (SAC-11) is present, then Allowance or Charge Quantity (SAC-10) is required
—
- A
- Allowance
- C
- Charge
- N
- No Allowance or Charge
—
Usage notes
—
FOB
180
Detail > PO1 Loop > FOB
F.O.B. Related Instructions
OptionalMax use >1
—
Usage notes
—
Example
If Description (FOB-03) is present, then Location Qualifier (FOB-02) is required
If Description (FOB-07) is present, then Location Qualifier (FOB-06) is required
—
- BP
- Paid by Buyer—
- PE
- Prepaid and Summary Bill—
- PP
- Prepaid (by Seller)—
—
Usage notes
—
- DE
- Destination (Shipping)
- FV
- Free Alongside Vessel (Free On Board [F.O.B.] Point)
- IT
- Intermediate FOB Point—
- OR
- Origin (Shipping Point)
- ZZ
- Mutually Defined—
—
Usage notes
—
- DE
- Destination (Shipping)
- OR
- Origin (Shipping Point)
- ZZ
- Mutually Defined—
DTM
210
Detail > PO1 Loop > DTM
Date/Time Reference
OptionalMax use 10
—
Usage notes
—
Example
If either Date Time Period Format Qualifier (DTM-06) or Date Time Period (DTM-07) is present, then the other is required
At least one of Date (DTM-02), Time (DTM-03) or Date Time Period Format Qualifier (DTM-06) is required
N1 Loop
OptionalMax 200
N1
350
Detail > PO1 Loop > N1 Loop > N1
Name
RequiredMax use 1
—
Usage notes
—
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—
- MF
- Manufacturer of Goods
- OB
- Ordered By
- ST
- Ship To—
- SV
- Service Performance Site—
- Z7
- Mark-for Party—
- ZZ
- Mutually Defined—
—
Usage notes
—
- 1
- D-U-N-S Number, Dun & Bradstreet—
- 9
- D-U-N-S+4, D-U-N-S Number with Four Character Suffix—
- 10
- Department of Defense Activity Address Code (DODAAC)—
- 33
- Commercial and Government Entity (CAGE)—
N2
360
Detail > PO1 Loop > N1 Loop > N2
Additional Name Information
OptionalMax use 2
—
Usage notes
—
Example
N4
380
Detail > PO1 Loop > N1 Loop > N4
Geographic Location
OptionalMax use 1
—
Usage notes
—
Example
If Location Identifier (N4-06) is present, then Location Qualifier (N4-05) is required
PER
400
Detail > PO1 Loop > N1 Loop > PER
Administrative Communications Contact
OptionalMax use 3
—
Usage notes
—
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
—
- 1A
- Review/Repricing Contact—
- AC
- Administrative Contact
- AU
- Report Authorizer—
- NT
- Notification Contact—
- PI
- Preparer—
- RE
- Receiving Contact—
—
- EM
- Electronic Mail
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone
—
Usage notes
—
- EM
- Electronic Mail
- EX
- Telephone Extension—
- FX
- Facsimile
- IT
- International Telephone—
- TE
- Telephone—
N1 Loop end
PO1 Loop end
Detail end
Summary
Summary end
EDI Samples
BASIC ORDER
ISA*00* *00* *01*000111119 *ZZ*GSAADV *130605*0715*U*00300*000021606*0*P*:
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
FOB*PP*DE****DE
ITD***2.5**10
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY**1*012966339
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*PO**1*987654321
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*151234-1234-1234
AMT*1*250
CTT*1
AMT*TT*250
SE*23*12345
GE*1*14640192
IEA*1*000021606
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
FOB*PP*DE****DE
ITD***2.5**10
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY**1*012966339
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*PO**1*987654321
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*151234-1234-1234
AMT*1*250
CTT*1
AMT*TT*250
SE*23*12345
GE*1*14640192
IEA*1*000021606
BASIC ORDER - FROM AGENCY
ISA*00* *00* *01*000111119 *ZZ*GSAADV *130605*0715*U*00300*000021606*0*P*:
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
REF*AT**15645AC65446X30
FOB*PP*DE****DE
ITD***2.5**10
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY*Dept of Agriculture
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
N1*PO*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*15123412341234
AMT*1*250
CTT*1*10
AMT*TT*250
SE*27*12345
GE*1*14640192
IEA*1*000021606
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
REF*AT**15645AC65446X30
FOB*PP*DE****DE
ITD***2.5**10
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY*Dept of Agriculture
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
N1*PO*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*15123412341234
AMT*1*250
CTT*1*10
AMT*TT*250
SE*27*12345
GE*1*14640192
IEA*1*000021606
BASIC ORDER - I.M.P.A.C.
ISA*00* *00* *01*000111119 *ZZ*GSAADV *130605*0715*U*00300*000021606*0*P*:
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
REF*E4*4716000000000
FOB*PP*DE****DE
ITD***2.5**10
DTM*036*980930
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY**1*012966339
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*15123412341234
AMT*1*250
CTT*1
AMT*TT*250
SE*24*12345
GE*1*14640192
IEA*1*000021606
GS*PO*000111119*GSAADV*230605*0715*14640192*X*003040
ST*850*12345
BEG*00*RL*GS02F1234F*EG1234567*960401
REF*W6*27 III F
REF*E4*4716000000000
FOB*PP*DE****DE
ITD***2.5**10
DTM*036*980930
DTM*996*960501
MAN*S*Mark for ATTN John Doe
N1*BY**1*012966339
PER*NT*Jane Green*TE*1234567890
N1*SE**1*123456789
N1*ST*Dept of Agriculture
N2*Food and Nutrition Service
N3*789 Main Street
N4*Metropolis*NY*12345
PO1*1*10*EA*25.00**MF*123456789*MG*12AX34*MF*ABC Company*PD*A-1 Widget*CL*blue*PI*27-2
MEA*DE*TT*120*DA
PID*F****Description
REF*IL*15123412341234
AMT*1*250
CTT*1
AMT*TT*250
SE*24*12345
GE*1*14640192
IEA*1*000021606
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.