Target
/
Retail Purchase Order
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from Target. Contact Target for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
Target logo

X12 850 Retail Purchase Order

X12 Release 4010
Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI sample
  • Sample 850
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/target/retail-purchase-order/01HBRP5VK9HAJT2GEGHH3CBPYV
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
REF
050
Reference Identification
Max use 1
Required
PER
060
Administrative Communications Contact
Max use 3
Optional
FOB
080
F.O.B. Related Instructions
Max use 1
Optional
CSH
110
Sales Requirements
Max use 5
Optional
SAC Loop
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Required
DTM
150
Date/Time Reference
Max use 10
Required
TD5
240
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
Buying Party (Purchaser)
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)
00401
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
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
Usage Indicator
Required
Identifier (ID)
Min 1Max 1
I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element 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)
CCYYMMDD 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)
004010
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
850
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
Usage notes
Example
BEG-01
353
Transaction Set Purpose Code
Required
Identifier (ID)
00
Original
06
Confirmation
BEG-02
92
Purchase Order Type Code
Required
Identifier (ID)
BK
Blanket Order (Quantity Firm)
RL
Release or Delivery Order
SA
Stand-alone Order
BEG-03
324
Purchase Order Number
Required
String (AN)
Min 1Max 22
Usage notes
BEG-04
328
Release Number
Optional
String (AN)
Min 1Max 30
Usage notes
Required
Date (DT)
CCYYMMDD format
Usage notes
BEG-06
367
Contract Number
Optional
String (AN)
Usage notes
D
Standard
Q
Quick Reaction
S
Speed
REF
050
Heading > REF

Reference Identification

RequiredMax use >1
Usage notes
Example
At least one of Reference Identification (REF-02) or Description (REF-03) is required
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
AR
Arrival Code
DP
Department Number
IA
Internal Vendor Number
PD
Promotion/Deal Number
REF-02
127
Reference Identification
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-07) or Communication Number (PER-08) 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-03) or Communication Number (PER-04) is present, then the other is required
PER-01
366
Contact Function Code
Required
Identifier (ID)
DC
Delivery Contact
Optional
String (AN)
Min 1Max 60
Usage notes
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
PER-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
PER-05
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
PER-07
365
Communication Number Qualifier
Optional
Identifier (ID)
EM
Electronic Mail
FX
Facsimile
TE
Telephone
PER-08
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
PER-09
443
Contact Inquiry Reference
Optional
String (AN)
Min 1Max 20
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
FOB-01
146
Shipment Method of Payment
Required
Identifier (ID)
DF
Defined by Buyer and Seller
FOB-02
309
Location Qualifier
Optional
Identifier (ID)
DE
Destination (Shipping)
OR
Origin (Shipping Point)
ZZ
Mutually Defined
FOB-03
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
CSH
110
Heading > CSH

Sales Requirements

OptionalMax use 5
Usage notes
Example
CSH-01
563
Sales Requirement Code
Optional
Identifier (ID)
N
No Back Order
Y
Back Order if Out of Stock
SAC Loop
OptionalMax >1
SAC
120
Heading > SAC Loop > SAC

Service, Promotion, Allowance, or Charge Information

RequiredMax use 1
Usage notes
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
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)
N
No Allowance or Charge
SAC-03
559
Agency Qualifier Code
Optional
Identifier (ID)
VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
SAC-04
1301
Agency Service, Promotion, Allowance, or Charge Code
Optional
String (AN)
OHDS
Drop Ship
OHKO
Closeout Order
OHNS
New Store Order
OHPR
Promotional Order
OHRC
Raincheck Order
OHRO
Rush Order
OHSB
Seasonal Buildup Order
OHSO
Special Order
OHSP
Sample Order
OHZQ
Vendor Warehouse
SAC Loop end
ITD
130
Heading > ITD

Terms of Sale/Deferred Terms of Sale

