# Get Inventories v2

## GET inventories for given products

<mark style="color:blue;">`GET`</mark> `https://{{workspace}}.myeshopbox.com/api/v2/inventoryListing`

This endpoint allows you to get inventories of filtered products.&#x20;

#### Path Parameters

| Name                       | Type   | Description                                                                                                                                                                  |
| -------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| updatedOn                  | string | Contains two comma-separated date strings  (yyyy-MM-dd hh:mm:ss format) as range, if either of the strings is empty then it is considered as either MIN\_VALUE or MAX\_VALUE |
| createdOn                  | string | Contains two comma-separated date strings (yyyy-MM-dd hh:mm:ss format) as range, if either of the string is empty then it is considered as either MIN\_VALUE or MAX\_VALUE   |
| {customField.internalName} | string | <p>Parameter is the internal name of a custom field and value is comma-separated values for that custom field. <br>Can occur more than once in a request</p>                 |
| parentEsin                 | string | Comma-separated parentESIN values                                                                                                                                            |
| dimensionUnit              | string | Comma-separated dimensionUnit values                                                                                                                                         |
| dimensionHeight            | string | Contains two comma-separated value range if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                           |
| dimensionWidth             | string | Contains two comma-separated value range, if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                          |
| dimensionLength            | string | Contains two comma-separated value range, if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                          |
| weightUnit                 | string | Comma-separated WeightUnit values                                                                                                                                            |
| weight                     | string | Contains two comma-separated value range, if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                          |
| taxCode                    | string | Comma-separated TaxCode values                                                                                                                                               |
| hsnCode                    | string | Comma-separated HSNCode values                                                                                                                                               |
| unitPrice                  | string | Contains two comma-separated value range, if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                          |
| mrp                        | string | Contains two comma-separated value range, if either of the values is empty then it is considered as either MIN\_VALUE or MAX\_VALUE                                          |
| brand                      | string | Comma-separated brand values                                                                                                                                                 |
| availableOn                | string | Comma-separated channelCode values                                                                                                                                           |
| verticalName               | string | Comma-separated dverticalName values                                                                                                                                         |
| groupCode                  | string | Comma-separated groupCode values                                                                                                                                             |
| type                       | string | Comma-separated type values                                                                                                                                                  |
| status                     | string | Comma-separated status values                                                                                                                                                |
| additionalNames.upc        | string | Comma-separated UPC values                                                                                                                                                   |
| additionalNames.gtin       | string | Comma-separated GTIN values                                                                                                                                                  |
| additionalNames.ean        | string | Comma-separated EAN values                                                                                                                                                   |
| esin                       | string | Comma-separated GTIN values                                                                                                                                                  |
| sku                        | string | Comma-separated SKU values                                                                                                                                                   |

#### Query Parameters

| Name    | Type   | Description                                  |
| ------- | ------ | -------------------------------------------- |
| page    | string | The number of pages to offset the results by |
| perPage | string | The number of items to return in a page      |

#### Headers

| Name           | Type   | Description        |
| -------------- | ------ | ------------------ |
| Authentication | string | Bearer AUTH\_TOKEN |

{% tabs %}
{% tab title="200 Response is of the same format, as it is in v1." %}

```
{
    "0SGAT12SG25F": {
        "warehouseInventories": {
            "GGN": {
                "outwardInProcess": 10,
                "sellable": 4,
                "inwardInProcess": 5,
                "nonSellable": 3
            }
        },
        "inventories": {
            "outwardInProcess": 10,
            "sellable": 4,
            "inwardInProcess": 5,
            "nonSellable": 3
        }
    },
    "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 %}
