Get Batch Inventory (B2B and CAN)
Use this API to check the current inventory of up to 100 of your Neweggbusiness.com or Newegg.ca items in one call. The result shows each item's fulfillment option, active status, and available quantity; for items shipped by Newegg it also shows the quantity in each Newegg warehouse.
Resource URL
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/contentmgmt/item/inventorylist?sellerid={sellerid}
Newegg.ca: https://api.newegg.com/marketplace/can/contentmgmt/item/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 | The type of the values in 0: Newegg Item Number 1: Seller Part Number 2: UPC |
| Values | Yes | Array of String | The items to query. 1 to 100 values. Each value must not be blank and must not be longer than 40 characters. Leading and trailing spaces are removed. In XML, each value is a |
Example: XML, Request
<ContentQueryCriteria>
<Type>1</Type>
<Values>
<Key>ABCD-001</Key>
<Key>ABCD-002</Key>
</Values>
</ContentQueryCriteria>
Example: Json, Request
{
"Type": 1,
"Values": [
"ABCD-001",
"ABCD-002"
]
}
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 | The query result. |
| ItemList | Array | The inventory entries returned. In XML, each entry is an InventoryResult element. May be empty. |
| ItemNumber | String | Newegg item number. |
| SellerPartNumber | String | Seller part number. |
| FulfillmentOption | String | 0: Ship by seller 1: Ship by Newegg |
| Active | String | Item status. 0: Inactive 1: Active |
| AvailableQuantity | Integer | Available quantity of the item. |
| WarehouseAllocation | Array | Ship by Newegg only: the quantity in each Newegg warehouse. Not returned when Neweggbusiness.com: Newegg warehouses in the USA. Newegg.ca: Newegg warehouses in Canada. |
| WarehouseCode | String | Newegg warehouse code. |
| Quantity | Integer | Available quantity in this warehouse. |
| TotalCount | Integer | The number of entries returned 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>
<FulfillmentOption>0</FulfillmentOption>
<Active>1</Active>
<AvailableQuantity>100</AvailableQuantity>
</InventoryResult>
<InventoryResult>
<ItemNumber>9SIABCD0000002</ItemNumber>
<SellerPartNumber>ABCD-002</SellerPartNumber>
<FulfillmentOption>1</FulfillmentOption>
<Active>1</Active>
<AvailableQuantity>30</AvailableQuantity>
<WarehouseAllocation>
<Warehouse>
<WarehouseCode>01</WarehouseCode>
<Quantity>20</Quantity>
</Warehouse>
<Warehouse>
<WarehouseCode>02</WarehouseCode>
<Quantity>10</Quantity>
</Warehouse>
</WarehouseAllocation>
</InventoryResult>
</ItemList>
<TotalCount>2</TotalCount>
</ResponseBody>
</NeweggAPIResponse>
Example: Json, Response
{
"ResponseBody": {
"ItemList": [
{
"ItemNumber": "9SIABCD0000001",
"SellerPartNumber": "ABCD-001",
"FulfillmentOption": "0",
"Active": "1",
"AvailableQuantity": 100
},
{
"ItemNumber": "9SIABCD0000002",
"SellerPartNumber": "ABCD-002",
"FulfillmentOption": "1",
"Active": "1",
"AvailableQuantity": 30,
"WarehouseAllocation": [
{
"WarehouseCode": "01",
"Quantity": 20
},
{
"WarehouseCode": "02",
"Quantity": 10
}
]
}
],
"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