Last Modified 03/20/13 Page 1
EDI
Implementation Guide and
Information Manual
850 – Purchase Order
855 – Purchase Order Acknowledgment
860 – Purchase Order Change Request
856 – Advanced Supply Notice
Last Modified 03/20/13 Page 2
General Information
This document contains our EDI mapping standards as well as other general information. All of
the information you need to get started with your EDI relationship will be found in this booklet.
A subsequent “Vendor Compliance” guide will be provided to you outlining our label
requirements.
Currently Sleepy’s transacts via the ANSI X12 850 Purchase Order, ANSI X12 855 Purchase
Order Acknowledgment, ANSI X12 860 Purchase Order Change Request and ANSI X12 856
Advanced Ship Notice.
We have enclosed a trading partner questionnaire at the end of this document to help get you
started. This form contains all the information that we need so that we can have you configured
on both our system and the VAN. Please complete and email the information to
We have two phases of implementation: Parallel and Production. Our receiver IDs are the same
for test and production. Please note on the questionnaire if your test and production IDs are
different.
Last Modified 03/20/13 Page 3
850 Purchase Orders
X.12 Version 4010 Data Segment Sequence
Segment Description Min
Use
Max
Use Req
ISA Interchange Control Hdr 1 1 M
GS Functional Group Header 1 1 M
ST Transaction Set Header 1 1 M
BEG Beginning Segment for PO 1 1 M
REF Reference Numbers 1 1 M
ITD Terms of Sale/Deferred 0
1 O
N9 Reference Number 0 1 O
MSG Message Text 0 100 O
N1 Name 1 1 M
N3 Address Information 1 1 O
N4 Geographic Location 1 1 O
PO1 PO Baseline Item Data 1 1 M
PID Product/Item Description 0 20 O
REF Reference Numbers 0 999
99
O
DTM Date/Time Reference 1 2 M
SLN Subline Item Detail 0 24 O
N9 Reference Number 0 1 O
MSG Message Text 0 100 O
CTT Transaction Totals 1 1 M
SE Transaction Set Trailer 1 1 M
GE Function Group Trailer 1 1 M
IEA Interchange Control Trailer 1 1 M
Notes:
M - Mandatory / O – Optional
Light gray shaded loop (N9 Loop) may repeat up to 1 time
Med gray shaded loop (N1 Loop) may repeat up to 2 times
Dark gray shaded loop (PO1 Loop) may repeat up to 1000 times
Last Modified 03/20/13 Page 4
ISA – Interchange Control Header
Mandatory
Segment Description Min Max Value Req
ISA01 Authorization Info
Qualifier 2 2 00 M
ISA02 Authorization Info 10 10 Blank Spaces M
ISA03 Security Info Qualifier 2 2 00 M
ISA04 Security Info 10 10 Blank Spaces M
ISA05 Interchange Sender ID
Qualifier 2 2 Sender ID
Qualifier M
ISA06 Interchange Receiver
ID
15 15 Sender ID M
ISA07 Interchange Receiver
ID Qualifier 2 2 Receiver ID
Qualifier M
ISA08 Interchange Receiver
ID
15 15 Receiver ID M
ISA09 Interchange Date 8 8 CCYYMMDD M
ISA10 Interchange Time 4 4 HHMM M
ISA11 Interchange Control ID 1 1 U M
ISA12 Interchange Version
Number
5 5 00401 M
ISA13 Interchange Control
Number 9 9 M
ISA14 Acknowledgement
Requested 1 1 0 M
ISA15 Test Indicator 1 1 T or P M
Example:
ISA*00* *00* *12*6514906278 *12*YOURNUMBER
*089820*1315*U*00401*000000001*1*P>~
Last Modified 03/20/13 Page 5
GS – Functional Group Header
Mandatory
Segment Description Min Ma
x Value Req
GS01 Functional ID Code 2 2 PO M
GS02 Application Sender
Code
2 12 Sender ID M
GS03 Application Receiver
Code
2 12 Receiver ID M
GS04 Data Interchange
Data
8 8 CCYYMM
DD
M
GS05 Data Interchange
Time
4 4 HHMM
X
004010
M
GS06 Data Interchange
Control Number 1 9 M
GS07 Responsible Agency
Code
1 2 X M
GS08 Version Release 1 12 004010 M
Example:
GS*PO*6514906278* YOURNUMBER*20001022*1315*
000000001*X*004010~
ST – Transaction Set Header
Mandatory
Segment Description Min Max Value Req
ST01 Transaction Set ID 3 3 850 M
ST02 Transaction Set Control 4 9 M
Example:
ST* 850*000000001~
Last Modified 03/20/13 Page 6
BEG - Beginning Segment for Purchase Order
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
BEG01 Transaction Set Purpose
Code
2 2 00 M
BEG02 Transaction Set Type
Code
2 2 See Notes M
BEG03 Purchase Order Number 1 22 M
BEG05 Purchase Order Date 8 8 CCYYMMD
D
M
Example:
BEG*00*SA*54123**20001020~
Notes:
BEG01 Value of 00 indicates an “original” purchase order.
BEG02 Code Specifying type of purchase order.
OS = Custom/Special Order
SA = Stock Order
RO = Rush Order
DS = Drop Shipment
NE = New Order
SP = Floor Sample
CN = Container Order
SS = Service Order
ZZ = Vendor Direct Product
Last Modified 03/20/13 Page 7
REF- Reference Identification
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
REF01 Reference Identification
Qualifier
2 3 IA M
REF02 Reference Number 2 30 M
Example:
REF*IA*INOVIS~
Notes:
REF02= Reference Information is Internal Vendor Number. It identifies Retailer’s account
number for you.
ITD - Terms of Sale/Deferred Terms of Sale
(Currently not being used by Sleepy’s)
Optional/ Max Use=1 time
Segment Description Min Max Value Req
ITD01 Terms Type Code 2 2 08 M
ITD03 Terms Discount Percent 1 6 M
ITD05 Terms Discount Days Due 1 3 M
ITD07 Terms Net Days 1 3 M
Example:
ITD*08**55**30*30~
Last Modified 03/20/13 Page 8
N9 – Reference Number (Currently not being used by Sleepy’s)
Optional / Max Use=1 / Loop Max=1
Segment Description Min Max Value Req
N901 Reference # Qualifier 1 2 L1 M
N902 Reference Number 1 8 M
Example:
N9*L1*ORDER NOTES MAY FOLLOW IN MSG~
MSG – Message Text (Currently not being used by Sleepy’s)
Optional / Max Use=1000
Segment Description Min Max Value Req
MSG01 Free-Form Message Text 1 264 M
Example:
MSG*THESE ARE THE PURCHASE ORDER COMMENTS~
Last Modified 03/20/13 Page 9
N1 - Name
Mandatory / Max Use=1 time per loop / Max Loop=2 times
Segment Description Min Max Value Req
N101 Entity ID Code 2 2 See Notes M
N102 Name 1 35 Free Form Name M
N103 ID Code Qualifier 1 2 92 M
N104 ID Code 2 17 99 M
Example:
N1*ST*NAME*92*99~
Notes:
Retailer will send a value of “ST” to indicate Ship-To, “BT” to indicate Bill-To.
In the case of drop ship orders (BEG02 = DS) there will only be a “BT” address. There will
be an “ST” address after each “PID” segment in the PO1 loop.
In the case of vendor direct orders (BEG02 = ZZ) there will 3 addresses sent over.
The “ST” will be the address of the third party facility. The N104 segment will be the
agent id and the N201 segment will contain the waybill number.
The “BT” will be the billing address.
The “Z7” will be the customer’s address that will be needed by the third part facility.
N3 - Address Information
Optional / Max Use=1 times per loop / Max Loop=2 times
Segment Description Min Max Value Req
N301 Address Information 1 35 M
N302 Address Information 1 35 O
Example:
N3*123 MAIN STREET*OFFICE 12A~
Last Modified 03/20/13 Page 10
N4 – Geographic Location
Optional / Max Use=1 times per loop / Max Loop=2 times
Segment Description Min Max Value Req
N401 City Name 2 19 M
N402 State or Province Code 2 2 M
N403 Postal Code 3 9 M
Example:
N4*BROOKLYN*NY*11229~
PO1 – Purchase Order Baseline Item Data
Mandatory / Max Use=1 time per loop / Max Loop=1000 times
Segment Description Min Ma
x
Value Req
PO101 Assigned Identification 1 11 Line Number M
PO102 Quantity Ordered 1 9 M
PO103 Unit of Measurement
Code
2 2 M
PO104 Unit Price 1 14 M
PO106 Product/Service ID
Qualifier
2 2 VC M
PO107 Product/Service ID 1 30 Vendor Stock
Number M
PO108 Product/Service ID
Qualifier
2 2 SK M
PO109 Product/Service ID 1 30 Item SKU
Number M
PO110 Product/Service ID
Qualifier 2 2 ZZ O
PO111 Product/Service ID 1 30 Combination
Number O
Example:
PO1*0001*4*EA*199.99*VC*KD865 5/0MAT*SK*725363846~
Notes:
P0101 – Assigned Identification is the line number from the Retailer. All line numbers
on original PO should be acknowledged. Zero quantities are acceptable.
Last Modified 03/20/13 Page 11
PID – Product/Item Description
Optional / Max Use=20 times per loop
Segment Description Min Max Value Req
PID01 Item Description Type 1 1 F M
PID02 Product/Process Character Code 2 3 See
Notes
M
PID05 Description 1 80 M
Example:
PID*F*74***QUEEN~
Notes:
The PID02 may contain the following codes that will qualify the PID05:
08=Description
38=Grade
74=Size
14=Finish/Cover
REF - Reference Numbers (Currently not being used by Sleepy’s)
Optional / Max Use=99999 times
Segment Description Min Max Value Req
REF01 Reference Number Qualifier 1 2 SU M
REF02 Reference Number 1 100 M
Example:
REF*SU*0000369875~
Notes:
REF02=To indicate identifying marks and numbers for shipping containers.
Last Modified 03/20/13 Page 12
N1 – Name (ONLY USED IF BEG02 = DS)
Mandatory / Max Use=1 time per loop / Max Loop=2 times
Segment Description Min Max Value Req
N101 Entity ID Code 2 2 See Notes M
N102 Name 1 35 Free Form Name M
N103 ID Code Qualifier 1 2 92 M
N104 ID Code 2 17 DSC M
Example:
N1*ST*NAME*92*99~
Notes:
Retailer will send a value of “ST” to indicate Ship-To address of the DS customer
N3 - Address Information (ONLY USED IF BEG02 = DS)
Optional / Max Use=1 times per loop / Max Loop=2 times
Segment Description Min Max Value Req
N301 Address Information 1 35 M
N302 Address Information 1 35 O
Example:
N3*123 MAIN STREET*OFFICE 12A~
N4 – Geographic Location (ONLY USED IF BEG02 = DS)
Optional / Max Use=1 times per loop / Max Loop=2 times
Segment Description Min Max Value Req
N401 City Name 2 19 M
N402 State or Province Code 2 2 M
N403 Postal Code 3 9 M
Example:
N4*BROOKLYN*NY*11229~
Last Modified 03/20/13 Page 13
DTM - Date/Time Reference (ONLY USED IF BEG02 IS NOT EQUAL TO DS)
Mandatory/ Max Use=2 times per loop / Max Loop=1 times
Segment Description Min Max Value Req
DTM01 Date/Time
Qualifier
3 3 See Notes M
DTM02 Date 8 8 CCYYMMDD M
Example:
DTM*087*2001020~
Notes:
The following codes may be used in the DTM01:
087=Requested Ship Date
077=Requested Arrival Date
Note: These dates may be the same.
N9 – Reference Number (Currently not being used by Sleepy’s)
Optional / Max Use=1 / Loop Max=1
Segment Description Min Max Value Req
N901 Reference # Qualifier 1 2 L1 M
N902 Reference Number 1 8 M
Example:
N9*L1*ORDER NOTES MAY FOLLOW IN MSG~
MSG – Message Text (Currently not being used by Sleepy’s)
Optional / Max Use=1000
Segment Description Min Max Value Req
MSG01 Free-Form Message Text 1 264 M
Example:
MSG*THESE ARE THE PURCHASE ORDER COMMENTS~
Last Modified 03/20/13 Page 14
SLN – Subline Item Detail (Currently not being used by Sleepy’s)
Optional/ Max Use=1 time per loop / Max Loop=24 times
Segment Description Min Ma
x
Value Req
SLN01 Assigned Identification 1 11 Line
Number
M
SLN03 CONFIGURATION CODE 1 30 A M
SLN09 Product/Service Id
Qualifier 2 2 See
Attachment M
SLN10 Product/Service ID 1 30 M
Example:
SLN*1**A******BD*2743-14~
Note: See Attachment for option values. SLN may be used for special/custom orders. Your implementation contact
will alert you to use of the SLN at the commencement of the implementation.
CTT – Transaction Totals
Mandatory / Max Use=1 time
Segment Description Min Ma
x
Value Req
CTT01 Number of Line
Items
1 6 M
CTT02 Hash Total 1 10 Total Quantity
Ordered O
Example: CTT*0004*8~
Last Modified 03/20/13 Page 15
855 Purchase Order Acknowledgement
X.12 Version 4010 Data Segment Sequence
Segment Description
Min
Use
Max
Use Req
Max #
Loops
ISA Interchange Control Hdr 1 1 M 1
GS Functional Group Header 1 1 M 1
ST Transaction Set Header 1 1 M 1
BAK Beginning Record 1 1 M
1
REF Reference Numbers 1 1 M 1
DTM Date/Time Reference 1 1 O 1
N1 Name 1 1 O 2
N3 Address Information 1 1 O 2
N4 Geographic Location 1 1 O 2
PO1 Line Item Change Data 1 1 * 1000
PID Product/Item Description 1 1 * 1000
DTM Date/Time Reference
1 1 * 1000
ACK Line Item Acknowledgment
1 1 * 1000
CTT Transaction Totals 1 1 M 1
SE Transaction Set Trailer 1 1 M 1
GE Function Group Trailer 1 1 M 1
IEA Interchange Control Trailer 1 1 M 1
* Mandatory if changes are sent
Notes:
M - Mandatory / O – Optional
* This record is mandatory if BAK02 = ‘AC’ and optional – otherwise
Last Modified 03/20/13 Page 16
ISA- INTERCHANGE CONTROL HEADER
Mandatory / Max Use=1 time
Segment Description Usage Type Values
ISA01 AUTHORIZATION
INFORMATION
QUALIFIER
M ID 2/2 00
ISA02 AUTHORIZATION INFORMATION M AN 10/10 10 blanks
ISA03 SECURITY INFORMATION
QUALIFIER
M ID 2/2 00
ISA04 SECURITY INFORMATION M AN 10/10 10 blanks
ISA05 INTERCHANGE ID QUALIFIER M ID 2/2 *
ISA06 INTERCHANGE SENDER ID M AN 15/15 *
ISA07 INTERCHANGE ID QUALIFIER M ID 2/2 *
ISA08 INTERCHANGE RECEIVER ID M AN 15/15 *
ISA09 INTERCHANGE DATE M DT 6/6 YYMMDD
ISA10 INTERCHANGE TIME M TM 4/4 HHMM
ISA11 INTERCHANGE
CONTROL
STANDARDS
IDENTIFIER
M ID 1/1 U
ISA12 INTERCHANGE CONTROL
VERSION NUMBER
M ID 5/5 00401
ISA13 INTERCHANGE CONTROL
NUMBER
M N0 9/9 Sequential
Number
ISA14 ACKNOWLEDGEMENT
REQUESTED
M ID 1/1 0
ISA15 USAGE INDICATOR M ID 1/1 P – Prod
T – Test
ISA16 COMPONENT ELEMENT
SEPARATOR
M 1/1 >
* Note: This data is cross referenced in the “Sleepys –TP Setup Worksheet”
Example:
ISA*00* *00* *12*6514906278 *01*YOURNUMBER
*120925*1315*U*00401*000000001*1*P>~
Last Modified 03/20/13 Page 17
GS – Function Group Header
Mandatory / Max Use=1 time
Segment Description Usage Type Values
GS01 FUNCTIONAL INDENTIFIER CODE
M
ID 2/2 PR
GS02 APPLICATION SENDERS CODE
M M
AN 2/15 = ISA06
GS03 APPLICATION RECEIVERS CODE
M AN 2/15 = ISA08
GS04 DATE M DT 8/8 CCYYMMDD
GS05 TIME M TM 4/8 HHNN
GS06 GROUP CONTROL NUMBER M N0 1/9 ????
GS07 RESPONSIBLE AGENCY CODE
M ID 1/2 X
GS08 VERSION IDENTIFIER CODE
M AN 1/12 004010
Example:
GS*PR*6514906278*YOURNUMBER *20120925*1315*000000001*X*004010~
ST – Transaction Set Header
Mandatory / Max Use=1 time
Segment Description Usage Type Values
ST01 TRANS. SET I.D. NUMBER M
ID 3/3 855
ST02 TRANS. SET CONTROL NUMBER
M
AN 4/9
Example:
ST*855*000000001~
Last Modified 03/20/13 Page 18
BAK – Beginning Segment for Purchase Order Acknowledgment
Mandatory / Max Use=1 time
Segment Description Usage Type Values
BAK01 TRANSACTION SET PURPOSE CODE
M ID 2/2 00
BAK02 ACKNOWLEDGEMENT TYPE
M ID 2/2 AC- ACKNOWLEDGE- WITH DETAIL AND CHANGE AD - ACKNOWLEDGE - WITH DETAIL, NO CHANGE
AK -
ACKNOWLE
DGE - NO
DETAIL OR
CHANGE
AT-
ACCEPTED
RD-
REJECTED
WITH
DETAIL
BAK03 PURCHASE ORDER NUMBER
M AN 1/22
BAK04 DATE (of the document) M DT 8/8 CCYYMMDD
Example:
BAK*00*AC*123123*20120925
Last Modified 03/20/13 Page 19
REF- Reference Numbers
Segment Description Min Max Value Req
REF01 REFERENCE
IDENTIFICATION
QUALIFIER
2 3 IA M
REF02 REFERENCE NUMBER 2 30 M
Example:
REF*IA*SERT~
Notes:
REF02= Reference Information is Internal Vendor Code. It identifies Retailer’s account
number for you.
DTM – Date/Time Reference
Segment Description Usage Type Values
DTM01 DATE/TIME QUALIFIER M ID 3/3 See Notes
DTM02 DATE M DT 8/8 CCYYMMDD
Example:
DTM*077*20121020~
Notes:
The following codes may be used in the DTM01:
087=Requested Ship Date
077=Requested Arrival Date
Last Modified 03/20/13 Page 20
N1 – Name
Segment Description Min Max Value Req
N101 Entity ID Code 2 2 See Notes M
N102 Name 1 35 Free Form
Name M
N103 ID Code Qualifier 1 2 92 M
N104 ID Code 2 17 970 M
Example:
N1*ST*NAME*92*970~
Notes:
N101 - Retailer will send a value of “ST” to indicate Ship-To, “BT” to indicate Bill-To.
In the case of drop ship orders (BEG02 of the 850 file is set to “DS”) there will only be a
“BT” address.
There will be an “ST” address after each “PID” segment in the PO1 loop.
N103 – Hard coded to ‘92’
N104 – is set to 3 digits Warehouse Code. In case of DropShip order this is set to the Bill-To
warehouse code (990)
N3 - Address Information
Segment Description Min Max Value Req
N301 Address Information 1 35 M
N302 Address Information 1 35 O
Example:
N3*123 MAIN STREET*OFFICE 12A~
Last Modified 03/20/13 Page 21
N4 – Geographic Location
Segment Description Min Max Value Req
N401 City Name 2 19 M
N402 State or Province Code 2 2 M
N403 Postal Code 3 9 M
Example:
N4*BROOKLYN*NY*11229~
PO1 – Line Item Change Data
Mandatory / Max Use=1 time per loop / Max Loop=1000 times
Segment Description Min Max Value Req
PO101 Assigned Identification 1 11 Line Number M
PO102 Quantity Ordered 1 9 M
PO103 Unit of Measurement
Code 2 2 M
PO104 Unit Price 1 14 M
PO106 Product/Service ID
Qualifier 2 2 VC M
PO107 Product/Service ID 1 30 Vendor
Stock
Number
M
PO108 Product/Service ID
Qualifier 2 2 SK M
PO109 Product/Service ID 1 30 Vendor
Stock
Number
M
Example:
PO1*0001*4*EA*199.99*VC*KD865 5/0MAT*SK*KD865 5/0MAT~
Notes:
P0101 – Assigned Identification is the line number from the Retailer. All line numbers on
original PO should be acknowledged. Zero quantities are acceptable.
Last Modified 03/20/13 Page 22
PID – Product/Item Description
Segment Description Min Max Value Req
PID01 Item Description Type 1 1 F M
PID02 Product/Process Character
Code
2 3 See Notes M
PID05 Description 1 80 M
Example:
PID*F*74***QUEEN~
Notes:
The PID02 may contain the following codes that will qualify the PID05:
08=Description
38=Grade
74=Size
14=Finish/Cover
DTM – Date/Time Reference (line level)
Segment Description Usage Type Values
DTM01 DATE/TIME QUALIFIER M ID 3/3 See Notes
DTM02 DATE M DT 8/8 CCYYMMDD
Example:
DTM*087*2001020~
Notes:
The following codes may be used in the DTM01:
087=Requested Ship Date
077=Requested Arrival Date
Last Modified 03/20/13 Page 23
ACK - Line Item Acknowledgment Segment Description Usage Type Values
ACK01 LINE ITEM STATUS CODE O
2/2 IA – Item Accepted DR - Item Accepted - Date Rescheduled
ACK02 QUANTITY O R 1/15
ACK03 UNIT OF MEASUREMENT CODE
O ID 2/2
ACK04 DATE/TIME QUALIFIER O ID 3/3 Not used - Spaces
ACK05 DATE O DT 8/8 CCYYMMDD
ACK06 REQUEST REFERENCE NUMBER
O 1/45 Can be used for
Line Number
ACK07 PRODUCT/ SERVICE ID QUALIFIER
O ID 2/2 VP – VENDORS PRODUCT NUMBER BP – BUYERS PRODUCT NUMBER
ACK08 PRODUCT/SERVICE ID O AN 1/45 VSN
ACK09 PRODUCT/ SERVICE ID QUALIFIER
O ID 2/2 SK
ACK10 PRODUCT/SERVICE ID O AN 1/45 VSN
Example: ACK*IA*2*EA* *20120925*0001*BP*KD865 5/0MAT*SK*KD865 5/0MAT~
Last Modified 03/20/13 Page 24
CTT – Transaction Totals
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
CTT01 Number of Line Items 1 6 M
CTT02 Hash Total 1 10 Total
Quantity
Ordered
O
Example:
CTT*3*8~
SE - Transaction Set Trailer
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
SE01 Number of Included
Segments 1 10 M
SE02
Transaction Set Control
Number 4 9 M
Example:
SE*10*1001
Last Modified 03/20/13 Page 25
GE – Function Set Trailer
Mandatory / Max Use=1 time
Segment Description Req
GE01 Number of Transaction Sets Included
Total Number of Transaction Sets
GE02 Group Control Number
Same as GS06
Example:
GE*1*000000001
IEA - Interchange Control Trailer
Mandatory / Max Use=1 time
Segment Description Req
IEA01 Number of Included Functional Groups
Total GS Segments in Transmission
IEA02 Interchange Control Number Same as ISA13
Example:
IEA*1*000000001
Last Modified 03/20/13 Page 26
Sample File:
ISA*00* *00* *12*5168448800 *ZZ*KINGSDOWN
*120924*1159*U*00401*000004933*0*P*>
GS*PR*5168448800*KINGSDOWN*20120924*1159*2662*X*004010
ST*855*0004
BAK*00*AC*176554**20120924
REF*IA*KING
DTM*077*20121001
N1*ST*SLEEPYS LLC*92*990
N3*1000 South Oyster Bay Road
N4*Hicksville*NY*11801
PO1*1*2*EA*42**VC*KD775 39X80BUNKIE*SK*KD775 39X80BUNKIE
PID*F*08***39X80 EMERALD CROWN EURO PLAT.
DTM*077*20121001
PO1*2*2*EA*70**VC*KD268836X84L*SK*KD268836X84L
PID*F*08***SLEEPING BEAUTY 36X84 LP BOX
DTM*077*20121001
ACK*IA*2*EA* *20120925*0001*BP*KD865 5/0MAT*SK*KD865 5/0MAT~
PO1*3*1*EA*910**VC*KD268836X84L*SK*KD268836X84L
PID*F*08***SLEEP.BEAUTY BTOP 72X84 MAT
DTM*077*20121001
ACK*IA*2*EA* *20120925*0001*KD268836X84L*SK*KD268836X84L~
CTT*3*5
SE*18*0004
GE*5*2662
IEA*1*000004933
Last Modified 03/20/13 Page 27
860 Purchase Order Change Request
X.12 Version 4010 Data Segment Sequence
Segment Description
Min
Use
Max
Use Req
Max #
Loops
ISA Interchange Control Hdr 1 1 M 1
GS Functional Group Header 1 1 M 1
ST Transaction Set Header 1 1 M 1
BCH Beginning Record 1 1 M
1
REF Reference Numbers 1 1 M 1
N1 Name 1 1 M 2
N3 Address Information 1 1 O 2
N4 Geographic Location 1 1 O 2
POC Line Item Change Data 1 1 * 1000
PID Product/Item Description 1 1 * 1000
DTM Date/Time Reference
1 1 * 1000
CTT Transaction Totals 1 1 M 1
SE Transaction Set Trailer 1 1 M 1
GE Function Group Trailer 1 1 M 1
IEA Interchange Control Trailer 1 1 M 1
Last Modified 03/20/13 Page 28
ISA- Interchange Control Header
Mandatory / Max Use=1 time
Segment Description Usage Type Values
ISA01 AUTHORIZATION
INFORMATION QUALIFIER
M 2 00
ISA02 AUTHORIZATION INFORMATION M 10
10 blanks
ISA03 SECURITY INFORMATION
QUALIFIER
M 2 00
ISA04 SECURITY INFORMATION M 10 10 blanks
ISA05 INTERCHANGE ID QUALIFIER M 2 *
ISA06 INTERCHANGE SENDER ID M 15 *
ISA07 INTERCHANGE ID QUALIFIER M 2 *
ISA08 INTERCHANGE RECEIVER ID M 15 *
ISA09 INTERCHANGE DATE M 6 YYMMDD
ISA10 INTERCHANGE TIME M 4 HHMM
ISA11 INTERCHANGE
CONTROL
STANDARDS
IDENTIFIER
M 1 U
ISA12 INTERCHANGE CONTROL
VERSION NUMBER
M 5 00401
ISA13 INTERCHANGE CONTROL
NUMBER
M 9 Sequential Number
ISA14 ACKNOWLEDGEMENT
REQUESTED
M 1 0
ISA15 USAGE INDICATOR M 1 P - Prod T - Test
ISA16 COMPONENT ELEMENT
SEPARATOR
M 1 >
Example:
ISA*00* *00* *12*5168448800
*ZZ*6514906278*120925*1315*U*00401*000000001*0*P>~
Last Modified 03/20/13 Page 29
GS – Function Group Header
Mandatory / Max Use=1 time
Segment Description Usage Type Values
GS01 FUNCTIONAL INDENTIFIER CODE
M 2 PC
GS02 APPLICATION SENDERS CODE
M 15 =ISA06
GS03 APPLICATION RECEIVERS CODE
M 15 =ISA08
GS04 DATE M 8 CCYYMMDD
GS05 TIME M 4 HHMM
GS06 GROUP CONTROL NUMBER M 1/9 ????
GS07 RESPONSIBLE AGENCY CODE
M 1/2 X
GS08 VERSION IDENTIFIER CODE M 1/12 004010
Example:
GS*PO*5168448800*6514906278*20120925*1315*000006249*X*004010~
ST – Transaction Set Header
Mandatory / Max Use=1 time
Segment Description Usage Type Values
ST01 TRANS. SET I.D. NUMBER M 3 860
ST02 TRANS. SET CONTROL NUMBER M 4/9 Seq. Number
Example:
ST*860*00001~
Last Modified 03/20/13 Page 30
BCH – Beginning Segment For Purchase Order Change
Segment Description
Record
Number
in
POCO
File
Usage
Pos From /
To
Length Value
BCH01 TRANSACTION SET PURPOSE CODE
1010 M 472 1 01 – Cancel * 04 – Change
BCH02 ACKNOWLEDGEMENT TYPE
M 2 CP
BCH03 PURCHASE ORDER NUMBER
1000 M 101/140 1/22
BCH06 DATE (of the document)
1000 M 178/185 8 CCYYMMDD
Example:
BCH*01*CP*179216*20120817~
Notes:
* If pos. 472 of record 1010 is ‘N’ then BCH01=’04’, if ‘Y’ – then ‘01’
REF– Reference Numbers
Segment Description
Record
Number
in
POCO
File
Usage
Pos From /
To
Length Value
REF01 REFERENCE IDENTIFICATION QUALIFIER
M 2 IA
REF02 REFERENCE NUMBER 0010 M 152/181 30
Example:
REF*IA*TEMP~
Last Modified 03/20/13 Page 31
N1 – Name
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
N101 Entity ID Code M 2 BT or ST
N102 Name 1190 – Ship to 1210 – Bill to
M 141/160 20
N103 ID Code Qualifier M 2 92
N104 ID Code 1190 – Ship to 1210 – Bill to
M 101/103 3
Example:
N1*BT*SLEEPYS LLC*92*990~
N1*ST*SANTA FE SPRINGS WAR *92*400~
Notes:
N101 - Retailer will send a value of “ST” to indicate Ship-To, “BT” to indicate Bill-To.
In the case of drop ship orders (BEG02 of the 850 file is set to “DS”) there will only be a
“BT” address.
There will be an “ST” address after each “PID” segment in the PO1 loop.
N103 – Hard coded to ‘92’
N104 – is set to 3 digit Warehouse Code. In case of DropShip order this is set to the Bill-To
warehouse code (990)
Last Modified 03/20/13 Page 32
N3 – Address Information
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
N301 ADDRESS INFORMATION
1190 – Ship to 1210 – Bill to
M 201/235 35
N302 ADDRESS INFORMATION
1190 – Ship to 1210 – Bill to
O 236/270 35
Example:
N3*1000 South Oyster Bay Road*~
N4 – Geographic Information
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
N401 CITY NAME 1190 – Ship to 1210 – Bill to
M 341/370 30
N402 STATE OR PROVINCE CODE
1190 – Ship to 1210 – Bill to
M 444/468 432/461
25
N403 POSTAL CODE 1190 – Ship to 1210 – Bill to
M 371/385 15
Example:
N4*Hicksville*NY*11801~
Last Modified 03/20/13 Page 33
POC– Purchase Order Line Item Change
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
POC01 ASSIGNED IDENTIFICATION
2000 M 101/122 22
POC02 CHANGE OR RESPONSE TYPE CODE
M 2/2 CA * CF
POC03 Not used
POC04 LINE ORDER QUANTITY
2000 O 123/144 1/22
POC05 COMPOSITE UNIT OF MEASURE
M 2/2
POC06 UNIT PRICE 2000 M 224/245 22
POC07 BASIS OF UNIT PRICE CODE
O 22 UM
POC08 PRODUCT/SERVICE ID QUALIFIER
O 2/2 BP ** VP
POC09 PRODUCT/SERVICE ID (VSN)
2000 M 199/223 25
Example:
POC*1*CA**1*EA*183.85*UM*BP*KK49156/6MAT~
Notes:
*CA - Changes To Line Items (if pos. 101 of record 2010 is N)
CF - Cancel Previously Transmitted Purchase Order (if pos. 101 of record 2010 is Y)
** BP - Buyer's Part Number
VP - Vendor's (Seller's) Part Number
Should be hardcoded to BP
Last Modified 03/20/13 Page 34
PID – Product Description
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
PID01 ITEM DESCRIPTION TYPE
M 1 F
PID2 PRODUCT/PROCESS CHARACTER CODE
M *
PID3 <Not Used>
PID4 <Not Used>
PID5 DESCRIPTION 2000 M 246/325 80
Example:
PID*F*08***NORWICH KG MAT~
Notes:
* The PID02 may contain the following codes that will qualify the PID05:
08=Description – should be always hardcoded to this value
38=Grade
74=Size
14=Finish/Cover
Last Modified 03/20/13 Page 35
DTM – Date/Time Refernce
Segment Description Record Number
in POCO File
Usag
e
Pos
From /
To
Length Value
DTM01 DATE/TIME QUALIFIER M *
DTM02 DATE 3000 M 174/181 8 CCYYMMDD
Example:
DTM*077*20120818~
Notes:
* The following codes may be used in the DTM01 field:
087 – Requested Ship Date
077 – Requested Arrival Date
CTT – Transaction Totals
Mandatory / Max Use=1 time
Segment Description Usage Type Values
CTT01 Number of Lines Items M 1/6
CTT02 Hash Total O 1/10
Example:
CTT*3~
Last Modified 03/20/13 Page 36
SE – Transaction Set Trailer
Mandatory / Max Use=1 time
Segment Description Usage Type Values
SE01 Number of Included Segments M 1/10
SE02 Transaction Set Control Number M 4/9
Example:
SE*18*0001~
GE – Group Control Trailer
Mandatory / Max Use=1 time
Segment Description Usage Type Values
GE01 Number of Transaction Sets Included
M 1/6
GE02 Group Control Number M 1/9 = GS06
Example:
GE*2*000006249~
IEA – Interchange Control Trailer
Mandatory / Max Use=1 time
Segment Description Usage Type Values
IEA01 Number of Included Functional Groups
M 1/5
IEA02 Interchange Control Number M
9/9 =ISA13
Example:
IEA*1*000001234~
Last Modified 03/20/13 Page 37
File Example:
ISA*00* *00* *12*5168448800
*ZZ*6514906278*120925*1315*U*00401*000000001*0*P>~
GS*PO*5168448800*6514906278*20120925*1315*000006249*X*004010~
ST*860*00001~
BCH*01*CP*179216*20120817~
REF*IA*TEMP~
N1*BT*SLEEPYS LLC*92*990~
N3*1000 South Oyster Bay Road*~
N4*Hicksville*NY*11801~
N1*ST*SANTA FE SPRINGS WAR *92*400~
N3*13565 LARWIN CIRCLE*~
N4*SANTA FE SPRINGS*CA*90670~
POC*1*CA**1*EA*183.85*UM*BP*KK49156/6MAT~
PID*F*08***NORWICH KG MAT~
DTM*077*20120818~
CTT*1~
SE*18*0001~
GE*2*000006249~
IEA*1*000001234~
Last Modified 03/20/13 Page 38
856 Advanced Ship Notice
Ship Notice/Manifest Transaction Set (856)
X.12 Version 4010 Data Segment Sequence
Segment Description Min
Use
Max
Use Req
ST Transaction Set Header 1 1 M
BSN Beginning Segment for
Ship Notice
1 1 M
HL Hierarchical Level
Instruction
1 1 M
TD1 Carrier Details
(Quantity and Weight)
1 1 M
TD5 Carrier Details (Routing
Sequence/ Transit Time)
1 1 O
REF Reference Identification 1 3 M
DTM Date/Time Reference 1 2 M
FOB F.O.B. Related
Instructions
1 1 M
N1 Name 1 1 M
N3 Address Information 1 1 M
N4 Geographical Location 1 1 M
HL Hierarchical Level 1 1 M
PRF Purchase Order
Reference
1 1 M
TD5 Casrrier Details
(Routing Sequence /
Transit Time)
1 1 M
HL Hierarchical Level 1 1 M
LIN Item Identification 1 1 M
SN1 Item Detail (Shipment) 1 1 M
MAN Marks and Numbers 1 1 C
CTT Transaction Totals 1 1 M
SE Transaction Set Trailer 1 1 M
Last Modified 03/20/13 Page 39
Notes:
M – Mandatory / O – Optional
ST- Transaction Set Header Mandatory
Segment Description Min Ma
x Value Req
ST01 Transaction
Set Identifier
Code
3 3 856 M
ST02 Transaction
Set Control
Number
4 9 M
BSN- Beginning Segment for Ship Notice
Mandatory
Segment Description Min Max Value Req
BSN01 Transaction
Set Purpose
Code
2 2 00 M
BSN02 Shipment
Identification
2 30 M
BSN03 Date 8 8 CCYYMMD
D
M
BSN04 Time 4 4 HHMM M
BSN05 Hierarchical
Structure
Code
4 4 0004 O
Last Modified 03/20/13 Page 40
HL - Hierarchical Level – Shipment Level
Mandatory
Notes:
Code indicating the hierarchical application structure of a transaction set that utilizes the HL
segment to define the structure of the transaction set.
Segment Description Min Max Value Req
HL01 Hierarchical ID Number 1 12 M
HL03 Code defining the
characteristic of a level in a
hierarchical structure.
1 2 S M
Notes:
The HL segment is used to identify levels of detail information using a hierarchical structure,
such as relating line-item data to shipment data, and packaging data to line item data.
The HL segment defines a top-down/left-right ordered structure.
HL01 shall contain a unique alphanumeric number of each occurrences of the HL segment in
the transaction set. For example, HL01 could be used to indicate the number of occurrences
of the HL segment, in which case the value of HL01 would be “1” for the initial HL segment
and would be incremented by one in each subsequent HL segment within the transaction.
HL03 indicates the context of the series of segments following the current HL segment up to
the next occurrence of a HL segment in the transaction. For example, HL03 is used to
indicate that subsequent segments in the HL loop form a logical grouping of the data
referring to shipment, order, or item-level information.
TD1- Carrier Details (Quantity and Weight)
Mandatory
Segment Description Min Max Value Req
TD102 Lading Quantity
Total number of pieces in
Shipment.
1 7 M
TD106 Weight Qualifier 1 2 G M
TD107 Weight 1 10 M
TD 108 Unit or Basis for Measurement
Code
2 2 LB M
Last Modified 03/20/13 Page 41
Notes:
TD106 value G = Gross
TD108 value LB = Pounds
TD5- Carrier Details (Routing Sequence/Transit Time)
Optional
Segment Description Min Max Value Req
TD501 Routing Sequence Code 1 2 O M
TD502 Identification Code Qualifier 1 2 2 M
TD503 Identification Code Description 2 80 M
TD504 Transportation Method/Type
Code
1 2 M M
TD505 Routing 1 35 M
TD510 Transit Time Direction
Qualifier
2 2 CD M
TD511 Transit Time 1 4 M
Notes:
TD501 value O = Origin carrier (Air, Motor, or Ocean).
TD502 value 2 = Standard Carrier Alpha Code.
If there is no SCAC code for the carrier, please fill TD503 with “NONE”
TD504 value M = Motor (common carrier).
TD 510 value CD = Calendar Days (includes weekends and holidays).
Last Modified 03/20/13 Page 42
REF- Reference Identification
Mandatory
Segment Description Min Max Value Req
REF01 Reference Identification
Qualifier
2 3 See
Notes
M
REF02 Reference Identification 1 30 M
Notes:
BM= Bill of Lading Number
CN= Carrier’s Reference Number
IA= Internal Vendor Number
One of BM or CN is required
IA is mandatory
Drop Ship Vendors must include a third REF element. The third REF segment needs to have the
shipping provider in the REF01 segment and the tracking number in the REF02. For example, If
the product is being shipped to the customer via UPS, the third REF element should look like
this:
REF*UP*1z3849070353072637~
DTM- Date/Time Reference
Mandatory
Segment Description Min Ma
x
Value Req
DTM01 Date/Time Qualifier 3 3 See Notes M
DTM02 Date 8 8 CCYYMMDD M
Notes:
The following codes may be used in the DTM01:
011=Shipped Mandatory
067= Current Schedule Delivery Optional
Last Modified 03/20/13 Page 43
FOB- F.O.B. Related Instructions
Mandatory
Segment Description Min Ma
x
Value Req
FOB01 Shipment Method or
Payment
2 2 See
Notes
M
Notes:
CC= Collect
PC=Prepaid but Charged to customer
PP= Prepaid (by Seller)
N1- Name
Mandatory
Segment Description Min Max Value Req
N101 Entity Identifier Code 2 3 ST M
N102 Name 1 60 M
N103 Identification Code
Qualifier
1 2 92 M
N104 Identification Code 2 80 See
Attachme
nt
M
N3- Address Information
Optional
Segment Description Min Max Value Req
N301 Address Information 1 55 M
N302 Address Information 1 55 M
Last Modified 03/20/13 Page 44
N4- Geographic Information
Optional
Segment Description Min Max Value Req
N401 City Name 2 30 M
N402 State or Province Code 2 2 M
N403 Postal Code 3 15 M
HL-Hierarchical Level – Order Level
Mandatory
Segment Description Min Max Value Req
HL01 Hierarchical ID Number 1 12 M
HL03 Hierarchical Level Code 1 2 O M
PRF- Purchase Order Reference
Mandatory
Segment Description Min Max Value Req
PRF01 Purchase Order Number 1 22 M
TD5 - Sequence/ Transit Time
Mandatory
Segment Description Min Max Value Req
TD505 Routing 1 35 X M
TD506 Shipment/Order
Status
2 2 See
Notes
M
Notes:
CC= Shipment Complete
PR= Partial Shipment
Last Modified 03/20/13 Page 45
HL- Hierarchical Level – Item Level
Mandatory
Segment Description Min Max Value Req
HL01 Hierarchical ID Number 1 12 M
HL03 Hierarchical Level Code 1 2 I M
LIN- Item Identification
Mandatory
Segment Description Min Max Value Req
LIN01 Assigned Identification 1 11 Line
Number
M
LIN02 Product/Service ID Qualifier 2 2 SK M
LIN03 Product /Service ID 1 48 M
LIN04 Product/Service ID Qualifier 2 2 VN M
LIN05 Product/Service ID 1 48 M
Note:
Assigned Identification is the line number originally sent from the Retailer. All line numbers
need to match original PO.
SN1-Item Detail
Mandatory
Segment Description Min Max Value Req
SN102 Number of Units Shipped 1 10 M
SN103 Unit or Basis for
Measurement Code
2 2 M
SN104 Case Quantity 1 10 O
SN105 Quantity Ordered 1 15 M
SN106 Unit or Basis for
Measurement Code
2 2 M
Last Modified 03/20/13 Page 46
MAN- Marks and Numbers
Conditional (If RF ID is sent in the 850 Purchase Order)
856’s for “Drop Ship” orders do not require that you provide us with a MAN element.
Segment Description Min Max Value Req
MAN01 Marks and Numbers Qualifier 1 2 ZZ M
MAN02 Marks and Numbers
RF numbers sent in the
purchase order
1 48 See
Notes
M
Note:
• Tag ID also known as Serial Number or RFID or SSCC-18 field in UCC 128 label. For
Bedding Vendors - The Tag ID’s or “license plate” will always start with the same two
digits(agreed-upon between Sleepy’s and vendor), then followed by a unique eight-digit number
which is generated by the vendor. The full tag number will be ten digits long.• Non-Bedding and
Accessories – ‘license plate” will be standard UCC 128 format.• Bar Code UCC 128
856’s for “Drop Ship” orders do not require that you provide us with a MAN element.
CTT- Transaction Totals
Mandatory
Segment Description Min Max Value Req
CTT01 Number of Line Items 1 6 M
Last Modified 03/20/13 Page 47
997 Functional Acknowledgement
X.12 Version 4010 Data Segment Sequence
Segment Description Min
Use
Max
Use Req
ISA Interchange Control
Header
1 1 M
GS Functional Group
Header
1 1 M
ST Transaction Set Header 1 1 M
AK1 Functional Group Resp
Header
1 1 M
AK2 Transaction Set Resp
Header
1 100000 M
AK5 Transaction Set Resp
Trailer
1 1 M
AK9 Functional Group Resp
Trailer
1 1 M
SE Transaction Set Trailer 1 1 M
GE Function Group Trailer 1 1 M
IEA Interchange Control
Trailer
1 1 M
Notes:
M - Mandatory / O – Optional
Last Modified 03/20/13 Page 48
ISA – Interchange Control Header
Mandatory
Segment Description Min Max Value Req
ISA01 Authorization Info Qualifier 2 2 00 M
ISA02 Authorization Info 10 10 Blank
Spaces
M
ISA03 Security Info Qualifier 2 2 00 M
ISA04 Security Info 10 10 Blank
Spaces
M
ISA05 Interchange ID Qualifier 2 2 Sender
ID Qual
M
ISA06 Interchange ID 15 15 Sender
ID
M
ISA07 Interchange ID Qualifier 2 2 Receiver
ID Qual
M
ISA08 Interchange ID 15 15 Receiver
ID
M
ISA09 Interchange Date 6 6 YYMMD
D
M
ISA10 Interchange Time 4 4 HHMM M
ISA11 Interchange Control ID 1 1 U M
ISA12 Interchange Version Number 5 5 00401 M
ISA13 Interchange Control Number 9 9 M
ISA14 Acknowledgement
Requested
1 1 0 or 1 M
ISA15 Test Indicator 1 1 T or P M
Example:
ISA*00* *00* *ZZ*E725 (3 spaces) E725003 *01*YOURNUMBER
*089820*1315*U*00401*000000001*1*P>~
Last Modified 03/20/13 Page 49
GS – Functional Group Header
Mandatory
Segment Description Min Max Value Req
GS01 Functional ID Code 2 2 FA M
GS02 Application Sender Code 2 12 M
GS03 Application Receiver Code 2 12 M
GS04 Data Interchange Data 8 8 CCYY
MMD
D
M
GS05 Data Interchange Time 4 4 HHM
M
M
GS06 Data Interchange Control Num 1 9 M
GS07 Responsible Agency Code 1 2 X M
GS08 Version Release 1 12 00401
0
M
Example:
GS*FA*E725 (3 spaces) E725003*YOURNUMBER*20001022*1315*
000000001*X*004010~
ST – Transaction Set Header
Mandatory
Segment Description Min Max Value Req
ST01 Transaction Set ID 3 3 997 M
ST02 Transaction Set Control 4 9 M
Example:
ST* 997*000000001~
AK1 – Functional Group Response Header
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
AK101 Function Group ID Code 3 3 M
AK102 Group Control Number 1 9 M
Example:
AK1* PO*000000001~
Last Modified 03/20/13 Page 50
AK2 – Transaction Set Response Header
Mandatory / Max Use=100000 times
Segment Description Min Max Value Req
AK201 Transaction Set ID Code 3 3 M
AK202 Transaction Set Number 4 9 M
Example:
AK2* 850*000000001~
AK5 – Transaction Set Response Header
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
AK501 Acknowledgement Code 1 1 See
Notes
M
Example:
AK5* A~
Notes: A=Accepted
E=Accepted with Errors
R=Rejected
Last Modified 03/20/13 Page 51
AK9 – Transaction Set Response Header
Mandatory / Max Use=1 time
Segment Description Min Max Value Req
AK901 Acknowledgement Code 1 1 See
Notes
M
AK902 Number of Included Sets 1 6 M
AK903 Number of Received Sets 1 6 M
AK904 Number of Accepted Sets 1 6 M
Example:
AK9* A*5*5*5~
Notes:
A= Accepted
E= Accepted with Errors
R= Rejected
P= Partial Accept
Last Modified 03/20/13 Page 52
TRADING PARTNER EDI QUESTIONNAIRE:
Please complete ALL fields below.
Partner Name:
Partner Address:
Partner City, State, Zip:
Duns Number:
Primary EDI Contact Name:
Primary EDI Contact Phone:
Primary EDI Contact E-mail: Alternate EDI Contact Name:
Alternate EDI Contact Phone:
Alternate EDI Contact E-mail:
Are you EDI-capable? YES If not, when do you expect to be EDI-capable?
Network & Service Information: If you are EDI capable, please provide your test and production sender/receive ID numbers. If you do not have separate test ID numbers, then indicate as ‘NA’.
VAN Provider Name:
Data Element Test environment Production environment
ISA Qualifier (Two digits):
ISA ID:
GS ID:
Vendor Supported EDI Documents: (Indicate with Y or N – Please return the EDI guidelines/sample data for any supported types.)
856 - Advance Ship Notice IP ADDRESS (Drop Ship Vendors):
850 – Purchase Order
855 - Purchase Order Acknowledgement
860 – Purchase Order Change
Notes:
SLEEPYS EDI PROFILE:
Production ISA ID: 5168448800
Production Qualifier: 12
Production GS: 5168448800 Test ISA ID: SLEEPYSTEST
Test Qualifier: ZZ
Test GS: SLEEPYSTEST