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

X12 856 Ship Notice/Manifest

X12 Release 4010
Delimiters
  • ~ Segment
  • | Element
  • > Component
EDI samples
  • None included
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/amerisource-bergen/ship-noticemanifest/01H2DS8ZK1G4QN4YFHS8Q2EWAC
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
detail
HL Loop
HL
010
Hierarchical Level
Max use 1
Required
TD1
110
Carrier Details (Quantity and Weight)
Max use 20
Optional
TD5
120
Carrier Details (Routing Sequence/Transit Time)
Max use 12
Optional
TD3
130
Carrier Details (Equipment)
Max use 12
Optional
REF
150
Reference Identification
Max use 1
Required
DTM
200
Estimated and Current Schedule Delivery
Max use 1
Required
DTM
200
Shipped
Max use 1
Required
YNQ
335
Yes/No Question DPS
Max use 1
Optional
YNQ
335
Yes/No Question TS
Max use 1
Required
HL Loop
HL
010
Hierarchical Level
Max use 1
Required
PRF
050
Purchase Order Reference
Max use 1
Required
REF
150
Reference Identification
Max use 1
Optional
DTM
200
Date/Time Reference
Max use 10
Optional
HL 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)
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)
SH
Ship Notice/Manifest (856)
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)
856
Ship Notice/Manifest
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
BSN
020
Heading > BSN

Beginning Segment for Ship Notice

RequiredMax use 1
Example
BSN-01
353
Transaction Set Purpose Code
Required
Identifier (ID)
00
Original
05
Replace
BSN-02
396
Shipment Identification
Required
String (AN)
Min 2Max 30
Usage notes
Required
Date (DT)
CCYYMMDD format
Usage notes
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
Usage notes
BSN-05
1005
Hierarchical Structure Code
Optional
Identifier (ID)
0001
Shipment, Order, Packaging, Item
0004
Shipment, Order, Item
BSN-06
640
Transaction Type Code
Optional
Identifier (ID)
AS
Shipment Advice
DO
Drop Shipment Invoice
Heading end

Detail

HL Loop
RequiredMax 200000
HL
010
Detail > HL Loop > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
S
Shipment
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
TD1
110
Detail > HL Loop > TD1

Carrier Details (Quantity and Weight)

OptionalMax use 20
Example
If Packaging Code (TD1-01) is present, then Lading Quantity (TD1-02) is required
If Weight Qualifier (TD1-06) is present, then Weight (TD1-07) is required
If either Weight (TD1-07) or Unit or Basis for Measurement Code (TD1-08) is present, then the other is required
TD1-01
103
Packaging Code
Optional
String (AN)
Part 1/1
CAS
Case
CTN
Carton
PLT
Pallet
TD1-02
80
Lading Quantity
Optional
Numeric (N0)
Min 1Max 7
TD1-06
187
Weight Qualifier
Optional
Identifier (ID)
G
Gross Weight
TD1-07
81
Weight
Optional
Decimal number (R)
Min 1Max 10
TD1-08
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
LB
Pound
TD5
120
Detail > HL Loop > TD5

Carrier Details (Routing Sequence/Transit Time)

OptionalMax use 12
Example
If Identification Code Qualifier (TD5-02) is present, then Identification Code (TD5-03) is required
TD5-01
133
Routing Sequence Code
Optional
Identifier (ID)
O
Origin Carrier (Air, Motor, or Ocean)
TD5-02
66
Identification Code Qualifier
Optional
Identifier (ID)
2
Standard Carrier Alpha Code (SCAC)
TD5-03
67
Identification Code
Optional
String (AN)
Min 2Max 80
TD5-04
91
Transportation Method/Type Code
Optional
Identifier (ID)
A
Air
AE
Air Express
H
Customer Pickup
M
Motor (Common Carrier)
R
Rail
S
Ocean
SR
Supplier Truck
X
Intermodal (Piggyback)
TD5-05
387
Routing
Optional
String (AN)
Min 1Max 35
Usage notes
TD5-06
368
Shipment/Order Status Code
Optional
Identifier (ID)
CC
Shipment Complete on (Date)
PR
Partial Shipment
TD3
130
Detail > HL Loop > TD3

