Appearance
Warehouses
As an Admin, you can view warehouses via the API.
List Warehouses
GET/warehouses Bearer Token
Retrieve a paginated list of warehouses.
| Parameter | Type | Required | Description |
|---|---|---|---|
per_page | number | No | Results per page |
Response
Success (200):
json
{
"data": [
{
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Main Warehouse",
"city": "Casablanca",
"status": "active"
}
],
"meta": {
"pagination": {
"page": 1,
"limit": 50,
"total": 5,
"pages": 1
}
}
}Show Warehouse
GET/warehouses/{id}/show Bearer Token
Retrieve a single warehouse by ID.
Response
Success (200):
json
{
"data": {
"id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
"name": "Main Warehouse",
"city": "Casablanca",
"status": "active",
"created_at": "2025-01-10T08:00:00Z",
"updated_at": "2025-01-10T08:00:00Z"
},
"meta": {}
}Not found (404):
json
{
"error": {
"code": "HTTP_ERROR",
"message": "Resource not found."
}
}