850	Purchase Order	
 	Functional Group=PO	

This Draft Standard for Trial Use 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.

Heading:
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage			
	010	ST	Transaction Set Header	M	1	 	 	Must use			
	020	BEG	Beginning Segment for Purchase Order	M	1	 	 	Must use			
	050	REF	Reference Identification	O	>1	 	 	Must use			
	090	CTP	Pricing Information	O	>1	 	 	Must use			
	110	CSH	Sales Requirements	O	5	 	 	Must use			
	150	DTM	Date/Time Reference	O	10	 	 	Must use			
 	LOOP ID - N9	 	 	 	 	1000	 	 	 	 	
	295	N9	Reference Identification	O	1	 	 	Must use			
	300	MSG	Message Text	O	1000	 	 	Must use			
 	 	 	 	 	 	 	 	 	 	 	
 	LOOP ID - N1	 	 	 	 	200	 	 	 	 	
	310	N1	Name	O	1	 	 	Must use			
	330	N3	Address Information	O	2	 	 	Must use			
	340	N4	Geographic Location	O	>1	 	 	Must use			
	350	REF	Reference Identification	O	12	 	 	Dependent			
	360	PER	Administrative Communications Contact	O	>1	 	 	Dependent			
	390	TD5	Carrier Details (Routing Sequence/Transit Time)	O	12	 	 	Dependent			

Detail:
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage			
 	LOOP ID - PO1	 	 	 	 	100000	 	 	 	 	
	010	PO1	Baseline Item Data	M	1	 		Must use			
 	LOOP ID - PID	 	 	 	 	1000	 	 	 	 	
	050	PID	Product/Item Description	O	1	 	 	Must use			
 	 	 	 	 	 	 	 	 	 	 	
 	LOOP ID - SAC	 	 	 	 	25	 	 	 	 	
	130	SAC	Service, Promotion, Allowance, or Charge Information	O	1	 	 	Must use			
 	 	 	 	 	 	 	 	 	 	 	
 	LOOP ID - N9	 	 	 	 	1000	 	 	 	 	
	330	N9	Reference Identification	O	1	 	 	Dependent			
	340	MSG	Message Text	O	1000	 	 	Dependent			

Summary:
	Pos	Id	Segment Name	Req	Max Use	Repeat	Notes	Usage			
 	LOOP ID - CTT	 	 	 	 	1	 	 	 	 	
	010	CTT	Transaction Totals	O	1	 	N3/010	Must use			
	030	SE	Transaction Set Trailer	M	1	 	 	Must use			

Notes:
3/010	The number of line items (CTT01) is the accumulation of the number of PO1 segments.	

ST	Transaction Set Header	Pos: 010	
Max: 1	

Heading - Mandatory	

Loop: N/A	
Elements: 2	

Usage Option:	Must use	

To indicate the start of a transaction set and to assign a control number

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	ST01	143	Transaction Set Identifier Code	M	ID	3/3	
 	Code	Name	
 	850	Purchase Order	
	Ref	Id	Element Name	Req	Type	Min/Max	
	ST02	329	Transaction Set Control Number	M	AN	4/9	

BEG	Beginning Segment for Purchase Order	Pos: 020	
Max: 1	

Heading - Mandatory	

Loop: N/A	
Elements: 4	

Usage Option:	Must use	

To indicate the beginning of the Purchase Order Transaction Set and transmit identifying numbers and dates

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	BEG01	353	Transaction Set Purpose Code	M	ID	2/2	
 	Code	Name	
 	00	Original	
	Ref	Id	Element Name	Req	Type	Min/Max	
	BEG02	92	Purchase Order Type Code	M	ID	2/2	
 	Code	Name	
 	DS	Dropship	
	Ref	Id	Element Name	Req	Type	Min/Max	
	BEG03	324	Purchase Order Number	M	AN	1/22	
	BEG05	373	Date
Usage Notes	

Date this Purchase Order was created.	

	M	DT	8/8	

REF	Reference Identification	Pos: 050	
Max: >1	

Heading - Optional	

Loop: N/A	
Elements: 2	

Usage Option:	Must use	

To specify identifying information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF01	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	CO	Customer Order Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF02	127	Reference Identification	X	AN	1/30	

Segment Notes	
Contains the customer's order number (13-digit numeric).  Note: This number may not be unique across all Purchase Orders.	

REF	Reference Identification	Pos: 050	
Max: >1	

Heading - Optional	

Loop: N/A	
Elements: 2	

Usage Option:	Must use (only for Site to Store Orders)	