Carrier Details (Equipment)

OptionalMax use 12
Example
If Equipment Initial (TD3-02) is present, then Equipment Number (TD3-03) is required
TD3-01
40
Equipment Description Code
Optional
Identifier (ID)
CN
Container
RR
Rail Car
TL
Trailer (not otherwise specified)
VE
Vessel, Ocean
TD3-02
206
Equipment Initial
Optional
String (AN)
Min 1Max 4
TD3-03
207
Equipment Number
Optional
String (AN)
Min 1Max 10
REF
150
Detail > HL Loop > REF

Reference Identification

RequiredMax use >1
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
2I
Tracking Number
BM
Bill of Lading Number
CN
Carrier's Reference Number (PRO/Invoice)
MB
Master Bill of Lading
SN
Seal Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
DTM
200
Detail > HL Loop > DTM

Estimated and Current Schedule Delivery

RequiredMax use >1
Usage notes
Example
Variants (all may be used)
DTMShipped
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
017
Estimated Delivery
067
Current Schedule Delivery
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Required
Identifier (ID)
CD
Central Daylight Time
CS
Central Standard Time
CT
Central Time
ED
Eastern Daylight Time
ES
Eastern Standard Time
ET
Eastern Time
GM
Greenwich Mean Time
LT
Local Time
MD
Mountain Daylight Time
MS
Mountain Standard Time
MT
Mountain Time
PD
Pacific Daylight Time
PS
Pacific Standard Time
PT
Pacific Time
DTM
200
Detail > HL Loop > DTM

Shipped

RequiredMax use 1
Usage notes
Example
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
011
Shipped
Required
Date (DT)
CCYYMMDD format
Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format
DTM-04
623
Time Code
Required
Identifier (ID)
CD
Central Daylight Time
CS
Central Standard Time
CT
Central Time
ED
Eastern Daylight Time
ES
Eastern Standard Time
ET
Eastern Time
GM
Greenwich Mean Time
LT
Local Time
MD
Mountain Daylight Time
MS
Mountain Standard Time
MT
Mountain Time
PD
Pacific Daylight Time
PS
Pacific Standard Time
PT
Pacific Time
N1 Buying Party (Purchaser)
RequiredMax 1
Variants (all may be used)
Selling PartyShip FromShip To
N1
220
Detail > HL Loop > Buying Party (Purchaser) > N1

Name

RequiredMax use 1
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
BY
Buying Party (Purchaser)
Required
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Required
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
11
Drug Enforcement Administration (DEA)
21
Health Industry Number (HIN)
91
Assigned by Seller or Seller's Agent
92
Assigned by Buyer or Buyer's Agent
UL
UCC/EAN Location Code
N1-04
67
Identification Code
Required
String (AN)
Min 2Max 80
N3
240
Detail > HL Loop > 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
250
Detail > HL Loop > Buying Party (Purchaser) > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Required
Identifier (ID)
Min 3Max 15
REF
260
Detail > HL Loop > Buying Party (Purchaser) > REF

Reference Identification

OptionalMax use 12
Usage notes
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
D3
National Association of Boards of Pharmacy Number
FW
State License Identification Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
N1 Buying Party (Purchaser) end
N1 Selling Party
RequiredMax 1
N1
220
Detail > HL Loop > Selling Party > N1

Name

RequiredMax use 1
Usage notes
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
SE
Selling Party
Required
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Required
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
11
Drug Enforcement Administration (DEA)
21
Health Industry Number (HIN)
UL
UCC/EAN Location Code
N1-04
67
Identification Code
Required
String (AN)
Min 2Max 80
N3
240
Detail > HL Loop > Selling Party > N3

Address Information

OptionalMax use 1
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
250
Detail > HL Loop > Selling Party > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Required
Identifier (ID)
Min 3Max 15
REF
260
Detail > HL Loop > Selling Party > REF

Reference Identification

OptionalMax use 12
Usage notes
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
D3
National Association of Boards of Pharmacy Number
FW
State License Identification Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
N1 Selling Party end
N1 Ship From
RequiredMax 1
N1
220
Detail > HL Loop > Ship From > N1

