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 published

Validations performed:

  1. Verifies that the auction exists and is deletable
  2. Checks that it has no associated bids
  3. Confirms that the user has permissions
  4. Deletes the record from the database

Usage example:

DELETE /api/auction/ABC123

The response confirms the successful deletion with the serviceCode.

Request

Responses

Auction deleted successfully.