Skip to main content

Add to favorites

POST 

/api/auction/sign/:serviceCode

Add an auction to the user's favorites list.

Requirements:

  • The auction must exist
  • The user must belong to the owner company
  • It must not already be in favorites

Actions performed:

  1. Create a record in the AuctionFavourite collection
  2. Associate the auction with the user and company
  3. Enables quick access to frequent auctions

Mandatory fields:

  • serviceCode: Auction identifier. Format: 3 letters of origin, 3 letters of destination and 5 random alphanumeric characters (e.g.: VIGMURnT4FN).
  • fav_name: Descriptive name for the favorite

Example request body:

{
serviceCode: ABC123,
fav_name: Madrid-Barcelona weekly
}

The response confirms the favorite creation.

Request

Responses

Favorite added successfully