Inventory List Import

Salesforce B2C Commerce imports an Inventory List record and its associated Product Inventory Records via an XML file. The structure of the XML file follows the semantic of the XML inventory.xsd schema definition.

A typical import file is shown in the following example:

<?xml version="1.0" encoding="UTF-8" ?>

Specify the inventory.xsd file that defines the schema.

<inventory xmlns="">

ProductInventoryRecord Objects


Set the stock level at 10 for product "ProductWithAllocation".

			<record product-id="ProductWithAllocation">

Set the stock level at 10 and the backorder allocation at 10 for product " ProductWithBackorderAllocation ".

			<record product-id="ProductWithBackorderAllocation">

Define "ProductWithPerpetualFlag" as a product always in stock.

			<record product-id="ProductWithPerpetualFlag">

Related Links

Inventory List Object Import/Export

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.