Accept current winning bid
POST/company/auction/acceptCurrent
Accept the winning bid (bidWinner) and execute the auction closing process.
Formalize the acceptance of a bid and initiate the transport execution process.
Objective
Successfully close an auction by awarding it to the winning carrier and generating documentation.
Use Cases
- Accept the best economic offer received
- Award urgent transport to the first valid bidder
- Close auction after bid evaluation
Process Executed
- Validate that a bidWinner exists
- Execute cronJobAuc.closeAuctionWin() which:
- Changes status to 'awarded'
- Generates contract and delivery
- Sends notifications to the carrier
- Updates billing records
Request
Responses
- 200
- 401
- 404
Bid successfully accepted
Unauthorized - Missing or invalid JWT token
Not Found - The requested resource does not exist