C&S Wholesale Grocers
/
Grocery Products Purchase Order
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from C&S Wholesale Grocers. Contact C&S Wholesale Grocers for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
C&S Wholesale Grocers logo

X12 875 Grocery Products Purchase Order

X12 Release 4010
Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI sample
  • Sample 1
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/cswg/grocery-products-purchase-order/01HGHEE31RJ6VVZY5Z07YYYV1X
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
G50
020
Purchase Order Identification
Max use 1
Required
G61
040
Contact
Max use 3
Optional
G62
050
Date/Time Delivery Requested on This Date
Max use 10
Optional
G62
050
Date/Time Requested Ship Date/Pick-up Date
Max use 1
Optional
NTE
060
Note/Special Instruction
Max use 20
Optional
G66
070
Transportation Instructions
Max use 1
Optional
G23
080
Terms of Sale
Max use 20
Optional
0100 Loop
0200 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)
OG
Order Group - Grocery (875, 876)
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)
004010UCS

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1
Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)
875
Grocery Products Purchase Order
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9
G50
020
Heading > G50

Purchase Order Identification

RequiredMax use 1
Usage notes
Example
G50-01
473
Order Status Code
Required
Identifier (ID)
N
Original
X
Passive (ES3)
Required
Date (DT)
CCYYMMDD format
G50-03
324
Purchase Order Number
Required
String (AN)
Min 1Max 22
G61
040
Heading > G61

Contact

OptionalMax use 3
Usage notes
Example
If either Communication Number Qualifier (G61-03) or Communication Number (G61-04) is present, then the other is required
G61-01
366
Contact Function Code
Required
Identifier (ID)
IC
Information Contact
Required
String (AN)
Min 1Max 60
G61-03
365
Communication Number Qualifier
Optional
Identifier (ID)
TE
Telephone
G61-04
364
Communication Number
Optional
String (AN)
Min 1Max 80
G62
050
Heading > G62

Date/Time Delivery Requested on This Date

OptionalMax use 10
Usage notes
Example
Variants (all may be used)
G62Date/Time Requested Ship Date/Pick-up Date
G62-01
432
Date Qualifier
Required
Identifier (ID)
02
Delivery Requested on This Date
Optional
Date (DT)
CCYYMMDD format
Usage notes
G62
050
Heading > G62

Date/Time Requested Ship Date/Pick-up Date

OptionalMax use 1
Example
G62-01
432
Date Qualifier
Required
Identifier (ID)
10
Requested Ship Date/Pick-up Date
Optional
Date (DT)
CCYYMMDD format
Usage notes
NTE
060
Heading > NTE

Note/Special Instruction

OptionalMax use 20
Usage notes
Example
NTE-01
363
Note Reference Code
Optional
Identifier (ID)
GEN
General Information
ORI
Order Instructions
SPH
Special Handling
NTE-02
352
Description
Required
String (AN)
Min 1Max 80
G66
070
Heading > G66

Transportation Instructions

