Warehouse List

Retrieves the list of available warehouses along with their IDs, names, and shipping options.

GET
/api/v1/device-hub/warehouses

Description

Use this API to fetch warehouse details for order fulfillment and shipping selection. Each warehouse includes available shipping options that can be used when placing orders.

Request

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes

Response

Response Fields

FieldTypeDescription
successbooleanWhether the request was successful
statusintegerHTTP status code
messagestringResponse message
data.ware_housesarrayArray of warehouse objects
data.ware_houses[].warehouse_idstringUnique identifier for the warehouse
data.ware_houses[].namestringWarehouse name
data.ware_houses[].shipping_optionsarrayAvailable shipping methods for this warehouse

Error Responses

Common error responses you may encounter when using this endpoint.

Notes

  • Use the warehouse_id when fetching inventory or placing orders
  • Shipping options vary by warehouse and must match exactly when placing orders
  • Available shipping options: "UPS Ground", "2nd Day Air", "Overnight"

Related Endpoints

Did this page help you?