RequiredMax use >1
Usage notes
Example
If Terms Discount Percent (ITD-03) is present, then at least one of Terms Discount Due Date (ITD-04), Terms Discount Days Due (ITD-05) or Day of Month (ITD-13) is required
ITD-01
336
Terms Type Code
Required
Identifier (ID)
01
Basic
02
End of Month (EOM)
10
Instant
14
Previously agreed upon
ITD-02
333
Terms Basis Date Code
Required
Identifier (ID)
2
Delivery Date
3
Invoice Date
ITD-03
338
Terms Discount Percent
Optional
Decimal number (R)
Min 1Max 6
Usage notes
ITD-04
370
Terms Discount Due Date
Optional
Date (DT)
CCYYMMDD format
ITD-05
351
Terms Discount Days Due
Optional
Numeric (N0)
Min 1Max 3
Usage notes
ITD-06
446
Terms Net Due Date
Optional
Date (DT)
CCYYMMDD format
ITD-07
386
Terms Net Days
Optional
Numeric (N0)
Min 1Max 3
Usage notes
ITD-12
352
Description
Optional
String (AN)
Min 1Max 80
ITD-13
765
Day of Month
Optional
Numeric (N0)
Min 1Max 2
ITD-14
107
Payment Method Code
Optional
Identifier (ID)
L
Letter of Credit
DTM
150
Heading > DTM

Date/Time Reference

RequiredMax use 10
Usage notes
Example
If Time Code (DTM-04) is present, then Time (DTM-03) is required
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
015
Promotion Start
037
Ship Not Before
038
Ship No Later
063
Do Not Deliver After
064
Do Not Deliver Before
078
Promised for Delivery (Week of)
118
Requested Pick-up
Optional
Date (DT)
CCYYMMDD format
Optional
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
Usage notes
DTM-04
623
Time Code
Optional
Identifier (ID)
CT
Central Time
LT
Local Time
TD5
240
Heading > TD5

Carrier Details (Routing Sequence/Transit Time)

OptionalMax use 12
Usage notes
Example
TD5-01
133
Routing Sequence Code
Required
Identifier (ID)
B
Origin/Delivery Carrier (Any Mode)
TD5-02
66
Identification Code Qualifier
Required
Identifier (ID)
2
Standard Carrier Alpha Code (SCAC)
92
Assigned by Buyer or Buyer's Agent
TD5-03
67
Identification Code
Required
String (AN)
Min 2Max 80
Usage notes
TD5-04
91
Transportation Method/Type Code
Optional
Identifier (ID)
A
Air
C
Consolidation
H
Customer Pickup
M
Motor (Common Carrier)
U
Private Parcel Service
N9 Instructions
OptionalMax >1
Variants (all may be used)
Truckload Reference ID.
N9
295
Heading > Instructions > N9

Reference Identification

RequiredMax use 1
Usage notes
Example
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
ZZ
Mutually Defined
N9-02
127
Reference Identification
Optional
String (AN)
SPH
Special Handling Instructions
MSG
300
Heading > Instructions > MSG

Message Text

OptionalMax use 1000
Usage notes
Example
MSG-01
933
Free-Form Message Text
Required
String (AN)
Min 1Max 80
N9 Instructions end
N9 Truckload Reference ID.
OptionalMax 1
Variants (all may be used)
Instructions
N9
295
Heading > Truckload Reference ID. > N9

Reference Identification

RequiredMax use 1
Usage notes
Example
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)
AN
Associated Purchase Orders
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30
MSG
300
Heading > Truckload Reference ID. > MSG

Message Text

OptionalMax use 1000
Usage notes
Example
MSG-01
933
Free-Form Message Text
Required
String (AN)
Min 1Max 80
N9 Truckload Reference ID. end
N1 Buying Party (Purchaser)
RequiredMax 1
Variants (all may be used)
Manufacturer of GoodsShip To
N1
310
Heading > Buying Party (Purchaser) > N1

Name

RequiredMax use 1
Usage notes
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-01
98
Entity Identifier Code
Required
Identifier (ID)
BY
Buying Party (Purchaser)
Optional
String (AN)
Min 1Max 60
Usage notes
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
92
Assigned by Buyer or Buyer's Agent
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 4
Usage notes
N3
330
Heading > Buying Party (Purchaser) > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
340
Heading > Buying Party (Purchaser) > N4

Geographic Location

OptionalMax use >1
Usage notes
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 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N1 Buying Party (Purchaser) end
N1 Manufacturer of Goods
OptionalMax 1
Variants (all may be used)
Buying Party (Purchaser)Ship To
N1
310
Heading > Manufacturer of Goods > N1

Name

RequiredMax use 1
Usage notes
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-01
98
Entity Identifier Code
Required
Identifier (ID)
MF
Manufacturer of Goods
Optional
String (AN)
Min 1Max 60
Usage notes
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
92
Assigned by Buyer or Buyer's Agent
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 4
Usage notes
N2
320
Heading > Manufacturer of Goods > N2

Additional Name Information

OptionalMax use 2
Usage notes
Example
Required
String (AN)
Min 1Max 60
N3
330
Heading > Manufacturer of Goods > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
340
Heading > Manufacturer of Goods > N4

