Skip to main content

Delete auction

DELETE 

/api/auction/:serviceCode

Permanently delete an existing auction.Requirements:- The auction must be in 'draft' or 'planned' status- The user must be the creator or administrator of the company- It must not have associated bids or be publishedValidations performed:1. Verifies the auction exists and is deletable2. Checks that it has no associated bids3. Confirms the user has permissions4. Deletes the record from the databaseUsage example:DELETE /api/auction/ABC123The response confirms the successful deletion with the serviceCode.

Request

Responses

Auction deleted successfully