OptionalMax use 1
Usage notes
Example
G66-02
91
Transportation Method/Type Code
Optional
Identifier (ID)
H
Customer Pickup (Backhaul)
T
Delivery (Best Way - Shipper's Option)
G66-07
434
F.O.B. Point
Optional
String (AN)
Min 1Max 30
G23
080
Heading > G23

Terms of Sale

OptionalMax use 20
Usage notes
Example
At least one of Terms Net Due Date (G23-08) or Terms Net Days (G23-09) is required
G23-01
336
Terms Type Code
Required
Identifier (ID)
01
Basic
G23-02
333
Terms Basis Date Code
Required
Identifier (ID)
2
Delivery Date
G23-04
283
Terms Due Date Qualifier
Optional
Identifier (ID)
01
Mailed by Date (Postmark Date)
G23-05
338
Terms Discount Percent
Optional
Decimal number (R)
Min 1Max 6
Usage notes
G23-06
370
Terms Discount Due Date
Optional
Date (DT)
CCYYMMDD format
G23-07
351
Terms Discount Days Due
Optional
Numeric (N0)
Min 1Max 3
Usage notes
G23-08
446
Terms Net Due Date
Optional
Date (DT)
CCYYMMDD format
G23-09
386
Terms Net Days
Optional
Numeric (N0)
Min 1Max 3
Usage notes
G23-10
362
Terms Discount Amount
Optional
Numeric (N2)
Min 1Max 10
G23-11
391
Discounted Amount Due
Optional
Numeric (N2)
Min 1Max 10
G23-12
390
Amount Subject to Terms Discount
Optional
Numeric (N2)
Min 1Max 10
G23-15
3
Free Form Message
Optional
String (AN)
Min 1Max 60
0100 Loop
RequiredMax >1
N1
090
Heading > 0100 Loop > 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)
BO
Broker
BT
Bill-to-Party
ST
Ship To
VN
Vendor
Optional
String (AN)
Min 1Max 60
Usage notes
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)
9
D-U-N-S+4, D-U-N-S Number with Four Character Suffix
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80
Usage notes
N2
100
Heading > 0100 Loop > N2

Additional Name Information

OptionalMax use 1
Usage notes
Example
Required
String (AN)
Min 1Max 60
Usage notes
N3
110
Heading > 0100 Loop > N3

Address Information

OptionalMax use 2
Usage notes
Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55
N4
120
Heading > 0100 Loop > 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
0100 Loop end
0200 Loop
OptionalMax >1
G72
130
Heading > 0200 Loop > G72

Allowance or Charge

RequiredMax use 1
Usage notes
Example
G72-01
340
Allowance or Charge Code
Required
Identifier (ID)
47
Price and Marketing Allowance
499
Other Allowance
504
Freight Charge
G72-02
331
Allowance or Charge Method of Handling Code
Required
Identifier (ID)
02
Off Invoice (Credit to C&S)
06
Charge to be Paid by Customer
G72-08
360
Allowance or Charge Total Amount
Optional
Numeric (N2)
Min 1Max 15
Usage notes
G73
140
Heading > 0200 Loop > G73

Allowance or Charge Description

OptionalMax use 10
Usage notes
Example
G73-01
369
Free-form Description
Required
String (AN)
Min 1Max 45
Usage notes
0200 Loop end
Heading end

Detail

0300 Loop
RequiredMax >1
G68
010
Detail > 0300 Loop > G68

Line Item Detail - Product

RequiredMax use 1
Usage notes
Example
At least one of U.P.C. Case Code (G68-04) or Product/Service ID Qualifier (G68-05) is required
If either Product/Service ID Qualifier (G68-05) or Product/Service ID (G68-06) is present, then the other is required
G68-01
330
Quantity Ordered
Required
Decimal number (R)
Min 1Max 15
G68-02
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
CA
Case
EA
Each (Number of retail selling units)
LB
Pound
PL
Pallet/Unit Load
G68-03
237
Item List Cost
Optional
Decimal number (R)
Min 1Max 9
G68-04
438
U.P.C. Case Code
Optional
String (AN)
Min 12Max 12
Usage notes
G68-05
235
Product/Service ID Qualifier
Optional
Identifier (ID)
IN
Buyer's Item Number
G68-06
234
Product/Service ID
Optional
String (AN)
Min 1Max 48
Usage notes
G69
020
Detail > 0300 Loop > G69

Line Item Detail - Description

OptionalMax use 5
Usage notes
Example
G69-01
369
Free-form Description
Required
String (AN)
Min 1Max 45
Usage notes
G70
030
Detail > 0300 Loop > G70

Line Item Detail - Miscellaneous

OptionalMax use 2
Usage notes
Example
If either Size (G70-02) or Unit or Basis for Measurement Code (G70-03) is present, then the other is required
Optional
Numeric (N0)
Min 1Max 6
Optional
Decimal number (R)
Min 1Max 8
G70-03
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CT
Count
EA
Each
FO
Fluid Ounce
GA
Gallon
LB
Pound
OZ
Ounce
PT
Pint
QT
Quart
G70-09
416
Pallet Block and Tiers
Optional
Numeric (N0)
Min 6Max 6
Usage notes
0310 Loop
OptionalMax >1
G72
060
Detail > 0300 Loop > 0310 Loop > G72