To specify identifying information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF01	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	ST	Walmart Store Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF02	127	Reference Identification	X	AN	1/30	

Segment Notes	
Contains the Wal-mart Store Number for ship to store orders	

REF	Reference Identification	Pos: 050	
Max: >1	

Heading - Optional	

Loop: N/A	
Elements: 2	

Usage Option:	Must use	

To specify identifying information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF01	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	IA	Internal Vendor Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF02	127	Reference Identification	X	AN	1/30	

Segment Notes	
Walmart Assigned Internal Vendor Number. This is not to be used even though always send in the order file.	

REF	Reference Identification	Pos: 050	
Max: >1	

Heading - Optional	

Loop: N/A	
Elements: 2	

Usage Option:	Optional	

To specify identifying information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF01	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	VR	Facility Id Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF02	127	Reference Identification	X	AN	1/30	

Segment Notes	
Walmart.com Assigned Facility id Number. This segment will be send only if the vendor has multiple ship points or Facilities. REF-02 has the Facility Number from where the order is to be shipped.	

CTP	Pricing Information	Pos: 090	
Max: >1	

Heading - Optional	

Loop: N/A	
Elements: 4	

Usage Option:	Must use	

To specify pricing information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	CTP01	687	Class of Trade Code	M	ID	2/2	
 	Code	Name	
 	RS	Resale	
	Ref	Id	Element Name	Req	Type	Min/Max	
	CTP03	212	Unit Price
Usage Notes	

Total retail price for this Purchase Order, including all lines, charges and adjustments.  Note: For gift orders this value is zero.	

	M	R	1/17	
	CTP04	380	Quantity
Usage Notes	

Always 1 unit quantity.	

	M	R	1/15	
	CTP05	C001	Composite Unit of Measure	OT	Comp		
		355	Unit or Basis for Measurement Code	M	ID	2/2	
 	Code	Name	
 	EA	Each
	
Segment Notes	
Contains the total retail amount of this Purchase Order.  It may be used to validate the data consistency of this message.	

CSH	Sales Requirements	Pos: 110	
Max: 5	

Heading - Optional	

Loop: N/A	
Elements: 1	

Usage Option:	Must use	

To specify general conditions or requirements of the sale

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	CSH01	563	Sales Requirement Code	O	ID	1/2	
 	Code	Name	
 	P2	Ship As Soon As Possible	
 	SC	Ship Complete
	
Segment Notes	
Contains a code used to suppress split-shipments within a facility.	

DTM	Date/Time Reference	Pos: 150	
Max: 10	

Heading - Optional	

Loop: N/A	
Elements: 2	

Usage Option:	Must use	

To specify pertinent dates and times

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	DTM01	374	Date/Time Qualifier	M	ID	3/3	
 	Code	Name	
 	002	Delivery Requested	
 	806
010
009	Customer Order
Expected ship date
Order Processing Date	
	Ref	Id	Element Name	Req	Type	Min/Max	
	DTM02	373	Date	X	DT	8/8	

Segment Notes	
There is always a DTM segment containing the date the order was placed (DTM01 = "806").  
There may be a DTM segment containing a date on which the customer has requested the item be delivered (DTM01 = "002").  This option is not supported by all suppliers.
DTM01= “010” is for expected ship date and is optional
DTM01= “009” is for  Order Processing date(OPD) and is optional	

N9	Reference Identification	Pos: 295	
Max: 1	

Heading - Optional	

Loop: N9	
Elements: 2	

Usage Option:	Must use	

To transmit identifying information as specified by the Reference Identification Qualifier

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	N901	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	ZZ	Mutually Defined	
	Ref	Id	Element Name	Req	Type	Min/Max	
	N902	127	Reference Identification	X	AN	1/30	
 	Code	Name	
 	RETURNSMSG	Returns Message	
 	MARKETINGMSG	Marketing Message	
 	LASTDELIVERYMSG	Last Delivery Message
	
Segment Notes	
The N9 segments with N9-01=ZZ are always send in the order file. This is not to be used. Presently the N9-02 always contains the above mentioned values. 	

MSG	Message Text	Pos: 300	
Max: 1000	

Heading - Optional	

Loop: N9	
Elements: 3	

Usage Option:	Must use	

To provide a free-form format that allows the transmission of text information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	MSG01	933	Free-Form Message Text	M	AN	1/264	
	MSG02	934	Printer Carriage Control Code	X	ID	2/2	
 	Code	Name	
 	AA	Advance The Specified Number of Lines Before Print	
	Ref	Id	Element Name	Req	Type	Min/Max	
	MSG03	1470	Number