Name

RequiredMax use 1
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
SF
Ship From
Required
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Required
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
11
Drug Enforcement Administration (DEA)
21
Health Industry Number (HIN)
91
Assigned by Seller or Seller's Agent
92
Assigned by Buyer or Buyer's Agent
UL
UCC/EAN Location Code
N1-04
67
Identification Code
Required
String (AN)
Min 2Max 80
N3
240
Detail > HL Loop > Ship From > 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
250
Detail > HL Loop > Ship From > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Required
Identifier (ID)
Min 3Max 15
REF
260
Detail > HL Loop > Ship From > REF

Reference Identification

OptionalMax use 12
Usage notes
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
D3
National Association of Boards of Pharmacy Number
FW
State License Identification Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
PER
270
Detail > HL Loop > Ship From > PER

Administrative Communications Contact

RequiredMax 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)
CE
Certifier
Required
String (AN)
Min 1Max 60
PER-03
365
Communication Number Qualifier
Optional
Identifier (ID)
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
PER-06
364
Communication Number
Optional
String (AN)
Min 1Max 80
Usage notes
N1 Ship From end
N1 Ship To
RequiredMax 1
N1
220
Detail > HL Loop > Ship To > N1

Name

RequiredMax use 1
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
ST
Ship To
Required
String (AN)
Min 1Max 60
Usage notes
N1-03
66
Identification Code Qualifier
Required
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
11
Drug Enforcement Administration (DEA)
21
Health Industry Number (HIN)
UL
UCC/EAN Location Code
N1-04
67
Identification Code
Required
String (AN)
Min 2Max 80
Usage notes
N3
240
Detail > HL Loop > 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
250
Detail > HL Loop > Ship To > N4

Geographic Location

OptionalMax use 1
Usage notes
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Required
Identifier (ID)
Min 3Max 15
REF
260
Detail > HL Loop > Ship To > REF

Reference Identification

OptionalMax use 12
Usage notes
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
D3
National Association of Boards of Pharmacy Number
FW
State License Identification Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
N1 Ship To end
YNQ
335
Detail > HL Loop > YNQ

Yes/No Question DPS

OptionalMax use 1
Usage notes
Example
Variants (all may be used)
YNQYes/No Question TS
YNQ-02
1073
Yes/No Condition or Response Code
Required
Identifier (ID)
Y
Yes
YNQ-05
933
Free-Form Message Text
Required
String (AN)
Min 1Max 264
Usage notes
YNQ-08
1270
Code List Qualifier Code
Required
Identifier (ID)
99
Purpose Code
YNQ-09
1271
Industry Code
Required
String (AN)
DPS
YNQ
335
Detail > HL Loop > YNQ

Yes/No Question TS

RequiredMax use 1
Usage notes
Example
Variants (all may be used)
YNQYes/No Question DPS
YNQ-02
1073
Yes/No Condition or Response Code
Required
Identifier (ID)
Y
Yes
YNQ-05
933
Free-Form Message Text
Required
String (AN)
Min 1Max 264
Usage notes
YNQ-06
933
Free-Form Message Text
Optional
String (AN)
Min 1Max 264
YNQ-07
933
Free-Form Message Text
Optional
String (AN)
Min 1Max 264
YNQ-08
1270
Code List Qualifier Code
Required
Identifier (ID)
99
Purpose Code
YNQ-09
1271
Industry Code
Required
String (AN)
TS
YNQ-10
933
Free-Form Message Text
Optional
String (AN)
Min 1Max 264
HL Loop
RequiredMax 1
HL
010
Detail > HL Loop > HL Loop > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
O
Order
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
0
No Subordinate HL Segment in This Hierarchical Structure.
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
PRF
050
Detail > HL Loop > HL Loop > PRF

Purchase Order Reference

RequiredMax use 1
Example
PRF-01
324
Purchase Order Number
Required
String (AN)
Min 1Max 22
Usage notes
PRF-02
328
Release Number
Optional
String (AN)
Min 1Max 30
PRF-03
327
Change Order Sequence Number
Optional
String (AN)
Min 1Max 8
Required
Date (DT)
CCYYMMDD format
Usage notes
REF
150
Detail > HL Loop > HL Loop > REF