Allowance or Charge

RequiredMax use 1
Usage notes
Example
If either Allowance or Charge Quantity (G72-06) or Unit or Basis for Measurement Code (G72-07) is present, then the other is required
G72-01
340
Allowance or Charge Code
Required
Identifier (ID)
47
Price and Marketing Allowance
499
Other Allowance
504
Freight Charge
G72-02
331
Allowance or Charge Method of Handling Code
Required
Identifier (ID)
02
Off Invoice
06
Charge to be Paid by Customer
G72-05
359
Allowance or Charge Rate
Optional
Decimal number (R)
Min 1Max 15
Usage notes
G72-06
339
Allowance or Charge Quantity
Optional
Decimal number (R)
Min 1Max 10
Usage notes
G72-07
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CA
Case
G72-08
360
Allowance or Charge Total Amount
Optional
Numeric (N2)
Min 1Max 15
G73
070
Detail > 0300 Loop > 0310 Loop > G73

Allowance or Charge Description

OptionalMax use 10
Usage notes
Example
G73-01
369
Free-form Description
Required
String (AN)
Min 1Max 45
Usage notes
0310 Loop end
0300 Loop end
Detail end

Summary

G76
010
Summary > G76

Total Purchase Order

RequiredMax use 1
Usage notes
Example
If either Weight (G76-03) or Unit or Basis for Measurement Code (G76-04) is present, then the other is required
If either Volume (G76-05) or Unit or Basis for Measurement Code (G76-06) is present, then the other is required
G76-01
330
Quantity Ordered
Required
Decimal number (R)
Min 1Max 15
Usage notes
G76-02
355
Unit or Basis for Measurement Code
Required
Identifier (ID)
CA
Cases
G76-03
81
Weight
Optional
Decimal number (R)
Min 1Max 10
G76-04
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
LB
Pound
G76-05
183
Volume
Optional
Decimal number (R)
Min 1Max 8
G76-06
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)
CU
Cubic Feet
G76-08
610
Amount
Optional
Numeric (N2)
Min 1Max 15
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
EDI Samples

Sample 1

ISA*00* *00* *ZZ*SENDER *ZZ*RECEIVER *231201*1530*U*00401*000000001*0*T*>~
GS*OG*SENDERGS*RECEIVERGS*20231201*153001*000000001*X*004010UCS~
ST*875*66537~
G50*N*20110117*432329~
G61*IC*JOHN PHELAN*TE*18022574371~
G62*02*20110118~
NTE*ORI*S/W 432327-9~
NTE*SPH*S/W 432327-9~
NTE*GEN*THIS PURCHASE ORDER INCORPORATES BY REFERENCE THE C&S VENDOR CONDITIONS OF SALE~
G66**T*****NONE~
G23*01*2**01*0.02**15**16~
N1*BT*C&S WHOLESALE GROCERS*9*0018424670001~
N2*BETHLEMEN PO'S 0504707~
N3*OLD FERRY ROAD~
N4*BRATTLEBORO*VT*05301~
N1*ST*C&S WHOLESALE GROCERS*9*0018424670076~
N2*BETHLEMEN PO'S 432~
N3*4820 HANOVERVILLE RD~
N4*BETHLEHEM*PA*18017~
N1*VN*CONAGRA FOOD*9*0062809110000~
N2*88 HASTINGS DRIVE~
N4*WHITINSVILLE**01588~
G68*210*CA*18.12*007615020203*IN*993937~
G69*ACTII BTR 94% FF 3PK~
G70*12*9*OZ******021005~
G76*210*CA*1818.6*LB*98.7*CU**380520~
SE*25*66537~
GE*1*000000001~
IEA*1*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.