Stedi maintains this guide based on public documentation from Dot Foods. Contact Dot Foods for official EDI specifications. To report any errors in this guide, please contact us.
X12 867 Product Transfer & Resale
—
Delimiters
- ~ Segment
- * Element
- > Component
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
detail
PTD Loop
PTD
010
Product Transfer and Resale Detail
Max use 1
Required
REF
030
Reference Identification
Max use 20
Optional
QTY Loop
QTY
110
Quantity
Max use 1
Required
LIN
120
Item Identification
Max use 1
Optional
UIT
130
Unit Detail
Max use 12
Optional
AMT
140
Monetary Amount
Max use 12
Optional
ITA
141
Allowance, Charge or Service
Max use 10
Optional
PID
150
Product/Item Description
Max use 200
Optional
MEA
160
Measurements
Max use 40
Optional
CUR
220
Currency
Max use 1
Optional
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
—
- 00
- No Authorization Information Present (No Meaningful Information in I02)
—
- 00
- No Security Information Present (No Meaningful Information in I04)
—
- U
- U.S. EDI Community of ASC X12, TDCC, and UCS
—
- 00401
- Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
—
- 0
- No Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested
—
- PT
- Product Transfer and Resale Report (867)
—
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Heading
REF
060
Heading > REF
Reference Identification Affiliation Number
OptionalMax use 1
—
Example
Variants (all may be used)
REFReference Identification OthersREF
060
Heading > REF
Reference Identification Others
OptionalMax use 12
—
Example
Variants (all may be used)
REFReference Identification Affiliation NumberN1 Loop
OptionalMax 5
N1
080
Heading > N1 Loop > N1
Name
RequiredMax use 1
—
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 Loop end
Heading end
Detail
PTD Loop
RequiredMax >1
QTY Loop
OptionalMax >1
LIN
120
Detail > PTD Loop > QTY Loop > LIN
Item Identification
OptionalMax use 1
—
Example
If either Product/Service ID Qualifier (LIN-04) or Product/Service ID (LIN-05) is present, then the other is required
If either Product/Service ID Qualifier (LIN-06) or Product/Service ID (LIN-07) is present, then the other is required
—
- UA
- U.P.C./EAN Case Code (2-5-5)—
- UK
- U.P.C./EAN Shipping Container Code (1-2-5-5-1)—
UIT
130
Detail > PTD Loop > QTY Loop > UIT
Unit Detail
OptionalMax use 12
—
Usage notes
—
Example
If Basis of Unit Price Code (UIT-03) is present, then Unit Price (UIT-02) is required
RequiredMax use 1
To identify a composite unit of measure
(See Figures Appendix for examples of use)
ITA
141
Detail > PTD Loop > QTY Loop > ITA
Allowance, Charge or Service
OptionalMax use 10
—
Usage notes
—
Example
QTY Loop end
PTD Loop end
Detail end
Summary
CTT Loop
OptionalMax >1
CTT Loop end
Summary end
EDI Samples
Sample from DOT Foods 1
ST*867*000000001~
BPT*00*3600067*20050704*IV~
DTM*004*20050629~
DTM*035*20050704~
REF*PO*083304~
REF*VN*1104501~
REF*4P*004*UNIPRO~
REF*IV*3600067~
N1*BT*ABC CUSTOMER*91*001234000~
N3*1000 MAIN ST~
N4*YOUR CITY*IL*623530000*US~
N1*ST*ABC CUSTOMER*91*001234000~
N3*1000 MAIN ST~
N4*YOUR CITY*IL*623530000*US~
PTD*SU~
REF*SL*99~
QTY*39*2*CA~
LIN**UK*10023456005195*MG*57744*VN*200700~
UIT*CA*42.82*NT~
AMT*1*85.64~
PID*F****ABC CLEAN-GP AL PPS 707 4-1 GA~
MEA*WT*N*70*LB~
MEA*WT*G*76*LB~
CUR*BY*USD~
PTD*SU~
REF*SL*210600~
QTY*39*3*CA~
LIN**UK*10023456008374*MG*837*VN*406597~
UIT*CA*22.44*NT~
AMT*1*67.32~
PID*F****ABC FUE-LAMP LIQ WAX PCRT 1-36 CNT~
MEA*WT*N*33*LB~
MEA*WT*G*33*LB~
CUR*BY*USD~
CTT*2~
AMT*5*152.96~
SE*37*000000001~
BPT*00*3600067*20050704*IV~
DTM*004*20050629~
DTM*035*20050704~
REF*PO*083304~
REF*VN*1104501~
REF*4P*004*UNIPRO~
REF*IV*3600067~
N1*BT*ABC CUSTOMER*91*001234000~
N3*1000 MAIN ST~
N4*YOUR CITY*IL*623530000*US~
N1*ST*ABC CUSTOMER*91*001234000~
N3*1000 MAIN ST~
N4*YOUR CITY*IL*623530000*US~
PTD*SU~
REF*SL*99~
QTY*39*2*CA~
LIN**UK*10023456005195*MG*57744*VN*200700~
UIT*CA*42.82*NT~
AMT*1*85.64~
PID*F****ABC CLEAN-GP AL PPS 707 4-1 GA~
MEA*WT*N*70*LB~
MEA*WT*G*76*LB~
CUR*BY*USD~
PTD*SU~
REF*SL*210600~
QTY*39*3*CA~
LIN**UK*10023456008374*MG*837*VN*406597~
UIT*CA*22.44*NT~
AMT*1*67.32~
PID*F****ABC FUE-LAMP LIQ WAX PCRT 1-36 CNT~
MEA*WT*N*33*LB~
MEA*WT*G*33*LB~
CUR*BY*USD~
CTT*2~
AMT*5*152.96~
SE*37*000000001~
Sample from DOT Foods 2
ST*867*000000001~
BPT*00*1663175*20191101*CR~
DTM*004*20190923~
DTM*035*20190923~
REF*PO*N A~
REF*VN*3770624~
REF*4P*000*INDEPENDENT FOODSERVICE~
REF*CM*1663175~
REF*F8*1023440~
N1*BT*ABC COMPANY*91*123456000~
N3*1 MAPLE AVE~
N4*YOUR TOWN*IL*12345*US~
N1*ST*ABC COMPANY*91*123456000~
N3*1 MAPLE AVE~
N4*YOUR TOWN*Il*12345*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*-9*CA~
LIN**UK*00123456009876*MG*A210-5678*VN*123456~
UIT*CA*-192.24*NT~
AMT*1*-192.24*C~
PID*F****ABC 8.25" B STRW POLW 10-300 EA~
MEA*WT*N*-79.65*LB~
MEA*WT*G*-79.65*LB~
CUR*BY*USD~
CTT*1~
AMT*5*-192.24*C~
SE*28*000000001~
BPT*00*1663175*20191101*CR~
DTM*004*20190923~
DTM*035*20190923~
REF*PO*N A~
REF*VN*3770624~
REF*4P*000*INDEPENDENT FOODSERVICE~
REF*CM*1663175~
REF*F8*1023440~
N1*BT*ABC COMPANY*91*123456000~
N3*1 MAPLE AVE~
N4*YOUR TOWN*IL*12345*US~
N1*ST*ABC COMPANY*91*123456000~
N3*1 MAPLE AVE~
N4*YOUR TOWN*Il*12345*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*-9*CA~
LIN**UK*00123456009876*MG*A210-5678*VN*123456~
UIT*CA*-192.24*NT~
AMT*1*-192.24*C~
PID*F****ABC 8.25" B STRW POLW 10-300 EA~
MEA*WT*N*-79.65*LB~
MEA*WT*G*-79.65*LB~
CUR*BY*USD~
CTT*1~
AMT*5*-192.24*C~
SE*28*000000001~
Sample from DOT Foods 3
ST*867*000000001~
BPT*00*1663108*20191101*CR~
DTM*004*20191015~
DTM*035*20191015~
REF*PO*N A~
REF*VN*3950154~
REF*4P*005*SYSCO~
REF*DL*1663108~
REF*F8*9118757~
N1*BT*ABC CUSTOMER*91*123456000~
N3*500 JACKSON AVE~
N4*MY TOWN*NY*111110000*US~
N1*ST*ABC CUSTOMER*91*123456000~
N3*500 JACKSON AVE~
N4*MY TOWN*NY*111110000*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*9*CA~
LIN**UK*10012345119601*MG*11000-12345*VN*396263~
UIT*CA*284.4*NT~
AMT*1*284.40*D~
PID*F****ABC SNPK HNYNT CHERO CERE 70-.81 OZ~
MEA*WT*N*31.86*LB~
MEA*WT*G*61.2*LB~
CUR*BY*USD~
CTT*1~
AMT*5*284.40*D~
SE*28*000000001~
BPT*00*1663108*20191101*CR~
DTM*004*20191015~
DTM*035*20191015~
REF*PO*N A~
REF*VN*3950154~
REF*4P*005*SYSCO~
REF*DL*1663108~
REF*F8*9118757~
N1*BT*ABC CUSTOMER*91*123456000~
N3*500 JACKSON AVE~
N4*MY TOWN*NY*111110000*US~
N1*ST*ABC CUSTOMER*91*123456000~
N3*500 JACKSON AVE~
N4*MY TOWN*NY*111110000*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*9*CA~
LIN**UK*10012345119601*MG*11000-12345*VN*396263~
UIT*CA*284.4*NT~
AMT*1*284.40*D~
PID*F****ABC SNPK HNYNT CHERO CERE 70-.81 OZ~
MEA*WT*N*31.86*LB~
MEA*WT*G*61.2*LB~
CUR*BY*USD~
CTT*1~
AMT*5*284.40*D~
SE*28*000000001~
Sample from DOT Foods 4
ST*867*000000001~
BPT*00*1677144*20191105*IV~
DTM*004*20191030~
DTM*035*20191104~
REF*PO*27978AR~
REF*VN*3897613~
REF*4P*019*GOLBON~
REF*IV*1677144~
N1*BT*ABC CUSTOMER*91*123456000~
N3*1000 COMMERCE COURT~
N4*MY TOWN*AZ*876540000*US~
N1*ST*ABC CUSTOMER LLC*91*123456001~
N3*1000 COMMERCE CT~
N4*MY TOWN*AZ*876540000*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*5*CA~
LIN**UK*00012345177281*MG*74747-17728*VN*460690~
UIT*CA*18.8*NT~
AMT*1*94.00~
ITA*P***02**0.19*95~
PID*F****ABC YCY OG RAS & PCH W RF 48-4 OZ~
MEA*WT*N*60*LB~
MEA*WT*G*66.1*LB~
CUR*BY*USD~
CTT*1~
AMT*5*94.00~
SE*28*000000001~
BPT*00*1677144*20191105*IV~
DTM*004*20191030~
DTM*035*20191104~
REF*PO*27978AR~
REF*VN*3897613~
REF*4P*019*GOLBON~
REF*IV*1677144~
N1*BT*ABC CUSTOMER*91*123456000~
N3*1000 COMMERCE COURT~
N4*MY TOWN*AZ*876540000*US~
N1*ST*ABC CUSTOMER LLC*91*123456001~
N3*1000 COMMERCE CT~
N4*MY TOWN*AZ*876540000*US~
PTD*SU~
REF*SL*OPEN~
QTY*39*5*CA~
LIN**UK*00012345177281*MG*74747-17728*VN*460690~
UIT*CA*18.8*NT~
AMT*1*94.00~
ITA*P***02**0.19*95~
PID*F****ABC YCY OG RAS & PCH W RF 48-4 OZ~
MEA*WT*N*60*LB~
MEA*WT*G*66.1*LB~
CUR*BY*USD~
CTT*1~
AMT*5*94.00~
SE*28*000000001~
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.