Get All Products
Get a paginated list of all products for the authenticated store.
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) |
search |
string | No | Search by product name (case-insensitive) |
Response
Success (200 OK)
{
"count": 50,
"data": [
{
"id": 1,
"store_id": 5,
"store": {
"id": 5,
"email": "store@example.com",
"name": "My Store",
"description": "Store description",
"logo_url": "https://...",
"business_address": "123 Main St",
"preferred_language": "AZERBAIJANI",
"contact_phone": "+994501234567",
"percent": 10.5,
"created": "2025-01-15T10:30:00Z"
},
"category_id": 3,
"category": {
"id": 3,
"name": "Electronics",
"image": "https://...",
"parent_id": null
},
"brand_id": 2,
"brand": {
"id": 2,
"name": "Brand Name",
"image": "https://..."
},
"currency_id": 1,
"currency": {
"id": 1,
"name": "AZN",
"value": 1.0
},
"created": "2025-01-15T10:30:00Z"
}
]
}
Error Responses
Unauthorized (401)
Pagination Error (400)
Example Request
curl -X GET "https://api.luxmart.site/v1/products/store/?page=1&count=20&search=laptop" \
-H "Authorization: Token your_access_token"
Notes
- Only returns products for the authenticated store
- Products without variants are excluded (only base products shown)
- Results are ordered by ID descending (newest first)
- Search is case-insensitive and matches product names