Geographic Location

OptionalMax use >1
Usage notes
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 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N1 Manufacturer of Goods end
N1 Ship To
OptionalMax 1
N1
310
Heading > Ship To > N1

Name

RequiredMax use 1
Usage notes
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-01
98
Entity Identifier Code
Required
Identifier (ID)
ST
Ship To
Optional
String (AN)
Min 1Max 60
Usage notes
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
92
Assigned by Buyer or Buyer's Agent
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 4
Usage notes
N3
330
Heading > Ship To > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
340
Heading > Ship To > N4

Geographic Location

OptionalMax use >1
Usage notes
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 15
N4-04
26
Country Code
Optional
Identifier (ID)
Min 2Max 3
N1 Ship To end
Heading end

Detail

PO1 Loop
RequiredMax >1
PO1
010
Detail > PO1 Loop > PO1

Baseline Item Data

RequiredMax use 1
Usage notes
Example
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-10) or Product/Service ID (PO1-11) 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-06) or Product/Service ID (PO1-07) is present, then the other is required
PO1-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
PO1-02
330
Quantity Ordered
Optional
Decimal number (R)
Min 1Max 15
PO1-03
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Usage notes
CA
Case
EA
Each
LB
Pound
PO1-04
212
Unit Price
Required
Decimal number (R)
Min 1Max 15
Usage notes
PO1-05
639
Basis of Unit Price Code
Optional
Identifier (ID)
LE
Catalog Price per Each
PP
Price per Pound
QT
Quoted
UM
Price per Unit of Measure
WD
Wholesale Price per Dozen
WE
Wholesale Price per Each
PO1-06
235
Product/Service ID Qualifier
Required
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
PO1-07
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
PO1-08
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
PO1-09
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
PO1-10
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
PO1-11
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
PO1-12
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
PO1-13
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
CTP Loop
OptionalMax >1
Usage notes
CTP
040
Detail > PO1 Loop > CTP Loop > CTP

Pricing Information

RequiredMax use 1
Example
If Condition Value (CTP-10) is present, then Price Identifier Code (CTP-02) is required
CTP-01
687
Class of Trade Code
Optional
Identifier (ID)
RS
Resale
CTP-02
236
Price Identifier Code
Optional
Identifier (ID)
RES
Resale
UCP
Unit cost price
CTP-03
212
Unit Price
Optional
Decimal number (R)
Min 1Max 15
CTP-10
499
Condition Value
Optional
String (AN)
Min 1Max 10
CTP-11
289
Multiple Price Quantity
Optional
Numeric (N0)
Min 1Max 2
CTP Loop end
PID Loop
OptionalMax >1
PID
050
Detail > PO1 Loop > PID Loop > PID

Product/Item Description

RequiredMax use 1
Usage notes
Example
At least one of Product Description Code (PID-04) or Description (PID-05) is required
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
PID-01
349
Item Description Type
Required
Identifier (ID)
F
Free-form
S
Structured (From Industry Code List)
X
Semi-structured (Code and Text)
PID-02
750
Product/Process Characteristic Code
Optional
Identifier (ID)
08
Product
73
Vendor color description
74
Vendor size description
PID-03
559
Agency Qualifier Code
Optional
Identifier (ID)
VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
PID-04
751
Product Description Code
Optional
String (AN)
PP
Prepack
PID-05
352
Description
Optional
String (AN)
Min 1Max 80
PID Loop end
PO4
090
Detail > PO1 Loop > PO4

Item Physical Details

OptionalMax use >1
Usage notes
Example
Required
Numeric (N0)
Min 1Max 6
PO4-14
810
Inner Pack
Optional
Numeric (N0)
Min 1Max 6
Usage notes
SAC Loop
OptionalMax >1
SAC
130
Detail > PO1 Loop > SAC Loop > SAC

Service, Promotion, Allowance, or Charge Information

RequiredMax use 1
Usage notes
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
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)
N
No Allowance or Charge
SAC-03
559
Agency Qualifier Code
Optional
Identifier (ID)
VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
SAC-04
1301
Agency Service, Promotion, Allowance, or Charge Code
Optional
String (AN)
HA
Hanger Service
TC990101
Ticketing Service
SAC-13
127
Reference Identification
Optional
String (AN)
Min 1Max 30
Usage notes
SAC Loop end
IT8
140
Detail > PO1 Loop > IT8

Conditions of Sale

