Inventory List

Retrieves products and categories from a specific warehouse with optional filtering.

GET
/api/v1/device-hub/inventory?warehouse_id=QebLm2p7

Description

Fetch available inventory from a warehouse. Supports filtering by search term, category name, and warehouse ID to help you find specific products for deployment.

Request

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Query Parameters

ParameterTypeRequiredDescription
warehouse_idstringYesWarehouse ID to fetch inventory from (e.g., QebLm2p7)
searchstringNoSearch products by title, brand name, or model name
category_namestringNoFilter products by category (e.g., Laptops)

Response

Response Fields

FieldTypeDescription
successbooleanWhether the request was successful
messagestringResponse message
warehouse_idstringThe warehouse ID used for the query
warehouse_namestringName of the warehouse
total_categoriesintegerTotal number of product categories
total_productsintegerTotal number of products available
dataarrayArray of category objects with products

Product Object Fields

FieldTypeDescription
company_skustringCompany SKU identifier
titlestringProduct title
slugstringURL-friendly product identifier
descriptionstringProduct description
quantityintegerAvailable quantity in stock
brand_namestringProduct brand
model_namestringProduct model
product_imagestringURL to product image
created_atstringISO 8601 timestamp of creation
updated_atstringISO 8601 timestamp of last update

Error Responses

Common error responses you may encounter when using this endpoint.

Notes

  • The warehouse_id parameter is required to fetch inventory
  • Use the search parameter to find products by title, brand, or model name
  • Filter by category_name to narrow results to specific product types (e.g., "Laptops")
  • Check the quantity field to ensure product availability before placing orders
  • Use the exact product title when placing orders

Related Endpoints

Did this page help you?