Lots
Active lot catalog. Controller: Api\V1\LotController
GET
/api/v1/lots
Public
Query parameters
| Name | Type | Example |
|---|---|---|
| auction_id | integer | 12 |
| category_id | integer | 45 |
| search | string | kubota |
| sort_by | string | lot_number (default) |
| sort_dir | asc|desc | asc |
| per_page | integer | 20 |
Example response (abbreviated)
{
"success": true,
"data": {
"data": [{
"id": 7,
"auction_id": 12,
"lot_number": 7,
"title": "2019 Kubota SVL95-2S",
"sku": "KE-2019-001",
"starting_bid": "28000.00",
"current_bid": "32000.00",
"status": "active",
"media": [...],
"category": { "id": 45, "name": "Skid Steers" }
}]
},
"message": "Lots retrieved successfully."
}
GET
/api/v1/lots/{lot}
Public
Full lot detail including media, category, auction relationship.
GET /api/v1/lots/7