Get Admin Orders
Get all orders for admin with status counts.
Endpoint
Authentication
Required (Admin role)
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page |
integer | Yes | Page number (starts at 1) |
count |
integer | Yes | Items per page (max 100) |
status |
string | No | Filter by order status: "4" (Shipped), "5" (Delivered), "6" (Completed) |
Response
Success (200 OK)
{
"count": 100,
"data": [
{
"id": 1,
"user_id": 5,
"store_id": 3,
"product_variant_id": 10,
"quantity": 2,
"price": 75.00,
"currency_name": "AZN",
"payment_status": "1",
"status": "4",
"user": {...},
"store": {...},
"address": {
"id": 1,
"user": {...},
"city": {
"id": 1,
"name": "Baku",
"country": {
"id": 1,
"name": "Azerbaijan"
}
},
"zip_code": "AZ1000",
"address": "123 Main St",
"phone": "+994501234567"
},
"product_variant": {...},
"created": "2025-01-15T10:30:00Z"
}
],
"result_counts": [
{
"status": "4",
"count": 20
},
{
"status": "5",
"count": 15
},
{
"status": "6",
"count": 10
}
]
}
Error Responses
Invalid Status (400)
Valid status values are: "4", "5", "6"
Pagination Error (400)
Example Request
curl -X GET "https://api.luxmart.site/v1/products/order/admin/?page=1&count=20&status=4" \
-H "Authorization: Token your_access_token"
Notes
- Returns all orders across all stores
- Only returns orders with successful payments (
payment_status: "1") - Only returns orders with status "4", "5", or "6" (admin-managed statuses)
result_countsprovides counts for each status- Includes full address information with city and country
- Results are ordered by ID descending (newest first)