Inventory List Object Import and Export

Use the inventory.xsd schema file to import or export inventory lists.

For development purposes, inventory lists are included in the site import process, enabling you to export a site and then import it on another instance without losing inventory-related information. When you export an Inventory file, it's first sorted in ascending alphabetical order based on productID.

Object Information Details
Schema file inventory.xsd
Business Manager import location site > Merchant Tools > Products and Catalogs > Import & Export
Granularity Selected inventory lists.
  • ImportInventoryLists
  • ExportInventoryLists

Salesforce B2C Commerce imports or exports Inventory List records and their associated Product Inventory Records using an XML file. The structure of the XML file follows the semantics of the XML inventory.xsd schema definition.

The following code example shows a typical import file:

<?xml version="1.0" encoding="UTF-8" ?>
<inventory xmlns=""> #Specifies the inventory.xsd file that defines the schema.
			<record product-id="ProductWithAllocation"> #Sets the stock level at 10 for product "ProductWithAllocation".
			<record product-id="ProductWithBackorderAllocation"> #Sets stock level and backorder allocation to 10 for product "ProductWithBackorderAllocation".
			<record product-id="ProductWithPerpetualFlag">

Inventory list export contains these attributes:

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.