Skip to content

Lots

Auction lots, from catalog products: starting price, step, current bid, status. Each auction also has a single row with kind = donation, the donations spot. Bidding is done through actions.

Module: Auctions (auction).

  • GET /api/v1/auction_lots - List with filters, sorting and pagination (scope auction:read)
  • GET /api/v1/auction_lots/{id} - A record by id (scope auction:read)
  • POST /api/v1/auction_lots - Create a record (scope auction:write)
  • PATCH /api/v1/auction_lots/{id} - Modify the submitted fields (scope auction:write)
  • DELETE /api/v1/auction_lots/{id} - Delete or deactivate (scope auction:write)
  • POST /api/v1/auction_lots/{id}/open - Puts the lot on screen and opens it for bids. A silent lot opens only for phone bids, and for donations the projector shows the donation screen. (scope auction:write)
  • POST /api/v1/auction_lots/{id}/bid - Bid from the room, by bidder no. For someone not registered: name (a new bidder with the given name) or walk_in=true (a new “Guest” bidder). Without an amount, the next one is used (current + step). (scope auction:write)
  • POST /api/v1/auction_lots/{id}/undo_bid - Cancels the last bid (number mistake). (scope auction:write)
  • POST /api/v1/auction_lots/{id}/going - First time (1), second time (2) or back (0). (scope auction:write)
  • POST /api/v1/auction_lots/{id}/close - Awards one piece to the leader, then starts the round for the next piece; on the last one, the lot is awarded. Without bids, the lot closes. (scope auction:write)
  • POST /api/v1/auction_lots/{id}/award_next - For a multi-piece lot: the next piece goes to the best bidder of the previous round who has not received one yet, at their bid. (scope auction:write)
  • POST /api/v1/auction_lots/{id}/reset - The lot starts over: its bids and awards are deleted. Refused if a winner has already paid. (scope auction:write)
  • POST /api/v1/auction_lots/{id}/mark_unsold - Closes the lot unawarded, even if it has bids. (scope auction:write)
  • POST /api/v1/auction_lots/{id}/reopen - Reopens a lot closed by mistake, with the previous bids. (scope auction:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • event_id (string; write, required)
  • product_id (string; write)
  • kind (string; write)
  • position (number; write)
  • title (string; write)
  • description (string; write)
  • donor (string; write)
  • estimate (number; write)
  • start_price (number; write)
  • step (number; write)
  • status (string; read)
  • going (integer; read)
  • current_amount (number; read)
  • leader_bidder_id (string, uuid; read)
  • ends_at (string, date; write)
  • sold_at (string, date-time; read)
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • quantity (number; write)
  • round (integer; read)
  • auction_lots.created
  • auction_lots.updated
  • auction_lots.deleted