Kit List

Retrieves predefined kits for your company, including each product and current stock.

GET
/api/v1/device-hub/kits

Description

List the predefined kits set up for your company. Each kit includes the products it contains, the quantity required per product, and available stock. Pass a kit name to return that kit only. Pass warehouse_id to show stock for that warehouse.

Request

Headers

HeaderValueRequired
AuthorizationBearer <token>Yes
Content-Typeapplication/jsonYes

Query Parameters

ParameterTypeRequiredDescription
namestringNoExact kit name. When omitted, all kits for the company are returned.
warehouse_idstringNoWarehouse ID from warehouse list (e.g., QebLm2p7). When provided, quantity is stock in that warehouse. When omitted, quantity is company-wide aggregate stock.

Response

Response Fields

FieldTypeDescription
successbooleanWhether the request succeeded
messagestringStatus message
dataarrayArray of kit objects
data[].namestringKit name
data[].productsarrayProducts defined on the kit

Product Object Fields

FieldTypeDescription
namestringProduct name
slugstringURL-friendly product identifier
descriptionstringProduct description
skustringProduct SKU
quantityintegerAvailable stock. Company-wide aggregate when warehouse_id is omitted; stock in the selected warehouse when warehouse_id is provided.
required_quantityintegerQuantity of this product required by the kit
brand_namestringProduct brand
model_namestringProduct model
imagestringURL to product image

Notes

  • When warehouse_id is omitted, quantity is company-wide aggregate stock across warehouses
  • When warehouse_id is provided, quantity is stock in that warehouse. Use the ID from warehouse list
  • Products with zero stock are still returned so you can see what is short
  • An unknown name returns an error rather than an empty success response
  • Use data[].name as name when placing a kit order

Related Endpoints

Did this page help you?