DELETE
Delete a warehouse
Scope:
inventory:warehouses.writehttps://api.holded.com/api/v2/warehouses/{warehouseId}Permanently deletes a warehouse. You cannot delete a warehouse that still holds stock. Transfer all stock to another warehouse before deleting. You also cannot delete the default warehouse.
Parameters
Path parameters
warehouseId
stringrequiredWarehouse ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/warehouses/{warehouseId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.delete(url, headers=headers)
print(response.json())Responses
Success responses
204Resource deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Warehouse not foundapplication/json429Rate limit exceededapplication/json