Reference Identification

OptionalMax use >1
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
IV
Seller's Invoice Number
VN
Vendor Order Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
DTM
200
Detail > HL Loop > HL Loop > DTM

Date/Time Reference

OptionalMax use 10
Example
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
003
Invoice
Required
Date (DT)
CCYYMMDD format
HL Loop
OptionalMax 200000
Usage notes
HL
010
Detail > HL Loop > HL Loop > HL Loop > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
T
Shipping Tare
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
0
No Subordinate HL Segment in This Hierarchical Structure.
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
MAN
190
Detail > HL Loop > HL Loop > HL Loop > MAN

Marks and Numbers

RequiredMax use >1
Example
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
GM
SSCC-18 and Application Identifier
W
Pallet Number
MAN-02
87
Marks and Numbers
Required
String (AN)
Min 1Max 48
Usage notes
HL Loop
OptionalMax 200000
HL
010
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
P
Pack
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
1
Additional Subordinate HL Data Segment in This Hierarchical Structure.
LIN
020
Detail > HL Loop > HL Loop > HL Loop > HL Loop > LIN

Item Identification

OptionalMax use 1
Usage notes
Example
LIN-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
Usage notes
LIN-02
235
Product/Service ID Qualifier
Required
Identifier (ID)
Usage notes
LT
Lot Number
MF
Manufacturer
N1
National Drug Code in 4-4-2 Format
N2
National Drug Code in 5-3-2 Format
N3
National Drug Code in 5-4-1 Format
N4
National Drug Code in 5-4-2 Format
N5
National Health Related Item Code in 5-5 Format
N6
National Health Related Item Code in 4-6 Format
ND
National Drug Code (NDC)
NH
National Health Related Item Code
UA
U.P.C./EAN Case Code (2-5-5)
UK
U.P.C./EAN Shipping Container Code (1-2-5-5-1)
UP
U.P.C. Consumer Package Code (1-5-5-1)
UX
Universal Product Number
VC
Vendor's (Seller's) Catalog Number
LIN-03
234
Product/Service ID
Required
String (AN)
Min 1Max 48
Usage notes
PO4
060
Detail > HL Loop > HL Loop > HL Loop > HL Loop > PO4

Item Physical Details

OptionalMax use 1
Usage notes
Example
If either Size (PO4-02) or Unit or Basis for Measurement Code (PO4-03) is present, then the other is required
If Weight Qualifier (PO4-05) is present, then Gross Weight per Pack (PO4-06) 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
If Length (PO4-10) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Width (PO4-11) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Height (PO4-12) is present, then Unit or Basis for Measurement Code (PO4-13) is required
If Unit or Basis for Measurement Code (PO4-13) is present, then at least one of Length (PO4-10), Width (PO4-11) or Height (PO4-12) is required
Required
Numeric (N0)
Min 1Max 6
Required
Decimal number (R)
Min 1Max 8
PO4-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
AM
Ampoule
BO
Bottle
BX
Box
CA
Case
CH
Container
CT
Carton
DZ
Dozen
EA
Each
GS
Gross
KT
Kit
OZ
Ounce - Av
P1
Percent
PC
Piece
PF
Pallet (Lift)
PK
Package
SP
Shelf Package
SZ
Syringe
UN
Unit
VI
Vial
PO4-04
103
Packaging Code
Optional
String (AN)
Min 3Max 5
PO4-05
187
Weight Qualifier
Optional
Identifier (ID)
Min 1Max 2
PO4-06
384
Gross Weight per Pack
Optional
Decimal number (R)
Min 1Max 9
PO4-07
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
Min 2Max 2
PO4-08
385
Gross Volume per Pack
Required
Decimal number (R)
Min 1Max 9
PO4-09
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CC
Cubic Centimeter
CF
Cubic Feet
CI
Cubic Inches
CR
Cubic Meter
CY
Cubic Yard
PO4-10
82
Length
Optional
Decimal number (R)
Min 1Max 8
Optional
Decimal number (R)
Min 1Max 8
PO4-12
65
Height
Optional
Decimal number (R)
Min 1Max 8
PO4-13
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CM
Centimeter
IN
Inch
MM
Millimeter
PO4-14
810
Inner Pack
Optional
Numeric (N0)
Min 1Max 6
MAN
190
Detail > HL Loop > HL Loop > HL Loop > HL Loop > MAN

