---
title: ItemWarehouses (1-4 only)
slug: webservices-v1/itemwarehouses-1-4-only
createdAt: 2022-07-01T08:28:00.000Z
---

## GetItemsStock: Synchronize Warehouse stock

***‘1.4 additions part 6’ start here***

This will be a new resource created specifically for warehouses.

Entry Parameters

| **Field**                | **Type/Size** | **Remarks**                                          |
| ------------------------ | ------------- | ---------------------------------------------------- |
| **PageNumber**           | Integer       | Result page number                                   |
| **DateModificationFrom** | DateTime      | Sends back only the products updated after this date |
| **SKU**                  | String        | Sends back only the products matching with this SKU  |
| **EAN**                  | String        | Sends back only the products matching with this EAN  |

Please note that \*\*DateModificationFrom **corresponds to inventory information and not only to warehouses.**
\*\*

&#x20;**Results of the method&#x20;**

| **Field**             | **Type/Size**          | **Remarks**                                |
| --------------------- | ---------------------- | ------------------------------------------ |
| **nb\_pages**         | Integer                | Total number of pages (parts)              |
| **nb\_items**         | Integer                | Number of Products                         |
| **cur\_page**         | Integer                | Current page                               |
| **ArrayofItemsStock** | tns\:ArrayofItemsStock | Results tables (product stock information) |

With regard to warehouses, the **ArrayOfWarehouses** parameter allows you to send this information for each of your products.**Example :&#x20;**

```Text
\<urn\:ArrayofItemsStock>
     \<urn\:ItemStock>
         \<urn\:SKU>123456789\</urn\:SKU>
         \<urn\:ArrayOfWarehouses>
            \<urn\:Warehouse>
               \<urn\:WarehouseId>123\</urn\:WarehouseId>
               \<urn\:WarehouseName>abc\</urn\:WarehouseName>
               \<urn\:WarehouseStock>99\</urn\:WarehouseStock>
               \<urn\:WarehouseShipped>99\</urn\:WarehouseShipped>
               \<urn\:WarehouseSKU>123456789\</urn\:WarehouseSKU>
            \</urn\:Warehouse>
         \</urn\:ArrayOfWarehouses>
      \</urn\:ItemStock>
      \<urn\:ItemStock>
         \<urn\:SKU>1234567890\</urn\:SKU>
         \<urn\:ArrayOfWarehouses>
            \<urn\:Warehouse>
               \<urn\:WarehouseId>456\</urn\:WarehouseId>
               \<urn\:WarehouseName>def\</urn\:WarehouseName>
               \<urn\:WarehouseStock>100\</urn\:WarehouseStock>
               \<urn\:WarehouseShipped>100\</urn\:WarehouseShipped>
               \<urn\:WarehouseSKU>1234567890\</urn\:WarehouseSKU>
            \</urn\:Warehouse>
         \</urn\:ArrayOfWarehouses>
      \</urn\:ItemStock>
\</urn\:ArrayofItemsStock>
```

**BEST PRACTICE:&#x20;**&#x54;o get a list of all the active warehouses for a product, you can just call this resource with the SKU of that product.

**Also**, Please note that you will not receive a warehouse (even if it exists) if it has never received stock for that particular SKU that you sent as Entry Parameter of the call to this resource whereas if the warehouse has been used before for that SKU but is currently out of stock for that product, you will receive 0 as stock in the response.&#x20;

## PostItemsStock: Update Warehouse stock

This will be a new resource created specifically for **warehouses**. This resource will allow you to update the WarehouseStock (Warehouse available stock) and **WarehouseShipped** (Stock waiting to be received by external warehouse (ex- FBA).&#x20;

You can update upto **200 SKU’s**, each with upto **50 warehouses** using a single call to this resource.

This resource cannot be used to create warehouses or modify WarehouseID /WarehouseName / WarehouseSKU. For this resource to work, warehouse should already be existing.

Also, Please note that marketplace warehouses cannot be updated with this resource.

**Entry Parameters&#x20;**

| **Field**          | **Type/Size**       | **Remarks**                                      |
| ------------------ | ------------------- | ------------------------------------------------ |
| **SKU**            | String              | Updates only the products matching with this SKU |
| **PostItemsStock** | tns\:PostItemsStock | Updates tables (product stock information)       |

**Results of the method**

| **Field**                | **Type/Size**           | **Remarks**                                                 |
| ------------------------ | ----------------------- | ----------------------------------------------------------- |
| **PostItemsStockResult** | WarehouseStatusResponse | Summary table for each updated warehouse (Updated or Error) |

**Example:**

```Text
\<urn\:PostItemsStock>
  \<urn\:ArrayofItemsStock>
        \<urn\:ItemStock>
         \<urn\:SKU>123456789\</urn\:SKU>
         \<urn\:ArrayOfWarehouses>
            \<urn\:Warehouse>
               \<urn\:WarehouseId>123\</urn\:WarehouseId>
               \<urn\:WarehouseName>abc\</urn\:WarehouseName>
               \<urn\:WarehouseStock>99\</urn\:WarehouseStock>
               \<urn\:WarehouseShipped>99\</urn\:WarehouseShipped>
               \<urn\:WarehouseSKU>123456789\</urn\:WarehouseSKU>
            \</urn\:Warehouse>
         \</urn\:ArrayOfWarehouses>
      \</urn\:ItemStock>
      \<urn\:ItemStock>
         \<urn\:SKU>1234567890\</urn\:SKU>
         \<urn\:ArrayOfWarehouses>
            \<urn\:Warehouse>
               \<urn\:WarehouseId>456\</urn\:WarehouseId>
               \<urn\:WarehouseName>def\</urn\:WarehouseName>
               \<urn\:WarehouseStock>100\</urn\:WarehouseStock>
               \<urn\:WarehouseShipped>100\</urn\:WarehouseShipped>
               \<urn\:WarehouseSKU>123456789\</urn\:WarehouseSKU>
            \</urn\:Warehouse>
         \</urn\:ArrayOfWarehouses>
      \</urn\:ItemStock>  \</urn\:ArrayofItemsStock> \</urn\:PostItemsStock>
```

**Response: (in case of an error)**&#x20;

```none
\<urn\:PostItemsStockResult>
\<urn\:ArrayofItemsStock>
\<urn\:ItemStock>
        \<urn\:SKU>13579\</urn\:SKU>
          \<urn\:ArrayOfWarehouseStatusResponses>
          \<urn\:WarehouseStatusResponse>
             \<urn\:WarehouseId>789\</urn\:WarehouseId>
             \<urn\:WarehouseName>ghi\</urn\:WarehouseName>
             \<urn\:StatusResponse>Error\</urn\:StatusResponse>
             \<urn\:StatusResponseDetail>No quantity to update\</urn\:StatusResponseDetail>
         \</urn\:WarehouseStatusResponse>
         \</urn\:ArrayOfWarehouseStatusResponses>
      \</urn\:ItemStock>  \</urn\:ArrayofItemsStock>    
\</urn\:PostItemsStockResult>
```

***‘1.4 additions part 6’ end here***

