GSA (General Services Administration)
/
Purchase Order 3040 (GSA ADV)
  • Specification
  • EDI Inspector
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.
Go to Stedi Network
GSA (General Services Administration) logo

X12 850 Purchase Order 3040 (GSA ADV)

X12 Release 3040
Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI samples
  • BASIC ORDER
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/gsa/purchase-order-3040-gsa-adv/01HH10F9MSSPDD0V35YP60P0Z3
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
N1 Loop
detail
PO1 Loop
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1
Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)
00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10
ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)
00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10
ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15
ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2
Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15
ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format
ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format
ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)
U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)
00304
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1993
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1
0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Test Indicator
Required
Identifier (ID)
Min 1Max 1
P
Production Data
T
Test Data
ISA-16
I15
Subelement Separator
Required
String (AN)
Min 1Max 1
>
Component Element Separator

Functional Group Header

RequiredMax use 1
Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)
PO
Purchase Order (850)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15
GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15
Required
Date (DT)
YYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9
GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2
T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)
003040
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1993

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
850
X12.1 Purchase Order
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
BEG
020
Heading > BEG

Beginning Segment for Purchase Order

RequiredMax use 1
Example
BEG-01
353
Transaction Set Purpose Code
Required
Identifier (ID)
00
Original
22
Information Copy
BEG-02
92
Purchase Order Type Code
Required
Identifier (ID)
CN
Consigned Order
NE
New Order
RL
Release or Delivery Order
BEG-03
324
Purchase Order Number
Required
String (AN)
Min 1Max 22
Usage notes
BEG-04
328
Release Number
Required
String (AN)
Min 1Max 30
Usage notes
BEG-05
323
Purchase Order Date
Required
Date (DT)
YYMMDD format
Usage notes
BEG-07
587
Acknowledgment Type
Optional
Identifier (ID)
Min 2Max 2
NTE
030
Heading > NTE

Note/Special Instruction

OptionalMax use 100
Example
NTE-01
363
Note Reference Code
Optional
Identifier (ID)
Min 3Max 3
NTE-02
3
Free Form Message
Required
String (AN)
Min 1Max 60
REF
050
Heading > REF

Reference Numbers

OptionalMax use 12
Example
At least one of Reference Number (REF-02) or Description (REF-03) is required
REF-01
128
Reference Number Qualifier
Required
Identifier (ID)
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
REF-02
127
Reference Number
Optional
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
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
PER-01
366
Contact Function Code
Required
Identifier (ID)
CD
Contract Contact
HM
Hazardous Material Contact
NT
Notification Contact
RE
Receiving Contact
ZZ
Mutually Defined
Optional
String (AN)
Min 1Max 35
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Usage notes
EM
Electronic Mail
EX
Telephone Extension
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
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
FOB-01
146
Shipment Method of Payment
Required
Identifier (ID)
BP
Paid by Buyer
PE
Prepaid and Summary Bill
PP
Prepaid (by Seller)
FOB-02
309
Location Qualifier
Optional
Identifier (ID)
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
FOB-03
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
FOB-06
309
Location Qualifier
Optional
Identifier (ID)
Usage notes
DE
Destination (Shipping)
OR
Origin (Shipping Point)
ZZ
Mutually Defined
FOB-07
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
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
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)
A
Allowance
C
Charge
N
No Allowance or Charge
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
Required
Identifier (ID)
Min 4Max 4
Usage notes
SAC-05
610
Amount
Optional
Numeric (N2)
Min 1Max 15
SAC-09
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
SAC-10
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
Usage notes
SAC-11
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
ITD
130
Heading > ITD

Terms of Sale/Deferred Terms of Sale

OptionalMax use 5
Example
ITD-03
338
Terms Discount Percent
Required
Decimal number (R)
Min 1Max 6
ITD-05
351
Terms Discount Days Due
Required
Numeric (N0)
Min 1Max 3
DTM
150
Heading > DTM

Date/Time Reference