Marks and Numbers

OptionalMax use >1
Example
MAN-01
88
Marks and Numbers Qualifier
Required
Identifier (ID)
AI
UCC/EAN-128 Application Identifier (AI) and Data
GM
SSCC-18 and Application Identifier
MAN-02
87
Marks and Numbers
Required
String (AN)
Min 1Max 48
Usage notes
DTM
200
Detail > HL Loop > HL Loop > HL Loop > HL Loop > DTM

Date/Time Reference

RequiredMax use 10
Usage notes
Example
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
208
Lot Number Expiration
Required
Date (DT)
CCYYMMDD format
HL Loop
RequiredMax 200000
HL
010
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > HL

Hierarchical Level

RequiredMax use 1
Example
HL-01
628
Hierarchical ID Number
Required
String (AN)
Min 1Max 12
HL-02
734
Hierarchical Parent ID Number
Required
String (AN)
Min 1Max 12
HL-03
735
Hierarchical Level Code
Required
Identifier (ID)
I
Item
HL-04
736
Hierarchical Child Code
Optional
Identifier (ID)
0
No Subordinate HL Segment in This Hierarchical Structure.
LIN
020
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > LIN

Item Identification

RequiredMax use 1
Usage notes
Example
If either Product/Service ID Qualifier (LIN-06) or Product/Service ID (LIN-07) is present, then the other is required
If either Product/Service ID Qualifier (LIN-08) or Product/Service ID (LIN-09) is present, then the other is required
If either Product/Service ID Qualifier (LIN-10) or Product/Service ID (LIN-11) is present, then the other is required
If either Product/Service ID Qualifier (LIN-14) or Product/Service ID (LIN-15) is present, then the other is required
If either Product/Service ID Qualifier (LIN-16) or Product/Service ID (LIN-17) is present, then the other is required
If either Product/Service ID Qualifier (LIN-18) or Product/Service ID (LIN-19) is present, then the other is required
If either Product/Service ID Qualifier (LIN-20) or Product/Service ID (LIN-21) is present, then the other is required
LIN-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
Usage notes
LIN-02
235
Product/Service ID Qualifier
Required
Identifier (ID)
Usage notes
LT
Lot Number
MF
Manufacturer
N1
National Drug Code in 4-4-2 Format
N2
National Drug Code in 5-3-2 Format
N3
National Drug Code in 5-4-1 Format
N4
National Drug Code in 5-4-2 Format
N5
National Health Related Item Code in 5-5 Format
N6
National Health Related Item Code in 4-6 Format
ND
National Drug Code (NDC)
NH
National Health Related Item Code
UA
U.P.C./EAN Case Code (2-5-5)
UI
U.P.C. Consumer Package Code (1-5-5)
UK
U.P.C./EAN Shipping Container Code (1-2-5-5-1)
UP
U.P.C. Consumer Package Code (1-5-5-1)
UX
Universal Product Number
VC
Vendor's (Seller's) Catalog Number
LIN-03
234
Product/Service ID
Required
String (AN)
Min 1Max 48
Usage notes
LIN-04
235
Product/Service ID Qualifier
Required
Identifier (ID)
LT
Lot Number
LIN-05
234
Product/Service ID
Required
String (AN)
Min 1Max 48
LIN-06
235
Product/Service ID Qualifier
Optional
Identifier (ID)
LT
Lot Number
LIN-07
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
LIN-08
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-09
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-10
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-11
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-12
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-13
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-14
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-15
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-16
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-17
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-18
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-19
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
LIN-20
235
Product/Service ID Qualifier
Optional
Identifier (ID)
Min 2Max 2
LIN-21
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
SN1
030
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > SN1

Item Detail (Shipment)

