Get Batch Inventory
Retrieve current inventory for up to 100 of your Newegg.com items in a single request. The response includes each item's available quantity by warehouse and fulfillment option: shipped by seller or shipped by Newegg.
Resource URL
Newegg.com: https://api.newegg.com/marketplace/contentmgmt/item/international/inventorylist?sellerid={sellerid}
Note: Please make sure your request URL is all in lower case (except for Seller ID) and cannot contain any blank spaces or line breaks.
Parameters
| Name | Required? | Description |
|---|---|---|
| sellerid | Yes | Your seller ID on Newegg Marketplace |
Resource Information
| HTTP Method | Authentication? | Request Formats | Response Formats | Rate Limited? |
|---|---|---|---|---|
| POST | Required | XML, Json | XML, Json | 10,000 requests per 60 minutes |
Request Body
| Attribute | Required? | Format | Description |
|---|---|---|---|
| Type | No | Integer | Specifies the item identifier type. Default: 0: Newegg item number 1: Seller part number 2: UPC |
| Values | Yes | Array of String | Item identifiers to query. Provide 1 to 100 values. Each value must be nonblank and no longer than 40 characters. Leading and trailing spaces are removed. In XML, each value is a |
| WarehouseList | No | Array of String | The ISO standard 3-digit codes of the country. Please download the following to review details: If left blank, default value will be All. |
Example: XML, Request
<ContentQueryCriteria>
<Type>1</Type>
<Values>
<Key>ABCD-001</Key>
<Key>ABCD-002</Key>
</Values>
<WarehouseList>
<WarehouseLocation>USA</WarehouseLocation>
</WarehouseList>
</ContentQueryCriteria>
Example: Json, Request
{
"Type": 1,
"Values": [
"ABCD-001",
"ABCD-002"
],
"WarehouseList": [
"USA"
]
}
Response Body
| Attribute | Format | Description |
|---|---|---|
| IsSuccess | Boolean | Whether the request was processed successfully. |
| OperationType | String | Fixed value: GetInventoryList |
| SellerID | String | Your seller ID. |
| ResponseDate | DateTime | The server time when the response was generated, in ISO 8601 format. |
| ResponseBody | Object | Inventory query results. |
| ResponseBody.ItemList | Array | One entry per item found. In XML, each entry is an InventoryResult element. |
| ItemNumber | String | Newegg item number. |
| SellerPartNumber | String | Seller part number. |
| Condition | Integer | Item condition: 1: New 2: Refurbished 3: Used - Like New 4: Used - Very Good 5: Used - Good 6: Used - Acceptable Omitted in Json (or |
| InventoryAllocation | Array | Inventory entries for the item. In XML, each entry is an Inventory element. The array is empty if no inventory matches the request, such as when WarehouseList filters out all inventory. |
| WarehouseLocation | String | Warehouse country code. Shipped by seller: one entry per seller warehouse. Multiple warehouses in the same country produce multiple entries with the same Shipped by Newegg: one combined entry with the fixed value |
| FulfillmentOption | String | 0: Shipped by seller 1: Shipped by Newegg |
| AvailableQuantity | Integer | Available quantity. For items shipped by Newegg, this is the sum of the quantities across all Newegg warehouses in WarehouseAllocation. |
| WarehouseAllocation | Array | Quantity in each Newegg warehouse. Returned only for items shipped by Newegg; omitted for items shipped by seller. In XML, each entry is a Warehouse element. |
| WarehouseCode | String | The warehouse code Currently available Newegg warehouse code in united states: 06: Tennesse Bulk Warehouse 07: California Small Warehouse 08: California Bulk Item Warehouse 10: New Jersy Bulk Warehouse 14: New Jersy Small Warehouse Currently available Newegg Warehouse code in Canada 36: Canada Warehouse |
| Quantity | Integer | Available quantity at this warehouse. |
| TotalCount | Integer | The number of entries in ItemList. |
Example: XML, Response
<?xml version="1.0" encoding="utf-16"?>
<NeweggAPIResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<IsSuccess>true</IsSuccess>
<OperationType>GetInventoryList</OperationType>
<SellerID>ABCD</SellerID>
<ResponseDate>2024-01-01T10:00:00.0000000-08:00</ResponseDate>
<ResponseBody>
<ItemList>
<InventoryResult>
<ItemNumber>9SIABCD0000001</ItemNumber>
<SellerPartNumber>ABCD-001</SellerPartNumber>
<Condition>1</Condition>
<InventoryAllocation>
<Inventory>
<WarehouseLocation>USA</WarehouseLocation>
<FulfillmentOption>0</FulfillmentOption>
<AvailableQuantity>100</AvailableQuantity>
</Inventory>
<Inventory>
<WarehouseLocation>USA</WarehouseLocation>
<FulfillmentOption>1</FulfillmentOption>
<AvailableQuantity>30</AvailableQuantity>
<WarehouseAllocation>
<Warehouse>
<WarehouseCode>01</WarehouseCode>
<Quantity>20</Quantity>
</Warehouse>
<Warehouse>
<WarehouseCode>02</WarehouseCode>
<Quantity>10</Quantity>
</Warehouse>
</WarehouseAllocation>
</Inventory>
</InventoryAllocation>
</InventoryResult>
<InventoryResult>
<ItemNumber>9SIABCD0000002</ItemNumber>
<SellerPartNumber>ABCD-002</SellerPartNumber>
<Condition>1</Condition>
<InventoryAllocation />
</InventoryResult>
</ItemList>
<TotalCount>2</TotalCount>
</ResponseBody>
</NeweggAPIResponse>
Example: Json, Response
{
"ResponseBody": {
"ItemList": [
{
"ItemNumber": "9SIABCD0000001",
"SellerPartNumber": "ABCD-001",
"Condition": 1,
"InventoryAllocation": [
{
"WarehouseLocation": "USA",
"FulfillmentOption": "0",
"AvailableQuantity": 100
},
{
"WarehouseLocation": "USA",
"FulfillmentOption": "1",
"AvailableQuantity": 30,
"WarehouseAllocation": [
{
"WarehouseCode": "01",
"Quantity": 20
},
{
"WarehouseCode": "02",
"Quantity": 10
}
]
}
]
},
{
"ItemNumber": "9SIABCD0000002",
"SellerPartNumber": "ABCD-002",
"Condition": 1,
"InventoryAllocation": []
}
],
"TotalCount": 2
},
"IsSuccess": true,
"OperationType": "GetInventoryList",
"SellerID": "ABCD",
"ResponseDate": "2024-01-01T10:00:00.0000000-08:00"
}
Request Failure Errors
For common HTTP error responses, please refer to Failed Response Error Code List.
| Error Code | Description |
|---|---|
| CT026 | The item cannot be found, please check your inputted parameters. |
Example: XML, Response
<Errors>
<Error>
<Code>CT026</Code>
<Message>The item cannot be found, please check your inputted parameters.</Message>
</Error>
</Errors>
Example: Json, Response
[
{
"Code": "CT026",
"Message": "The item cannot be found, please check your inputted parameters."
}
]
Last updated: April 20, 2022