Newegg Developer Portal

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

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

The type of the values in Values. Default: 1.

0: Newegg Item Number

1: Seller Part Number

2: UPC

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

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

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.
ResponseBodyObjectThe query result.
ItemListArrayThe inventory entries returned. In XML, each entry is an InventoryResult element. May be empty.
ItemNumberStringNewegg item number.
SellerPartNumberStringSeller part number.
FulfillmentOptionString

0: Ship by seller

1: Ship by Newegg

ActiveString

Item status.

0: Inactive

1: Active

AvailableQuantityIntegerAvailable quantity of the item.
WarehouseAllocationArray

Ship by Newegg only: the quantity in each Newegg warehouse. Not returned when FulfillmentOption is 0. When the item is shipped by Newegg and no Newegg warehouse inventory is found for it, the array can be empty or omitted. In XML, each entry is a Warehouse element.

Neweggbusiness.com: Newegg warehouses in the USA.

Newegg.ca: Newegg warehouses in Canada.

WarehouseCodeStringNewegg warehouse code.
QuantityIntegerAvailable quantity in this warehouse.
TotalCountIntegerThe 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 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