Get full auction details
GET/company/auction/:service_code
Returns detailed information for a specific auction using its service code.
Provides full access to all auction data, including populated relationships.
Objective
Allow detailed viewing of auctions with all necessary information for management, tracking, and decision-making.
Use Cases
- View complete details before accepting or rejecting bids
- Consult the history of received bids
- Verify load and unload address information
- Review the status of digital signatures
- Access the associated delivery if it exists
- Verify the calculated route with distance
Populated Data
The response includes the following fields with complete information:
- etl_address: Load address with location, name_address, name
- etd_address: Unload address with location, name_address, name
- bids: Complete array of all received bids
- bidWinner: Current winning bid (if it exists)
- bidAsigned: Final assigned bid (if it exists)
- rejectedBy: Array of IDs of rejected users
- delivery: ID of the associated delivery (if it exists)
- routeMinimal: Object with calculated distance in kilometers
Request
Responses
- 200
- 401
- 404
Auction details obtained successfully
Unauthorized - Missing or invalid JWT token
Auction not found