Usage Notes	

Message line number (1 to 4).	

	O	N0	1/9	

Segment Notes	
The MSG segments with MSG-02=AA are always send in the order file. This is not to be used 
Each message may have four lines and contain up to 100 characters of data per line.	

N1	Name	Pos: 310	
Max: 1	

Heading - Optional	

Loop: N1	
Elements: 2	

Usage Option:	Must use	

To identify a party by type of organization, name, and code

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	N101	98	Entity Identifier Code	M	ID	2/3	
 	Code	Name	
 	BT	Bill-to-Party	
 	RT	Returned to	
 	ST	Ship To	
	FD	Physical Address	
			
	Ref	Id	Element Name	Req	Type	Min/Max	
	N102	93	Name	X	AN	1/60	

Segment Notes	
This loop contains three addresses related to this Purchase Order, and this segment (N101) defines the type of data to follow.
The N1 loop when N101=ST (Ship to) address is always send in the 850. 
The N1 loop when N101=BT (Bill To) address is not send for payment methods Paypal or gift cards.
FD is used to specify the physical address of a Walmart  facility for the case of orders using ship code 81 and 91 (Wal-Mart transportation ) . In that case the optional N103/N104 elements are populated to provide the Walmart ID number for the facility N102 will be populated with ‘RDC’ or ‘WPM’ for this case.	

N3	Address Information	Pos: 330	
Max: 2	

Heading - Optional	

Loop: N1	
Elements: 2	

Usage Option:	Must use	

To specify the location of the named party

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	N301	166	Address Information	M	AN	1/55	
	N302	166	Address Information	O	AN	1/55	

N4	Geographic Location	Pos: 340	
Max: >1	

Heading - Optional	

Loop: N1	
Elements: 4	

Usage Option:	Must use	

To specify the geographic place of the named party

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	N401	19	City Name	O	AN	2/30	
	N402	156	State or Province Code	O	ID	2/2	
	N403	116	Postal Code	O	ID	3/15	
	N404	26	Country Code
Usage Notes	

ISA ALPHA-3 Country Code.  For a list of codes, see http://www.un.org/Depts/unsd/methods/m49alpha.htm.	

	O	ID	2/3	

N405	309	Location Qualifier	X	1 	ID 1/2
	
		Usage Notes 	

Used only for Integrated Shipping (backhaul). Value ‘GL’	

N406	310	Location Identifier	O	1 	AN 1/30	
		Usage Notes 	

Used only for Integrated Shipping (backhaul). Value GLN (Global Location Number) of facility	

			

REF	Reference Identification	Pos: 350	
Max: 12	

Heading - Optional	

Loop: N1	
Elements: 3	

Usage Option:	Dependent	

To specify identifying information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF01	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	4N	Special Payment Reference Number	
 	OD	Original Return Request Reference Number	
 	PN	Permit Number	
 	PHC	Process Handling Code	
	Ref	Id	Element Name	Req	Type	Min/Max	
	REF02	127	Reference Identification
Usage Notes	

REF01 = "4N": Description of billing payment method.  For gift orders, this is replaced by non-descriptive text.
REF01 = "OD": Returns TC Number 
REF01 = "PN": Returns Permit Number.  Additional data is populated in REF04.
REF01 = "PHC": Returns Method Code of "RC" (Not pre-paid), "RP" (pre-paid) or "RS" (return to vendor).	

	X	AN	1/30	
	REF04	C040	Reference Identifier
Usage Notes	

Only used if REF01 = "PN"	

	O	Comp		
		128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	ZZ	Mutually Defined	
	Ref	Id	Element Name	Req	Type	Min/Max	
		127	Reference Identification
Usage Notes	

Returns Permit City	

	M	AN	1/30	
		128	Reference Identification Qualifier	X	ID	2/3	
 	Code	Name	
 	ZZ	Mutually Defined	
	Ref	Id	Element Name	Req	Type	Min/Max	
		127	Reference Identification
Usage Notes	

Returns Permit State	

	X	AN	1/30	
		128	Reference Identification Qualifier	X	ID	2/3	
 	Code	Name	
 	ZZ	Mutually Defined	
	Ref	Id	Element Name	Req	Type	Min/Max	
		127	Reference Identification
Usage Notes	

Returns Permit Zip Code	

	X	AN	1/30	

