Get auction list
GET/api/auction/
Retrieves the complete list of company auctions, including drafts, active, and closed ones.Features:- Paginated listing- Sorted by update date (most recent first)- Filterable by status, dates, and text search- Includes basic relationships (addresses, bids, winner)Optional query parameters:- page: Page number (default 1)- limit: Items per page (default value of ITEMS_PAGE in .env)- status: Filter by status (draft, published, closed, cancelled)- search: Text to search in service_code or description- minDate/maxDate: Date range for creation or modificationUsage example:GET /api/auction?page=1&limit=20&status=published&search=urgentThe response includes pagination metadata and the basic fields of each auction.
Responses
- 200
- 400
- 401
Paginated auction list. Each item includes:- service_code: Unique identifier (e.g., VIGMURnT4FN)- status: Current status- etl_date/etd_date: Load/unload dates- cargo_weight/cargo_height: Dimensions- bid_current: Current bid (if applicable)- bidWinner: Winner (if applicable)- createdAt/updatedAt: Creation/update datesPagination metadata:- total: Total items- pages: Total pages- page: Current page- limit: Items per page
Request error
Unauthorized