Newegg Developer Portal

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

NameRequired?Description
selleridYesYour seller ID on Newegg Marketplace

Resource Information

HTTP MethodAuthentication?Request FormatsResponse FormatsRate Limited?
POSTRequiredXML, JsonXML, Json10,000 requests per 60 minutes

Request Body

AttributeRequired?FormatDescription
TypeNoInteger

Specifies the item identifier type. Default: 1.

0: Newegg item number

1: Seller part number

2: UPC

ValuesYesArray 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 Key element.

WarehouseListNoArray 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

AttributeFormatDescription
IsSuccessBooleanWhether the request was processed successfully.
OperationTypeStringFixed value: GetInventoryList
SellerIDStringYour seller ID.
ResponseDateDateTimeThe server time when the response was generated, in ISO 8601 format.
ResponseBodyObjectInventory query results.
ResponseBody.ItemListArrayOne entry per item found. In XML, each entry is an InventoryResult element.
ItemNumberStringNewegg item number.
SellerPartNumberStringSeller part number.
ConditionInteger

Item condition:

1: New

2: Refurbished

3: Used - Like New

4: Used - Very Good

5: Used - Good

6: Used - Acceptable

Omitted in Json (or xsi:nil="true" in XML) if the condition is unknown.

InventoryAllocationArrayInventory 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.
WarehouseLocationString

Warehouse country code.

Shipped by seller: one entry per seller warehouse. Multiple warehouses in the same country produce multiple entries with the same WarehouseLocation.

Shipped by Newegg: one combined entry with the fixed value USA.

FulfillmentOptionString

0: Shipped by seller

1: Shipped by Newegg

AvailableQuantityIntegerAvailable quantity. For items shipped by Newegg, this is the sum of the quantities across all Newegg warehouses in WarehouseAllocation.
WarehouseAllocationArrayQuantity 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.
WarehouseCodeString

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

QuantityIntegerAvailable quantity at this warehouse.
TotalCountIntegerThe 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 CodeDescription
CT026The 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