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 favoritesActions performed:1. Creates a record in the AuctionFavourite collection2. Associates the auction with the user and company3. Enables quick access to frequent auctionsMandatory fields:- serviceCode: Auction identifier. Format: 3 letters for origin, 3 letters for destination, and 5 random alphanumeric characters (e.g., VIGMURnT4FN).- fav_name: Descriptive name for the favoriteExample request body:json{ serviceCode: ABC123, fav_name: Madrid-Barcelona weekly}The response confirms the creation of the favorite.

Request

Responses

Favorite added successfully