Inventory Schema

Schema

Please contact your project team or email support for any updates or questions.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="inventories" type="inventoriesType"/>
	<xs:complexType name="inventoriesType">
		<xs:sequence>
			<xs:element name="inventory" type="inventoryType" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="tpType">
		<xs:sequence>
			<xs:element type="xs:string" name="tp_id"/>
			<xs:element type="xs:string" name="tp_name"/>
			<xs:element type="xs:string" name="tp_type"/>
			<xs:element type="xs:string" name="tp_directory"/>
			<xs:element type="xs:string" name="industry_id"/>
			<xs:element type="xs:string" name="tp_phone"/>
			<xs:element type="xs:string" name="tp_isa_id"/>
			<xs:element type="xs:string" name="tp_isa_qual"/>
			<xs:element type="xs:string" name="tp_duns"/>
			<xs:element type="xs:integer" name="tp_active"/>
			<xs:element type="xs:dateTime" name="tp_created"/>
			<xs:element type="xs:dateTime" name="tp_updated"/>
			<xs:element name="tp_additional">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="attributes">
							<xs:complexType>
								<xs:sequence>
									<xs:element type="xs:string" name="iso_9000"/>
									<xs:element type="xs:string" name="email"/>
									<xs:element name="legacy">
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="company_id"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="productType">
		<xs:sequence>
			<xs:element name="product_id" type="xs:string"/>
			<xs:element name="vendor_id" type="xs:string"/>
			<xs:element type="tpType" name="vendor"/>
			<xs:element name="product_code" type="xs:string"/>
			<xs:element name="product_code_type" type="xs:string"/>
			<xs:element name="product_gtin" type="xs:string"/>
			<xs:element name="product_vendor_item_num" type="xs:string"/>
			<xs:element name="product_group_id" type="xs:string"/>
			<xs:element name="product_uom" type="xs:string"/>
			<xs:element name="product_group">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="product_group_id" type="xs:string"/>
						<xs:element name="product_group_description" type="xs:string"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="product_created" type="xs:dateTime"/>
			<xs:element name="product_updated" type="xs:dateTime"/>
			<xs:element name="product_additional">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="identifiers" minOccurs="0">
							<xs:complexType>
								<xs:sequence>
									<xs:element type="xs:string" name="gtin"/>
									<xs:element type="xs:float" name="vendor_item_num"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="attributes" minOccurs="0">
							<xs:complexType>
								<xs:sequence>
									<xs:element type="xs:string" name="brand" minOccurs="0"/>
									<xs:element type="xs:string" name="color" minOccurs="0"/>
									<xs:element type="xs:string" name="size" minOccurs="0"/>
									<xs:element type="xs:float" name="weight_in_lbs" minOccurs="0"/>
									<xs:element type="xs:string" name="language" minOccurs="0"/>
									<xs:element type="xs:string" name="season" minOccurs="0"/>
									<xs:element type="xs:string" name="gender" minOccurs="0"/>
									<xs:element type="xs:string" name="manufacturer_name" minOccurs="0"/>
									<xs:element type="xs:string" name="manufacturer_part_id" minOccurs="0"/>
									<xs:element type="xs:string" name="manufacturer_product_url" minOccurs="0"/>
									<xs:element type="xs:string" name="product_consumer_description" minOccurs="0"/>
									<xs:element type="xs:string" name="sds_url" minOccurs="0"/>
									<xs:element type="xs:string" name="unspsc_code" minOccurs="0"/>
									<xs:element type="xs:string" name="unspsc_version" minOccurs="0"/>
									<xs:element type="xs:string" name="vendor_part_id" minOccurs="0"/>
									<xs:element type="xs:string" name="vendor_product_url" minOccurs="0"/>
									<xs:element name="buyer" minOccurs="0">
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="item_num"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="product_image_uri" >
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="pri" minOccurs="0"/>
												<xs:element type="xs:string" name="sdl" minOccurs="0"/>
												<xs:element type="xs:string" name="sdr" minOccurs="0"/>
												<xs:element type="xs:string" name="vf1" minOccurs="0"/>
												<xs:element type="xs:string" name="vib" minOccurs="0"/>
												<xs:element type="xs:string" name="vik" minOccurs="0"/>
												<xs:element type="xs:string" name="vis" minOccurs="0"/>
												<xs:element type="xs:string" name="vit" minOccurs="0"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="vendor_product_category" >
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="l1" minOccurs="0"/>
												<xs:element type="xs:string" name="l2" minOccurs="0"/>
												<xs:element type="xs:string" name="l3" minOccurs="0"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element type="xs:float" name="min_order_qty" minOccurs="0"/>
									<xs:element type="xs:float" name="msrp" minOccurs="0"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="product_pack" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:element type="xs:string" name="product_pack_id"/>
						<xs:element type="xs:string" name="parent_product_id"/>
						<xs:element type="xs:string" name="product_pack_product_id"/>
						<xs:element name="product" type="productType"/>
						<xs:element type="xs:float" name="product_pack_product_qty"/>
						<xs:element type="xs:int" name="product_pack_status"/>
						<xs:element type="xs:dateTime" name="product_pack_created"/>
						<xs:element type="xs:dateTime" name="product_pack_updated"/>
						<xs:element name="product_pack_additional">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="attributes" minOccurs="0">
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="custom_product_pack_attribute" minOccurs="0"/>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="product_subscriber" maxOccurs="unbounded">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="product_subscriber_key" type="xs:string"/>
						<xs:element name="tp_id" type="xs:string"/>
						<xs:element name="tp" type="tpType"/>
						<xs:element name="product_subscriber_unit_price" type="xs:float"/>
						<xs:element name="product_subscriber_currency" type="xs:string"/>
						<xs:element name="product_subscriber_expiration" type="xs:dateTime"/>
						<xs:element name="product_subscriber_status" type="xs:int"/>
						<xs:element name="product_subscriber_created" type="xs:dateTime"/>
						<xs:element name="product_subscriber_updated" type="xs:dateTime"/>
						<xs:element name="product_subscriber_additional">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="attributes" minOccurs="0">
										<xs:complexType>
											<xs:sequence>
												<xs:element type="xs:string" name="custom_product_subscriber_attribute" minOccurs="0"/>
												<xs:element type="xs:string" name="vendor_part_id" minOccurs="0"/>
												<xs:element type="xs:string" name="warehouse_item_num" minOccurs="0"/>
												<xs:element type="xs:float" name="product_inventory_back_order_qty" minOccurs="0"/>
												<xs:element type="xs:dateTime" name="product_inventory_back_order_date" minOccurs="0"/>
												<xs:element name="buyer" minOccurs="0">
													<xs:complexType>
														<xs:sequence>
															<xs:element type="xs:string" name="item_num"/>
														</xs:sequence>
													</xs:complexType>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="inventoryAction">
		<xs:restriction base="xs:string">
			<xs:enumeration value="replace"/>
			<xs:enumeration value="add"/>
			<xs:enumeration value="subtract"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="tp_locationType">
		<xs:sequence>
			<xs:element type="xs:string" name="tp_location_id"/>
			<xs:element type="xs:string" name="tp_id"/>
			<xs:element type="xs:string" name="tp_location_code"/>
			<xs:element type="xs:string" name="ship_to_location_id"/>
			<xs:element type="xs:string" name="tp_location_name"/>
			<xs:element type="xs:string" name="tp_location_address"/>
			<xs:element type="xs:string" name="tp_location_address2"/>
			<xs:element type="xs:string" name="tp_location_address3"/>
			<xs:element type="xs:string" name="tp_location_address4"/>
			<xs:element type="xs:string" name="tp_location_city"/>
			<xs:element type="xs:string" name="tp_location_state_province"/>
			<xs:element type="xs:string" name="tp_location_postal"/>
			<xs:element type="xs:string" name="tp_location_country_code"/>
			<xs:element type="xs:string" name="tp_location_status"/>
			<xs:element type="xs:string" name="tp_location_default"/>
			<xs:element type="xs:string" name="tp_location_created"/>
			<xs:element type="xs:string" name="tp_location_updated"/>
			<xs:element name="tp_location_additional">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="attributes">
							<xs:complexType>
								<xs:sequence>
									<xs:element type="xs:string" name="consolidation_center_code"/>
									<xs:element type="xs:string" name="fax_number"/>
									<xs:element type="xs:string" name="phone_number"/>
									<xs:element type="xs:string" name="display_name"/>
									<xs:element type="xs:string" name="email"/>
									<xs:element type="xs:string" name="warehouse_id"/>
									<xs:element type="xs:string" name="shopify_location_id"/>
									<xs:element name="shopify">
										<xs:complexType>
											<xs:sequence>
												<xs:element name="sites">
													<xs:complexType>
														<xs:sequence>
															<xs:element name="skicks_d2c">
																<xs:complexType>
																	<xs:sequence>
																		<xs:element type="xs:string" name="location_id"/>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
															<xs:element name="zerotie_d2c">
																<xs:complexType>
																	<xs:sequence>
																		<xs:element type="xs:string" name="location_id"/>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
															<xs:element name="mychooze_d2c">
																<xs:complexType>
																	<xs:sequence>
																		<xs:element type="xs:string" name="location_id"/>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
															<xs:element name="synclaire_wholesale_boutique">
																<xs:complexType>
																	<xs:sequence>
																		<xs:element type="xs:string" name="location_id"/>
																	</xs:sequence>
																</xs:complexType>
															</xs:element>
														</xs:sequence>
													</xs:complexType>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element type="xs:string" name="wayfair_warehouse_id"/>
									<xs:element type="xs:string" name="costco_warehouse_id"/>
									<xs:element type="xs:string" name="belk_warehouse_id"/>
									<xs:element type="xs:string" name="home_depot_warehouse_id"/>
									<xs:element type="xs:string" name="amazon_warehouse_id"/>
									<xs:element type="xs:string" name="nordstrom_warehouse_id"/>
									<xs:element type="xs:string" name="nordstrom_nrhl_warehouse_id"/>
									<xs:element type="xs:string" name="neiman_marcus_warehouse_id"/>
									<xs:element type="xs:string" name="lowes_warehouse_id"/>
									<xs:element type="xs:string" name="target_dvs_warehouse_id"/>
									<xs:element type="xs:string" name="macys_d2c_warehouse_id"/>
									<xs:element type="xs:string" name="dsg_warehouse_id"/>
									<xs:element type="xs:string" name="indigo_warehouse_id"/>
									<xs:element type="xs:string" name="overstock_d2c_warehouse_id"/>
									<xs:element type="xs:string" name="hbc_warehouse_id"/>
									<xs:element type="xs:string" name="jcp_warehouse_id"/>
									<xs:element type="xs:string" name="cb_warehouse_id"/>
									<xs:element type="xs:string" name="rs_warehouse_id"/>
									<xs:element type="xs:string" name="zappos_warehouse_id"/>
									<xs:element type="xs:string" name="zorotools_warehouse_id"/>
									<xs:element type="xs:string" name="globalindustrial_warehouse_id"/>
									<xs:element type="xs:string" name="qvc_warehouse_id"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="inventoryType">
		<xs:sequence>
			<xs:element type="tpType" name="vendor"/>
			<xs:element type="tpType" name="retailer"/>
			<xs:element name="tp_config">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="edi">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="vendor_number" type="xs:string" minOccurs="0"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="dsco_vendor_sku" type="xs:string"/>
						<xs:element name="is_commercehub" type="xs:string"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="transaction">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="transaction_key" type="xs:string"/>
						<xs:element name="transaction_created" type="xs:dateTime"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="product_inventories">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="product" minOccurs="0" maxOccurs="unbounded">
							<xs:complexType>
								<xs:complexContent>
									<xs:extension base="productType">
										<xs:sequence>
											<xs:element name="product_inventory_quantity" type="xs:float"/>
											<xs:element name="vendor_locations">
												<xs:complexType>
													<xs:sequence>
														<xs:element name="vendor_location" maxOccurs="unbounded">
															<xs:complexType>
																<xs:complexContent>
																	<xs:extension base="tp_locationType">
																		<xs:sequence>
																			<xs:element name="product_inventory_quantity" type="xs:float"/>
																		</xs:sequence>
																	</xs:extension>
																</xs:complexContent>
															</xs:complexType>
														</xs:element>
													</xs:sequence>
												</xs:complexType>
											</xs:element>
										</xs:sequence>
									</xs:extension>
								</xs:complexContent>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="product_location_inventories">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="product_inventory" maxOccurs="unbounded">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="inventory_action" type="inventoryAction"/>
									<xs:element name="product_inventory_id" type="xs:int"/>
									<xs:element name="product_id" type="xs:int"/>
									<xs:element name="vendor_location_id" type="xs:int"/>
									<xs:element name="product_inventory_created" type="xs:dateTime"/>
									<xs:element name="product_inventory_quantity" type="xs:float"/>
									<xs:element name="product_inventory_threshold" type="xs:float"/>
									<xs:element name="product_inventory_status" type="xs:int"/>
									<xs:element name="product_inventory_updated" type="xs:dateTime"/>
									<xs:element name="product_inventory_additional">
										<xs:complexType>
											<xs:sequence>
												<xs:element name="attributes" minOccurs="0">
													<xs:complexType>
														<xs:sequence>
															<xs:element type="xs:string" name="language" minOccurs="0"/>
															<xs:element type="xs:float" name="min_order_qty" minOccurs="0"/>
															<xs:element type="xs:float" name="price" minOccurs="0"/>
															<xs:element type="xs:float" name="product_inventory_back_order_qty" minOccurs="0"/>
															<xs:element type="xs:dateTime" name="product_inventory_back_order_date" minOccurs="0"/>
														</xs:sequence>
													</xs:complexType>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element type="productType" name="product"/>
									<xs:element type="tp_locationType" name="vendor_location"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>