OptionalMax use 10
Usage notes
Example
DTM-01
374
Date/Time Qualifier
Optional
Identifier (ID)
036
Expiration
996
Required Delivery
Required
Date (DT)
YYMMDD format
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
PKG-01
349
Item Description Type
Optional
Identifier (ID)
F
Free-form
PKG-02
753
Packaging Characteristic Code
Optional
Identifier (ID)
Min 1Max 5
PKG-03
559
Agency Qualifier Code
Optional
Identifier (ID)
DD
Department of Defense
GS
General Services Administration (GSA)
MS
Military Standard
ZZ
Mutually Defined
PKG-05
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
MAN
270
Heading > MAN

Marks and Numbers

OptionalMax use 10
Example
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
S
Entire Shipment
MAN-02
87
Marks and Numbers
Required
String (AN)
Min 1Max 45
MAN-03
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
MAN-04
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
Min 1Max 2
MAN-05
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
MAN-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
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
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
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
Optional
String (AN)
Min 1Max 35
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
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
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 17
Usage notes
N2
320
Heading > N1 Loop > N2

Additional Name Information

OptionalMax use 2
Example
Required
String (AN)
Min 1Max 35
Optional
String (AN)
Min 1Max 35
N3
330
Heading > N1 Loop > N3

Address Information

OptionalMax use 2
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 35
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 35
N4
340
Heading > N1 Loop > N4

Geographic Location

OptionalMax use 1
Example
N4-01
19
City Name
Optional
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 9
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
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
PER-01
366
Contact Function Code
Required
Identifier (ID)
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
Optional
String (AN)
Min 1Max 35
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Usage notes
EM
Electronic Mail
EX
Telephone Extension
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
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
PO1-01
350
Assigned Identification
Optional
String (AN)
Min 1Max 11
Usage notes
PO1-02
330
Quantity Ordered
Optional
Decimal number (R)
Min 1Max 9
Usage notes
PO1-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Usage notes
EA
Each
SX
Shipment
PO1-04
212
Unit Price
Optional
Decimal number (R)
Min 1Max 14
Usage notes
PO1-06
235
Product/Service ID Qualifier
Optional
Identifier (ID)
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
PO1-07
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-08
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-09
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-10
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-11
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-12
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-13
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-14
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-15
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-16
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-17
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-18
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-19
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-20
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-21
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-22
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-23
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
PO1-24
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
PO1-25
234
Product/Service ID
Optional
String (AN)
Min 1Max 30
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
CTP-02
236
Price Identifier Code
Optional
Identifier (ID)
Usage notes
GOV
Government Price
ICL
Unit Price Through Quantity
MAX
Maximum Order Quantity Price
PBQ
Unit Price Beginning Quantity
SPC
Special Price
CTP-03
212
Unit Price
Optional
Decimal number (R)
Min 1Max 14
Usage notes
CTP-04
380
Quantity
Optional
Decimal number (R)
Min 1Max 15
CTP-05
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
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
MEA-01
737
Measurement Reference ID Code
Optional
Identifier (ID)
Min 2Max 2
MEA-02
738
Measurement Qualifier
Optional
Identifier (ID)
Min 1Max 3
MEA-03
739
Measurement Value
Optional
Decimal number (R)
Min 1Max 10
MEA-04
C001
Composite Unit of Measure
OptionalMax use 1
To identify a composite unit of measure (See Figures Appendix for examples of use.)
C001-01
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2
PID Loop
OptionalMax 1000
PID
050
Detail > PO1 Loop > PID Loop > PID

Product/Item Description

