# Warehouses

Group: Inventory

[Open in the interactive reference](https://docs.api.lensing.ai/lensing/v1/groups/inventoryWarehouses)

A warehouse is a stocking location where a legal entity keeps inventory.

Stock records, bins, inventory transactions, inventory counts, and allocations each belong to a warehouse. A warehouse's locationCode is unique within the tenant.

To retire a warehouse, set isActive to false. Inventory transactions and other records that refer to a retired warehouse are kept.

## Endpoints

- [List warehouses](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/warehouses.html): `GET /inventory/warehouses`
- [Create a warehouse](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/createWarehouse.html): `POST /inventory/warehouses`
- [Bulk create warehouses](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/bulkCreateWarehouses.html): `POST /inventory/warehouses/bulk`
- [Bulk delete warehouses](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/bulkDeleteWarehouses.html): `POST /inventory/warehouses/bulk-delete`
- [Search warehouses](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/searchWarehouses.html): `POST /inventory/warehouses/search`
- [Retrieve a warehouse](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/getWarehouse.html): `GET /inventory/warehouses/{id}`
- [Update a warehouse](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/updateWarehouse.html): `PATCH /inventory/warehouses/{id}`
- [Delete a warehouse](https://docs.api.lensing.ai/reference/lensing/v1/endpoints/deleteWarehouse.html): `DELETE /inventory/warehouses/{id}`
