Alladdin

Work in progress

Site en construction

الموقع قيد الإنشاء

Alladdin
DELETE

Delete a warehouse

Scope: inventory:warehouses.write https://api.alladdin.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 string required

Warehouse ID (24-char hex ObjectId)

Request

python
import requests

url = "https://api.alladdin.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

204 Resource deleted

Error responses

401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Warehouse not found application/json 429 Rate limit exceeded application/json

← PreviousGet stock levels for a warehouse →