Retrieve detailed inventory data
You call thisinventoryinventory:selflegacy
const url = 'https://api.zentail.com/v1/inventory?activeOnly=false&isCaseSensitive=true';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.zentail.com/v1/inventory?activeOnly=false&isCaseSensitive=true' \ --header 'Authorization: Bearer <token>'Retrieve inventory data for SKUs with various filters. One of lastUpdatedTs, skus, warehouses is required to be passed in as a parameters.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Providing lastUpdateTs returns inventory for all SKUs updated after that timestamp.
If a list of SKUs is provided, lastUpdatedTs and warehouses are ignored.
If this is true, a case-sensitive match will be used to search for the ‘skus’ provided. If false, as case-insensitive search will be used. Default value is true.
If a list of warehouses is provided, inventory for products with non-zero inventory in those warehouses will be returned.
Passing this will return the number of Inventory objects specified, otherwise defaults to 25.
Passing this will return the next page of a previous call (we will disregard all other parameters provided). You can find nextToken in the response from a previous GET inventory call.
Responses
Section titled “ Responses ”Success
object
object
Depending on the type defined in standardProductIdType this field contains either the UPC, EAN, ISBN, or GTIN for this product.
One of UPC, EAN, ISBN or GTIN.
This is the total quantity across all warehouses that is made available for sale on the marketplaces. This does not include stock committed or reserved for various sales orders.
object
The Name of the warehouse.
Unique identifier for the warehouse as recognized by the application.
This is the quantity from this warehouse that is made available for sale on the marketplaces. This does not include stock committed or reserved for various sales orders.
Inventory for Kits with assembled quantity.
Bins are located within a warehouse.
object
Name of the Bin
Quantity in the Bin
Timestamp quantity for this product in this warehouse was last updated.
object
This is the quantity that is inbound for this product in this warehouse.
This is the date the shipment is expected to arrive at the warehouse.
Tracking for the shipment associated.
Carrier for the shipment associated.
Timestamp quantity for this product was last updated across all warehouses.
object
Indicates if there is an additional page. This is true if there is another page, otherwise it is false.
If hasNext is true this provides the full URL for the next page of results.
Examplegenerated
{ "results": [ { "SKU": "example", "active": true, "standardProductId": "example", "standardProductIdType": "example", "totalAvailableQuantity": 1, "warehouses": [ { "warehouseName": "example", "warehouseUniqueId": "example", "availableQuantity": 1, "assembledQuantity": 1, "inventoryLocations": [ { "binLocation": "example", "quantity": 1 } ], "updatedTs": "2026-04-15T12:00:00Z", "inboundShipments": [ { "quantity": 1, "expectedDeliveryDate": "2026-04-15", "tracking": "example", "carrier": "example" } ] } ], "lastInventoryUpdateTs": "2026-04-15T12:00:00Z" } ], "errors": [ "example" ], "pagination": { "hasNext": true, "nextToken": "https://example.com" }}Bad Request
object
Example
{ "errorCode": 400}Permission Denied
object
Example
{ "errorCode": 403}Not Found
object
Example
{ "errorCode": 404}Zentail Error
object
Example
{ "errorCode": 500}Zentail Error
object
Example
{ "errorCode": 503}