Segment Notes	
Segments mandatory with REF01 = "4N" and “OD” for N101 = "ST".
Segments mandatory with REF01 = "PN" and "PHC" for N101 = "RT".	

PER	Administrative Communications Contact	Pos: 360	
Max: >1	

Heading - Optional	

Loop: N1	
Elements: 6	

Usage Option:	Dependent	

To identify a person or office to whom administrative communications should be directed

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	PER01	366	Contact Function Code	M	ID	2/2	
 	Code	Name	
 	BI	Bill Inquiry Contact	
 	RE	Receiving Contact	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PER02	93	Name	O	AN	1/60	
	PER03	365	Communication Number Qualifier	X	ID	2/2	
 	Code	Name	
 	TE	Telephone	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PER04	364	Communication Number
Usage Notes	

Telephone number as 10-digit string with no punctuation.	

	X	AN	1/80	
	PER05	365	Communication Number Qualifier	X	ID	2/2	
 	Code	Name	
 	EM	Electronic Mail	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PER06	364	Communication Number	X	AN	1/80	

Segment Notes	
Segment mandatory with PER01 = "BI" for N101 = "BT".
Segment mandatory with PER01 = "RE" for N101 = "ST".	

TD5	Carrier Details (Routing Sequence/Transit Time)	Pos: 390	
Max: 12	

Heading - Optional	

Loop: N1	
Elements: 6	

Usage Option:	Dependent	

To specify the carrier and sequence of routing and provide transit time information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	TD501	133	Routing Sequence Code	O	ID	1/2	
 	Code	Name	
 	O	Origin Carrier (Air, Motor, or Ocean)	
	Ref	Id	Element Name	Req	Type	Min/Max	
	TD502	66	Identification Code Qualifier	X	ID	1/2	
 	Code	Name	
 	93	Code assigned by the organization originating the transaction set	
	Ref	Id	Element Name	Req	Type	Min/Max	
	TD503	67	Identification Code
Usage Notes	

A carrier method code as defined by Walmart.com.  Carrier method up to 4 digits numeric.
The value of this element determines whether this is a site-to-home or site-to-store order.
Carrier codes for site-to-store orders are – 77,78,79,80, 88, 90, 92 and 97 (highlighted in blue in the list below).	

	X	AN	2/80	
 	Code	Name	
 	01	USPS 3rd Class	
 	02	UPS Ground	
 	03	Clark Transport	
 	04	Yellow Freight System	
 	05	USPS Express Mail	
 	07	USPS 4th Inter	
 	08	UPS Basic 	
 	09	UPS Second day Air	
 	10	USPS First Class	
 	12	Silver Star	
 	13	UPS Second Day Ground	
 	14	Consolidation	
 	16	UPS Next Day Air	
 	17	Common Carrier	
 	19	FedEx Express Saver (3 Day Service)	
 	20	FedEx Ground	
 	21	FedEx Priority Overnight	
 	22	FedEx Two Day	
 	23	FedEx Priority Overnight (duplicate or 21)	
 	24	FedEx Standard Overnight (PM Delivery)	
 	26	UPS Next Day Air Saver	
 	29	UPS 3 Day Select	
 	30	USPS Priority Mail	
 	31	USPS Priority Mail	
 	32	OLD Dominion Freight Line LTL	
 	33	Newgistics	
 	34	Airborne Ground Delivery	
 	35	Airborne Express	
 	36	Airborne	
 	37	Airborne 2-DAY	
 	38	UPS Ground	
 	41	ABF Freight System	
 	42	Bekins	
 	43	Pilot Freight Basic Delivery	
 	44	FedEx Priority Overnight w/Saturday Delivery	
 	45	UPS Next Day Air Saver (Saturday Delivery)	
 	46	SmartMail	
 	47	USPS Media Mail	
 	48	USPS Bound Printed Matter	
	50	Bekins Premium	
	51	USA Truck	
	52	Contract Freighers, Inc	
 	53	Crete Carrier	
 	54	Eagle Global Logistics - Three Day Service	
 	55	Eagle Global Logistics - Economy	
 	56	US Xpress	
 	57	Heartland Express	
	58	Dart Transit	
	61	UPS Ground (CTN, GA)	
	62	UPS Ground (Parsippany, NJ)	
	63	UPS Ground (Chicago, IL)	
	64	UPS Ground (Vernon, CA)	
	65	FedEx SmartPost - BMC	
	66	FedEx SmartPost - DDU	
	67	FedEx Home Delivery	
	68	Streamlite	
	69	UPS Mail Innovations BPM	
	70	UPS Mail Innovations	
	71	USPS	
	72	Sun Delivery, Inc	
	73	APX-DDU	
	74	APX-BMC	
	77	Direct to Store FedEx Priority Overnight	
	78	Direct to Store FedEx Two Day	
	79	Direct to Store FedEx, Ground	
	80	Direct to Store UPS, Ground	
	81	In-Store delivery through WPM RDC	
	82	Seko Worldwide	
	83	DHL@home	
	84	DHL@home(expedited)	
	85	DHL 2nd Day	
	86	DHL Next Day 03:00pm	
	87	FTD Florist	
	88	Direct to Store UPS Next Day Air	
	89	1 Hour Burn on Demand	
	90	Direct to Store – Freight	
	91	In-Store delivery through Bypass WPM	
	92	Direct to Store via UPS Ground Sort (Jewelry & Media)	
	95	Fulfilled with Inventory from a Wal-Mart Store	
	96	Wal_Mart Fleet for In-Store Pickup	
	97	Direct to Store UPS, second Day Air	
	98	Downloads	
	99	In-Store Pickup	
	100	DHL Next Day 12:00pm	
	101	DHL Next Day w/Sat	

		

