Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Inventory

Inventory

Inventory lists the quantity of SKU in a warehouse. The table below describes the Inventory XML elements:

XML Element

Definition

<sku code>

The SKU's unique identifier.

<warehouse code> A unique identifier for the warehouse. No two warehouses can share the same code. The code cannot be changed once the warehouse is created.
<onhand> The quantity of SKU in a warehouse.
<available> The quantity available in a warehouse that can be purchased. For example, if On Hand was 100 and Reserved was 10, Available would be 90.
<allocated> The amount allocated to fulfill current orders.
<reserved> The quantity not available for sale in the store.
<reordermin> Specifies when an item should be included in the Low Stock report (when the On Hand is less than the Re-Order Quantity).
<reorderqty>

This field is intended as a visual reminder to the warehouse person to order this amount of stock when the stock On Hand gets low.

<expectedrestockdate> The date when the stock is expected to come in.

Sample XML: Inventory

<inventory>
<sku code="GR-DVX507A">
    <warehouse code="USWarehouse1">
        <onhand>106</onhand>
        <available>96</available>
        <allocated>0</allocated>
        <reserved>10</reserved>
        <reordermin>33</reordermin>
        <reorderqty>3</reorderqty>
        <expectedrestockdate>2008-03-16T00:00:00-07:00</expectedrestockdate>
    </warehouse>
    <warehouse code="UKWarehouse">
        <onhand>106</onhand>
        <available>96</available>
        <allocated>0</allocated>
        <reserved>10</reserved>
        <reordermin>33</reordermin>
        <reorderqty>3</reorderqty>
    </warehouse>
</sku>
<sku code="PV-DC352">
    <warehouse code="USWarehouse1">
        <onhand>111</onhand>
        <available>101</available>
        <allocated>0</allocated>
        <reserved>10</reserved>
        <reordermin>20</reordermin>
        <reorderqty>3</reorderqty>
        <expectedrestockdate>2008-03-16T00:00:00-07:00</expectedrestockdate>
    </warehouse>
    <warehouse code="UKWarehouse">
        <onhand>111</onhand>
        <available>101</available>
        <allocated>0</allocated>
        <reserved>10</reserved>
        <reordermin>20</reordermin>
        <reorderqty>3</reorderqty>
    </warehouse>
</sku>
...
</inventory>