X12 850 Purchase Order
This X12 Transaction Set contains the format and establishes the data contents of the Purchase Order Transaction Set (850) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide for customary and established business and industry practice relative to the placement of purchase orders for goods and services. This transaction set should not be used to convey purchase order changes or purchase order acknowledgment information.
- ~ Segment
- * Element
- > Component
- ^ Repetition
Interchange Control Header
To start and identify an interchange of zero or more functional groups and interchange-related control segments
Code identifying the type of information in the Authorization Information
- 00
- No Authorization Information Present (No Meaningful Information in I02)
Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)
Code identifying the type of information in the Security Information
- 00
- No Security Information Present (No Meaningful Information in I04)
This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)
Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element
Code indicating the system/method of code structure used to designate the sender or receiver ID element being qualified
Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them
Type is not applicable; the repetition separator is a delimiter and not a data element; this field provides the delimiter used to separate repeated occurrences of a simple data element or a composite data structure; this value must be different than the data element separator, component element separator, and the segment terminator
- ^
- Repetition Separator
Code specifying the version number of the interchange control segments
- 00501
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
A control number assigned by the interchange sender
Code indicating sender's request for an interchange acknowledgment
- 0
- No Interchange Acknowledgment Requested
- 1
- Interchange Acknowledgment Requested (TA1)
Code indicating whether data enclosed by this interchange envelope is test, production or information
- I
- Information
- P
- Production Data
- T
- Test Data
Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator
- >
- Component Element Separator
Functional Group Header
To indicate the beginning of a functional group and to provide control information
Code identifying a group of application related transaction sets
- PO
- Purchase Order (850)
Code identifying party sending transmission; codes agreed to by trading partners
Code identifying party receiving transmission; codes agreed to by trading partners
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
Assigned number originated and maintained by the sender
Code identifying the issuer of the standard; this code is used in conjunction with Data Element 480
- T
- Transportation Data Coordinating Committee (TDCC)
- X
- Accredited Standards Committee X12
Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed
- 005010
- Standards Approved for Publication by ASC X12 Procedures Review Board through October 2003
Heading
Transaction Set Header
To indicate the start of a transaction set and to assign a control number
Code uniquely identifying a Transaction Set
- The transaction set identifier (ST01) is used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
- 850
- Purchase Order
Beginning Segment for Purchase Order
To indicate the beginning of the Purchase Order Transaction Set and transmit identifying numbers and dates
EXAMPLE: BEG\00\SA\0000221631\4\19990113~
Code identifying purpose of transaction set
- 00
- Original
- 05
- Replace
Code specifying the type of Purchase Order
- SA
- Stand-alone Order
Identifying number for Purchase Order assigned by the orderer/purchaser
Biglots - assigned Purchase Order number (numeric only, no additional characters)
Number identifying a release against a Purchase Order previously placed by the parties involved in the transaction
Reference Information
To specify identifying information
EXAMPLE:
REF\LU\04152\S~
REF\IA\1234567890~
REF\NB\C123456~
REF\PK\Y~
REF\ZZ\Y~
REF\FJ\125~
Code qualifying the Reference Identification
- FJ
- Total Units
- IA
- Internal Vendor Number
Number assigned by BLI
- LU
- Location Number
maximum of 5 digits
- NB
- Letter of Credit Number
- PK
- Packing List Number
- ZZ
- Pre-Ticket
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
EXAMPLE: PER\BD\JILL JONES~
Destination Shipping
To specify transportation instructions relating to shipment
EXAMPLE: FOB\PP\DE\Port \\OR\Ship Point\D~
Code identifying payment terms for transportation charges
- FOB01 indicates which party will pay the carrier.
- CC
- Collect
- DE
- Delivery Duty Unpaid
- DF
- Defined by Buyer and Seller
- PC
- Prepaid but Charged to Customer
- PP
- Prepaid (by Seller)
- PS
- Paid by Seller
Code identifying type of location
- FOB02 is the code specifying transportation responsibility location.
- DE
- Destination (Shipping)
A free-form description to clarify the related data elements and their content
Code identifying type of location
- FOB06 is the code specifying the title passage location.
- OR
- Origin (Shipping Point)
A free-form description to clarify the related data elements and their content
A free-form description to clarify the related data elements and their content
FOB Point - Indicates place where legal ownership of merchandise is transferred:
‘O’ – Origin - at the vendor's warehouse
‘D’ – Destination - at our warehouse or store
On Vessel
To specify transportation instructions relating to shipment
EXAMPLE: FOB\PP\OV\FOB Cntry\\CA\Origin\Prepaid By Seller~
Code identifying payment terms for transportation charges
- FOB01 indicates which party will pay the carrier.
- CC
- Collect
- DE
- Delivery Duty Unpaid
- DF
- Defined by Buyer and Seller
- PC
- Prepaid but Charged to Customer
- PP
- Prepaid (by Seller)
- PS
- Paid by Seller
Code identifying type of location
- FOB02 is the code specifying transportation responsibility location.
Free On Board (FOB) point - IMPORTS
- OV
- On Vessel (Free On Board [FOB] point)
A free-form description to clarify the related data elements and their content
Code identifying type of location
- FOB06 is the code specifying the title passage location.
- CA
- Country of Origin
A free-form description to clarify the related data elements and their content
‘US’ – Will indicate a Domestic PO
Terms of Sale/Deferred Terms of Sale
To specify terms of sale
EXAMPLE: ITD\01\3\2\10\30\\\2%-10/NET 30~
Code identifying type of payment terms
- If the code in ITD01 is "04", then ITD07 or ITD09 is required and either ITD10 or ITD11 is required; if the code in ITD01 is "05", then ITD06 or ITD07 is required.
- 01
- Basic
Code identifying the beginning of the terms period
- 3
- Invoice Date
Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date
Note for Net Terms this element will default
Number of days in the terms discount period by which payment is due if terms discount is earned
Note for Net Terms this element will default
Number of days until total invoice amount is due (discount not applicable)
Date/Time Reference
To specify pertinent dates and times
EXAMPLE:
DTM\073\20120101~
DTM\037\20120113~
DTM\002\20120123~
DTM\001\20120213~
Code specifying type of date or time, or both date and time
- 001
- Cancel After
- 002
- Delivery Week
- 037
- Ship Not Before
- 073
- Must Route By
Extended Reference Information
To transmit identifying information as specified by the Reference Identification Qualifier
EXAMPLE: N9\L1\Header Comments~
Code qualifying the Reference Identification
- L1
- Letters or Notes
Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier
Text
To specify textual data
EXAMPLE: MTX\Header Comments~
This segment may occur multiple times for a single N9 loop.
Party Identification
To identify a party by type of organization, name, and code
Required :
‘ST’ - Ship To
‘VN’ – Vendor
‘BT’ - Bill To
Optional:
‘SF’ - Ship From
‘RI’ - Remit To
EXAMPLE:
N1\ST\STORE 4150\92\4150~
N1\BT\BIG LOTS STORES INC~
N1\SF\ABC CO~
N1\VN\ABC CO~
N1\RI\ABC CO~
Code identifying an organizational entity, a physical location, property or an individual
- BT
- Bill-to-Party
N1-03 and N1-04 are optional
- RI
- Remit To
N1-03 and N1-04 are optional
- SF
- Ship From
N1-03 and N1-04 are optional
- ST
- Ship To
- VN
- Vendor
N1-03 and N1-04 are optional
Code designating the system/method of code structure used for Identification Code (67)
- 92
- Assigned by Buyer or Buyer's Agent
Code identifying a party or other code
- This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
Party Location
To specify the location of the named party
EXAMPLE: N3\1417 N BELT HWY~
Geographic Location
To specify the geographic place of the named party
EXAMPLE: N4\SAINT JOSEPH\MO\645062415~
Free-form text for city name
- A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
Code (Standard State/Province) as defined by appropriate government agency
- N402 is required only if city name (N401) is in the U.S. or Canada.
Administrative Communications Contact
To identify a person or office to whom administrative communications should be directed
EXAMPLE: PER\IC\JILL JONES\TE\6142786800\FX\6142786676~
Code identifying the major duty or responsibility of the person or group named
- IC
- Information Contact
Code identifying the type of communication number
- TE
- Telephone
Complete communications number including country or area code when applicable
Code identifying the type of communication number
- FX
- Fax
Detail
Baseline Item Data
To specify basic and most frequently used line item data
- PO102 is required.
EXAMPLE: PO1\1\1920\EA\1.8500\SK\110121927\MG\005100002797\UP\051000027979\SZ\48OZ\BL\PREGO\\KM\20101110\SC\O\JP\N\ZZ\Y~
Alphanumeric characters assigned for differentiation within a transaction set
- PO101 is the line item identification.
Numeric value of quantity
- PO102 is quantity ordered.
Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
- AS
- Assortment
- EA
- Each
Price per unit of product, service, commodity, etc.
(2) Decimals
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- PO106 through PO125 provide for ten different product/service IDs per each item. For example: Case, Color, Drawing No., U.P.C. No., ISBN No., Model No., or SKU.
- SK
- Stock Keeping Unit (SKU)
10 Digits Max
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- MG
- Manufacturer's Part Number
30 Characters
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- UP
- UCC - 12
- Format 1-5-5-1
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- SZ
- Vendor Alphanumeric Size Code
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- BL
- Brand/Label
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- CL
- Color
Identifying number for a product or service
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- KM
- Shelf-Life Code
Identifying number for a product or service
Expiration Date Required for Consumables
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- SC
- Seller's Date Code
Identifying number for a product or service
Seller’s Open/Close Date Code Required for Consumables
- C
- Closed Date Code
- O
- Open Date Code
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- JP
- Package Type Code
Identifying number for a product or service
- F
- Flat
- G
- Garments on hangers
- H
- Hang
- N
- None
Code identifying the type/source of the descriptive number used in Product/Service ID (234)
- ZZ
- Electronic Article Surveillance Tag
Additional Item Detail
To specify additional item-related data involving variations in normal price/quantity structure
EXAMPLE: P03\QO\\\1\CT~
Code specifying the reason for price or quantity change
- QO
- Quantity Ordered
Product/Item Description
To describe a product or process in coded or free-form format
EXAMPLE: PID\F\\ Extension Table ~
Code indicating the format of a description
- If PID01 equals "F", then PID05 is used. If PID01 equals "S", then PID04 is used. If PID01 equals "X", then both PID04 and PID05 are used.
- F
- Free-form
Item Physical Details
To specify the physical qualities, packaging, weights, and dimensions relating to the item
EXAMPLE: PO4\1\\\\1\CF\\\1~
The number of inner containers, or number of eaches if there are no inner containers, per outer container
Numeric value of gross volume per pack
(2) Decimals
Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
- CF
- Cubic Feet
Destination Quantity
To specify destination and quantity detail
EXAMPLE: SDQ\EA\92\0001\10\0002\20~
Segment will be used for palletized store quantity.
Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken
- AS
- Assortment
- EA
- Each
Code designating the system/method of code structure used for Identification Code (67)
- SDQ02 is used only if different than previously defined in the transaction set.
- 92
- Assigned by Buyer or Buyer's Agent
Code identifying a party or other code
- SDQ03 is the store number.
Text
To specify textual data
EXAMPLE: MTX\Detail Comments~
Summary
Transaction Totals
To transmit a hash total for a specific element in the transaction set
- The number of line items (CTT01) is the accumulation of the number of PO1 segments. If used, hash total (CTT02) is the sum of the value of quantities ordered (PO102) for each PO1 segment.
EXAMPLE: CTT\2~
Monetary Amount Information
To indicate the total monetary amount
- If AMT is used in the summary area, then AMT01 will = TT and AMT02 will indicate total transaction amount as calculated by the sender.
EXAMPLE: AMT\TT\287.200~
Transaction Set Trailer
To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)
Total number of segments included in a transaction set including ST and SE segments
Functional Group Trailer
To indicate the end of a functional group and to provide control information
Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element
Interchange Control Trailer
To define the end of an interchange of zero or more functional groups and interchange-related control segments
Sample
GS*PO*SENDERGS*RECEIVERGS*20231117*002956*000000001*X*005010~
ST*850*000101504~
BEG*00*SA*000221631*4*19990113~
REF*LU*04150*S~
REF*IA*1234567890~
REF*NB*C123456~
REF*PK*Y~
REF*ZZ*Y~
REF*FJ*125~
PER*BD*JILL JONES~
FOB*PP*OV*FOB Cntry***CA*Origin**Prepaid By Seller~
FOB*PP*DE*Port ***OR*Ship Point**D~
ITD*01*3*2**10**30*****2%-10/NET 30~
DTM*073*19990101~
DTM*037*19990113~
DTM*002*19990123~
DTM*001*19990213~
N9*L1*Header Comments~
MTX**Header Comments~
N1*BT*BIGLOTS INC CORP~
N3*300 PHILLIPI RD~
N4*COLUMBUS*OH*432281310~
PER*IC*JOHN JONES*TE*6142786800*FX*6142786676~
N1*ST*STORE 4150*92*4150~
N3*1417 N BELT HWY~
N4*SAINT JOSEPH*MO*645062415~
PER*IC*JILL JONES*TE*6142786800*FX*6142786676~
N1*VN*ABC CO~
N3*12 EAST HWY~
N4*JACKSON *MO*12345~
PER*IC*RODGER*TE*6142781234*FX*6142781235~
PO1*1*1*EA*89**SK*610000014*MG*D44-40T*UP*012300319861~
PO3*QO*****1*CT~
PID*F**** Extension Table ~
PO4*1*******1*CF*****1~
MTX**Detail Comments~
PO1*1*1920*AS*1.85**SK*110121927*MG*005100002797*UP*051000027979*SZ*48OZ*BL*PREGO***KM*20101110*SC*O*JP*N*ZZ*Y~
PO3*QO*****1*CT~
PID*F**** Extension Table ~
PO4*1*******1*CF*****1~
MTX**Detail Comments~
CTT*2~
AMT*TT*287.20~
SE*43*000101504~
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.