OptionalMax use 1
Usage notes
Example
IT8-01
563
Sales Requirement Code
Optional
Identifier (ID)
NS
No Substitutes
SLN Loop
OptionalMax >1
SLN
470
Detail > PO1 Loop > SLN Loop > SLN

Subline Item Detail

RequiredMax use 1
Usage notes
Example
If either Product/Service ID Qualifier (SLN-15) or Product/Service ID (SLN-16) is present, then the other is required
If either Product/Service ID Qualifier (SLN-13) or Product/Service ID (SLN-14) is present, then the other is required
If either Product/Service ID Qualifier (SLN-11) or Product/Service ID (SLN-12) is present, then the other is required
If either Product/Service ID Qualifier (SLN-09) or Product/Service ID (SLN-10) is present, then the other is required
If Basis of Unit Price Code (SLN-07) is present, then Unit Price (SLN-06) is required
If Relationship Code (SLN-08) is present, then Unit Price (SLN-06) is required
SLN-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
Usage notes
SLN-03
662
Relationship Code
Required
Identifier (ID)
I
Included
SLN-04
380
Quantity
Required
Decimal number (R)
Min 1Max 15
SLN-05
C001
Composite Unit of Measure
RequiredMax use 1
To identify a composite unit of measure (See Figures Appendix for examples of use)
Usage notes
C001-01
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
CA
Case
EA
Each
LB
Pound
SLN-06
212
Unit Price
Optional
Decimal number (R)
Min 1Max 15
SLN-07
639
Basis of Unit Price Code
Optional
Identifier (ID)
LE
Catalog Price per Each
QT
Quoted
WD
Wholesale Price per Dozen
WE
Wholesale Price per Each
SLN-08
662
Relationship Code
Optional
Identifier (ID)
I
Included
SLN-09
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
SLN-10
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
SLN-11
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
SLN-12
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
SLN-13
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
SLN-14
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
SLN-15
235
Product/Service ID Qualifier
Optional
Identifier (ID)
CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IB
International Standard Book Number (ISBN)
IN
Buyer's Item Number
UP
U.P.C. Consumer Package Code (1-5-5-1)
VA
Vendor's Style Number
SLN-16
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
PID
490
Detail > PO1 Loop > SLN Loop > PID

Product/Item Description

OptionalMax use 1000
Usage notes
Example
If Product Description Code (PID-04) is present, then Agency Qualifier Code (PID-03) is required
At least one of Product Description Code (PID-04) or Description (PID-05) is required
PID-01
349
Item Description Type
Required
Identifier (ID)
F
Free-form
S
Structured (From Industry Code List)
X
Semi-structured (Code and Text)
PID-02
750
Product/Process Characteristic Code
Optional
Identifier (ID)
08
Product
73
Vendor color description
74
Vendor size description
PID-03
559
Agency Qualifier Code
Optional
Identifier (ID)
VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
PID-04
751
Product Description Code
Optional
String (AN)
PP
Prepack
PID-05
352
Description
Optional
String (AN)
Min 1Max 80
SLN Loop end
PO1 Loop end
Detail end

Summary

CTT Loop
RequiredMax >1
CTT
010
Summary > CTT Loop > CTT

Transaction Totals

RequiredMax use 1
Usage notes
Example
CTT-01
354
Number of Line Items
Required
Numeric (N0)
Min 1Max 6
CTT-02
347
Hash Total
Optional
Decimal number (R)
Min 1Max 10
CTT Loop end
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

Sample 850

ISA*00*0000000000*00*0000000000*08*1111471111 *ZZ*1111991111 *230626*1010*U*00401*000000161*0*P*>~
GS*PO*1111471111*1111991111*20230626*1010*26*X*004010~
ST*850*1111~
BEG*00*SA*111-2222222-3333**20230626*D~
REF*IA*123456*AABBCC~
REF*DP*123~
FOB*DF*OR*LA CA~
CSH*N~
ITD*01*2*2**065~
DTM*037*20230703~
DTM*038*20230704~
TD5*B*2*XYZQ*U~
N1*BY*TARGET DC 1234*92*1234~
N3*1150 MAIN STREET~
N4*CITY*CA*95111*US~
PO1*1*6*EA*75.5*WE*CB*111111*VA*2222222*UP*3333333~
CTP*RS*RES*145.99*******1~
PID*F*73***GREEN~
PID*F*08***Qwerty~
PO4*6*************1~
CTT*1*6~
SE*20*1111~
GE*1*26~
IEA*1*000000161~

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.