RequiredMax use 1
Usage notes
Example
PID-01
349
Item Description Type
Required
Identifier (ID)
F
Free-form
PID-05
352
Description
Required
String (AN)
Min 1Max 80
Usage notes
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
REF-01
128
Reference Number Qualifier
Required
Identifier (ID)
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
REF-02
127
Reference Number
Optional
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
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
PER-01
366
Contact Function Code
Required
Identifier (ID)
1A
Review/Repricing Contact
AC
Administrative Contact
AU
Report Authorizer
NT
Notification Contact
PI
Preparer
RE
Receiving Contact
Optional
String (AN)
Min 1Max 35
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Usage notes
EM
Electronic Mail
EX
Telephone Extension
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
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
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)
A
Allowance
C
Charge
N
No Allowance or Charge
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
Required
Identifier (ID)
Min 4Max 4
Usage notes
SAC-05
610
Amount
Optional
Numeric (N2)
Min 1Max 15
SAC-09
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
Min 2Max 2
Usage notes
SAC-10
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
Usage notes
SAC-11
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
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
FOB-01
146
Shipment Method of Payment
Required
Identifier (ID)
BP
Paid by Buyer
PE
Prepaid and Summary Bill
PP
Prepaid (by Seller)
FOB-02
309
Location Qualifier
Optional
Identifier (ID)
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
FOB-03
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
FOB-06
309
Location Qualifier
Optional
Identifier (ID)
Usage notes
DE
Destination (Shipping)
OR
Origin (Shipping Point)
ZZ
Mutually Defined
FOB-07
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
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
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
996
Required Delivery
Optional
Date (DT)
YYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Optional
Identifier (ID)
Min 2Max 2
DTM-06
1250
Date Time Period Format Qualifier
Optional
Identifier (ID)
Min 2Max 3
Usage notes
DTM-07
1251
Date Time Period
Optional
String (AN)
Min 1Max 35
Usage notes
MAN
280
Detail > PO1 Loop > MAN

Marks and Numbers

OptionalMax use 10
Usage notes
Example
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
L
Line Item Only
MAN-02
87
Marks and Numbers
Required
String (AN)
Min 1Max 45
MAN-03
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
MAN-04
88
Marks and Numbers Qualifier
Optional
Identifier (ID)
L
Line Item Only
MAN-05
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
MAN-06
87
Marks and Numbers
Optional
String (AN)
Min 1Max 45
AMT
290
Detail > PO1 Loop > AMT

Monetary Amount

OptionalMax use 1
Usage notes
Example
AMT-01
522
Amount Qualifier Code
Required
Identifier (ID)
1
Line Item Total
AMT-02
782
Monetary Amount
Required
Decimal number (R)
Min 1Max 15
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
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
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
Optional
String (AN)
Min 1Max 35
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
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)
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 17
N2
360
Detail > PO1 Loop > N1 Loop > N2

Additional Name Information

OptionalMax use 2
Usage notes
Example
Required
String (AN)
Min 1Max 35
Optional
String (AN)
Min 1Max 35
N3
370
Detail > PO1 Loop > N1 Loop > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 35
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 35
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
N4-01
19
City Name
Optional
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 9
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
Usage notes
N4-05
309
Location Qualifier
Optional
Identifier (ID)
CC
Country
SP
State/Province
N4-06
310
Location Identifier
Optional
String (AN)
Min 1Max 30
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
PER-01
366
Contact Function Code
Required
Identifier (ID)
1A
Review/Repricing Contact
AC
Administrative Contact
AU
Report Authorizer
NT
Notification Contact
PI
Preparer
RE
Receiving Contact
Optional
String (AN)
Min 1Max 35
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
Usage notes
EM
Electronic Mail
EX
Telephone Extension
FX
Facsimile
IT
International Telephone
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
N1 Loop end
PO1 Loop end
Detail end

Summary

CTT
010
Summary > CTT

Transaction Totals

RequiredMax use 1
Example
CTT-01
354
Number of Line Items
Required
Numeric (N0)
Min 1Max 6
Usage notes
CTT-02
347
Hash Total
Optional
Decimal number (R)
Min 1Max 10
Usage notes
AMT
020
Summary > AMT

Monetary Amount

OptionalMax use 1
Usage notes
Example
AMT-01
522
Amount Qualifier Code
Required
Identifier (ID)
TT
Total Transaction Amount
AMT-02
782
Monetary Amount
Required
Decimal number (R)
Min 1Max 15
SE
030
Summary > SE

Transaction Set Trailer

RequiredMax use 1
Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10
SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
Summary end

Functional Group Trailer

RequiredMax use 1
Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6
GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Interchange Control Trailer

RequiredMax use 1
Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5
IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9
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

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

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

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.