Note : A list of actual applicable codes will be provided separately based on the item assortment
	
	Ref	Id	Element Name	Req	Type	Min/Max	
	TD507	309	Location Qualifier
Usage Notes	

If the customer chose in-store pickup, then TD507 and TD508 are required to specify the store number.  All suppliers do not support this delivery method.	

	O	ID	1/2	
 	Code	Name	
 	IS	In Store	
	Ref	Id	Element Name	Req	Type	Min/Max	
	TD508	310	Location Identifier
Usage Notes	

Wal-Mart Store Number if TD507 = "IS".	

	X	AN	1/30	
	TD512	284	Service Level Code
Usage Notes	

Code indicating the service level chosen by the customer for this order.  	

	X	ID	2/2	
 	Code	Name	
 	ND	Next Day Air	
 	SE	Second Day	
 	SG	Standard Ground	
 	ZZ
DF	Mutually Defined
Value shipping	

PO1	Baseline Item Data	Pos: 010	
Max: 1	

Detail - Mandatory	

Loop: PO1	
Elements: 11	

Usage Option:	Must use	

To specify basic and most frequently used line item data

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO101	350	Assigned Identification
Usage Notes	

Unique identifier for this Purchase Order Line.  This number is necessary when responding with a status update or shipping notification.	

	O	AN	1/20	
	PO102	330	Quantity Ordered	X	R	1/15	
	PO103	355	Unit or Basis for Measurement Code	O	ID	2/2	
 	Code	Name	
 	EA	Each	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO104	212	Unit Price
Usage Notes	

The cost to Walmart.com for each unit, according to the latest information provided by the supplier.	

	X	R	1/17	
	PO105	639	Basis of Unit Price Code	O	ID	2/2	
 	Code	Name	
 	QE	Quoted Price per Each	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO106	235	Product/Service ID Qualifier	X	ID	2/2	
 	Code	Name	
 	BP	Buyer's Part Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO107	234	Product/Service ID
Usage Notes	

Walmart.com item SKU.	

	X	AN	1/48	
	PO108	235	Product/Service ID Qualifier	X	ID	2/2	
 	Code	Name	
 	UP	U.P.C. Consumer Package Code (1-5-5-1)	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO109	234	Product/Service ID
Usage Notes	

Wal-Mart Item UPC	

	X	AN	1/48	
	PO110	235	Product/Service ID Qualifier	X	ID	2/2	
 	Code	Name	
 	VP	Vendor's (Seller's) Part Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PO111	234	Product/Service ID
Usage Notes	

Supplier's item SKU.	

	X	AN	1/48	

PID	Product/Item Description	Pos: 050	
Max: 1	

Detail - Optional	

Loop: PID	
Elements: 2	

Usage Option:	Must use	

To describe a product or process in coded or free-form format

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	PID01	349	Item Description Type	M	ID	1/1	
 	Code	Name	
 	F	Free-form	
	Ref	Id	Element Name	Req	Type	Min/Max	
	PID05	352	Description
Usage Notes	

Item description.	

	X	AN	1/80	

SAC	Service, Promotion, Allowance, or Charge Information	Pos: 130	
Max: 1	

Detail - Optional	

Loop: SAC	
Elements: 5	

Usage Option:	Must use	

