Create a new bid
POST/company/bid-auctions/
Allows a carrier to place a bid on an available transport auction. Requires JWT authentication.
Validations:
- The service must be in 'published' status
- The amount must be less than the current bid (if one exists)
- The user must have carrier permissions
Request Example:
{
service_code: TRANS-12345,
amount: 850.50
}
Request
Responses
- 200
- 400
- 401
Auction created successfully. Returns the updated auction details.
Error in bid data. Possible causes:
- Invalid amount (negative or incorrect format)
- Service not found or ineligible
- Bid higher than the current one
Unauthorized. Possible causes:
- Invalid or expired JWT token
- User without carrier permissions