# Inventory

The Eshopbox Inventory API allows you to view the stock for the products in your project catalog.

### The Stock object

{% tabs %}
{% tab title="Attributes" %}

| **Attribute**    | **Type** | **Description**                                                                                            |
| ---------------- | -------- | ---------------------------------------------------------------------------------------------------------- |
| sku              | `string` | A `SKU` is a unique code that identifies characteristics of each product, source: client                   |
| warehouse        | `string` | Fulfillment center                                                                                         |
| sellable         | `number` | Inventory which is available for sale                                                                      |
| nonSellable      | `number` | Inventory that cannot be made available for sale. It is because Eshopbox rejected it during the inspection |
| inwardInProcess  | `number` | Inventory for which inward is in process                                                                   |
| outwardInProcess | `number` | Inventory for which outward is in process                                                                  |
| {% endtab %}     |          |                                                                                                            |

{% tab title="Sample Object" %}

```
{
    "0SGAT12SG25F": {
        "warehouseInventories": {
            "GGN": {
                "outwardInProcess": 4,
                "sellable": 3,
                "inwardInProcess": 2,
                "nonSellable": 7
            },
            "BNG": {
                "outwardInProcess": 4,
                "sellable": 5,
                "inwardInProcess": 1,
                "nonSellable": 0
            }
        },
        "inventories": {
            "outwardInProcess": 8,
            "sellable": 8,
            "inwardInProcess": 3,
            "nonSellable": 7
        }
    }
}    
```

{% endtab %}
{% endtabs %}

Here, key is the ESIN of the product and it's value itself has two keys, *warehouseInventories* and *inventories*.\
\&#xNAN;*warehouseInventories*  has the warehouse wise inventories of all four statuses,\
\&#xNAN;*inventories*  has the combined inventories on all warehouses of all four statuses.
