Retrieve detailed inventory data for a SKU
You call thisinventoryinventory:selflegacy
const url = 'https://api.zentail.com/v1/inventory/example';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/example \ --header 'Authorization: Bearer <token>'Returns available quantity for the SKU in all warehouses, and inbound inventory data.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Responses
Section titled “ Responses ”Success
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.
Examplegenerated
{ "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"}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}