To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	SAC01	248	Allowance or Charge Indicator	M	ID	1/1	
 	Code	Name	
 	N	No Allowance or Charge	
	Ref	Id	Element Name	Req	Type	Min/Max	
	SAC02	1300	Service, Promotion, Allowance, or Charge Code	X	ID	4/4	
 	Code	Name	
 	D340	Goods and Services Charge	
 	G830	Shipping and Handling	
 	H000	Special Allowance	
 	H151	Special Services	
 	H850	Tax	
	Ref	Id	Element Name	Req	Type	Min/Max	
	SAC08	118	Rate
Usage Notes	

Retail price per unit.  Note: For gift orders this value is zero.	

	O	R	1/9	
	SAC12	331	Allowance or Charge Method of Handling Code	O	ID	2/2	
 	Code	Name	
 	15	Information Only	
	Ref	Id	Element Name	Req	Type	Min/Max	
	SAC15	352	Description
Usage Notes	

A free-text description is supplied if SAC02 is "H000" or "H151".	

	X	AN	1/80	

Segment Notes	

SAC02 = "D340": Charge to the customer for each item - always present.
SAC02 = "G830": Charge to the customer for shipping and handling - always present.
SAC02 = "H850": Charge to the customer for sales tax - always present.

The below segments are not always present in the 850.
SAC02 = "H000": Allowance to the customer for customer service adjustment or promotion - present only if non-zero.
SAC02 = "H151": Charge to the customer for value-added service - present only if non-zero.	

N9	Reference Identification	Pos: 330	
Max: 1	

Detail - Optional	

Loop: N9	
Elements: 4	

Usage Option:	Dependent	

To transmit identifying information as specified by the Reference Identification Qualifier

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	N901	128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	QY	Service Performed Code	
 	S2	Data Source	
	Ref	Id	Element Name	Req	Type	Min/Max	
	N902	127	Reference Identification
Usage Notes	

If N901 = "QY", then this is a value-added service code as defined by Walmart.com.	

	X	AN	1/30	
 	Code	Name	
 	VGM	Gift Message (Four Lines)	
 	VGT	Gift Tag (To/From)	
 	VGW
VSR	Gift Wrapping
Signature on Delivery	
	Ref	Id	Element Name	Req	Type	Min/Max	
	N903	369	Free-form Description
Usage Notes	

If N901 = "S2", then this is the name of a dynamic data element.	

	X	AN	1/45	
	N907	C040	Reference Identifier
Usage Notes	

If N901 = "QY", then this contains a unique sequence number for each value-added service request.	

	O	Comp		
		128	Reference Identification Qualifier	M	ID	2/3	
 	Code	Name	
 	55	Sequence Number	
	Ref	Id	Element Name	Req	Type	Min/Max	
		127	Reference Identification	M	AN	1/30	

Segment Notes	
These segments contain value-added services that the customer has requested (N901 = "QY") or dynamic-data elements for item configuration (N901 = "S2").  The N9 segments with N901=QY will be send when the order is a Gift order with Gift message, Gift wrapping or Gift Tag.	

MSG	Message Text	Pos: 340	
Max: 1000	

Detail - Optional	

Loop: N9	
Elements: 1	

Usage Option:	Dependent	

To provide a free-form format that allows the transmission of text information

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	MSG01	933	Free-Form Message Text	M	AN	1/264	

Segment Notes	
If N901 = "QY", then there is one MSG element for each value-added service data element.  MSG01 will contain a name/value pair separated by a "|" character (e.g. "LINE1|Hi Mom"). 
There will 4 MSG segments containing 4 lines of text when N9-02=VGM.
When N9-02=VSR ,MSG-01 =SOD|Y  for signature on delivery

If N901 = "S2", then there are MSG segments containing the dynamic-data value corresponding to the N903 dynamic-data name.  The data will be split into 264 character blocks, so there may be one or many MSG segments depending on the length of the data.	

CTT	Transaction Totals	Pos: 010	
Max: 1	

Summary - Optional	

Loop: CTT	
Elements: 1	

Usage Option:	Must use	

To transmit a hash total for a specific element in the transaction set

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	CTT01	354	Number of Line Items (Count of PO1 segments)	M	N0	1/6	

SE	Transaction Set Trailer	Pos: 030	
Max: 1	

Summary - Mandatory	

Loop: N/A	
Elements: 2	

Usage Option:	Must use	

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)

Element Summary: 
	Ref	Id	Element Name	Req	Type	Min/Max	
	SE01	96	Number of Included Segments	M	N0	1/10	
	SE02	329	Transaction Set Control Number	M	AN	4/9