Get Store Orders
Get all orders for the authenticated store with status counts.
Endpoint
Authentication
Required (Store 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: "1" (Pending), "2" (Processing), "3" (Ready) |
Response
Success (200 OK)
{
"count": 50,
"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": "1",
"user": {...},
"store": {...},
"product_variant": {...},
"created": "2025-01-15T10:30:00Z"
}
],
"result_counts": [
{
"status": "1",
"count": 10
},
{
"status": "2",
"count": 5
},
{
"status": "3",
"count": 3
}
]
}
Error Responses
Invalid Status (400)
Valid status values are: "1", "2", "3"
Pagination Error (400)
Example Request
curl -X GET "https://api.luxmart.site/v1/products/order/store/?page=1&count=20&status=1" \
-H "Authorization: Token your_access_token"
Notes
- Only returns orders for the authenticated store
- Only returns orders with successful payments (
payment_status: "1") - Only returns orders with status "1", "2", or "3" (store-managed statuses)
result_countsprovides counts for each status- Results are ordered by ID descending (newest first)