[Home](./index.md) > [bitburner](./bitburner.md) > [WarehouseAPI](./bitburner.warehouseapi.md) > [getPurchaseWarehouseCost](./bitburner.warehouseapi.getpurchasewarehousecost.md)
## WarehouseAPI.getPurchaseWarehouseCost() method
Gets the cost to purchase a warehouse
Signature:
```typescript
getPurchaseWarehouseCost(): number;
```
Returns:
number
cost