OptionalMax use 1
Usage notes
Example
If either Quantity Ordered (SN1-05) or Unit or Basis for Measurement Code (SN1-06) is present, then the other is required
SN1-01
350
Assigned Identification
Required
String (AN)
Min 1Max 20
Usage notes
SN1-02
382
Number of Units Shipped
Required
Decimal number (R)
Min 1Max 10
SN1-03
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
AM
Ampoule
BO
Bottle
BX
Box
CA
Case
CH
Container
CT
Carton
DZ
Dozen
EA
Each
GS
Gross
KT
Kit
OZ
Ounce - Av
P1
Percent
PC
Piece
PF
Pallet (Lift)
PK
Package
SP
Shelf Package
SZ
Syringe
UN
Unit
VI
Vial
SN1-04
646
Quantity Shipped to Date
Optional
Decimal number (R)
Min 1Max 15
SN1-05
330
Quantity Ordered
Required
Decimal number (R)
Min 1Max 15
SN1-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
AM
Ampoule
BO
Bottle
BX
Box
CA
Case
CH
Container
CT
Carton
DZ
Dozen
EA
Each
GS
Gross
KT
Kit
OZ
Ounce - Av
P1
Percent
PC
Piece
PF
Pallet (Lift)
PK
Package
SP
Shelf Package
SZ
Syringe
UN
Unit
VI
Vial
PID
070
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > PID

Product/Item Description

OptionalMax use 200
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
REF
150
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > REF

Reference Identification

OptionalMax use >1
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
IV
Seller's Invoice Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
Usage notes
DTM
200
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > DTM

Date/Time Reference

RequiredMax use 10
Usage notes
Example
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)
208
Lot Number Expiration
Required
Date (DT)
CCYYMMDD format
N1 Loop
OptionalMax >1
N1
220
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > N1 Loop > N1

Name

RequiredMax use 1
Example
N1-01
98
Entity Identifier Code
Required
Identifier (ID)
DS
Distributor
MF
Manufacturer of Goods
SU
Supplier/Manufacturer
Optional
String (AN)
Min 1Max 60
N1-03
66
Identification Code Qualifier
Required
Identifier (ID)
1
D-U-N-S Number, Dun & Bradstreet
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
11
Drug Enforcement Administration (DEA)
21
Health Industry Number (HIN)
UL
UCC/EAN Location Code
N1-04
67
Identification Code
Required
String (AN)
Min 2Max 80
N3
240
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > N1 Loop > N3

Address Information

OptionalMax use 1
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55
N4
250
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > N1 Loop > N4

Geographic Location

OptionalMax use 1
Example
N4-01
19
City Name
Required
String (AN)
Min 2Max 30
N4-02
156
State or Province Code
Required
Identifier (ID)
Min 2Max 2
N4-03
116
Postal Code
Required
Identifier (ID)
Min 3Max 15
REF
260
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > N1 Loop > REF

Reference Identification

OptionalMax use >1
Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)
KK
Delivery Reference
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30
Usage notes
REF-03
352
Description
Optional
String (AN)
Min 1Max 80
Usage notes
N1 Loop end
YNQ
335
Detail > HL Loop > HL Loop > HL Loop > HL Loop > HL Loop > YNQ

Yes/No Question

OptionalMax use 1
Usage notes
Example
YNQ-01
1321
Condition Indicator
Optional
Identifier (ID)
Min 2Max 2
YNQ-02
1073
Yes/No Condition or Response Code
Required
Identifier (ID)
Usage notes
Y
Yes
YNQ-08
1270
Code List Qualifier Code
Required
Identifier (ID)
99
Purpose Code
YNQ-09
1271
Industry Code
Required
String (AN)
DIR
Product Purchased Directly
RDPS
Received Direct Purchase Statement
HL Loop end
HL Loop end
HL Loop end
HL Loop end
HL Loop end
Detail end

Summary

CTT
010
Summary > CTT

Transaction Totals

OptionalMax use 1
Example
CTT-01
354
Number of Line Items
Required
Numeric (N0)
Min 1Max 6
Usage notes
SE
020
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

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.