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).
Endpoints
Section titled “Endpoints”GET /api/v1/auction_lots- List with filters, sorting and pagination (scopeauction:read)GET /api/v1/auction_lots/{id}- A record by id (scopeauction:read)POST /api/v1/auction_lots- Create a record (scopeauction:write)PATCH /api/v1/auction_lots/{id}- Modify the submitted fields (scopeauction:write)DELETE /api/v1/auction_lots/{id}- Delete or deactivate (scopeauction: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. (scopeauction: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). (scopeauction:write)POST /api/v1/auction_lots/{id}/undo_bid- Cancels the last bid (number mistake). (scopeauction:write)POST /api/v1/auction_lots/{id}/going- First time (1), second time (2) or back (0). (scopeauction: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. (scopeauction: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. (scopeauction: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. (scopeauction:write)POST /api/v1/auction_lots/{id}/mark_unsold- Closes the lot unawarded, even if it has bids. (scopeauction:write)POST /api/v1/auction_lots/{id}/reopen- Reopens a lot closed by mistake, with the previous bids. (scopeauction:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”auction_lots.createdauction_lots.updatedauction_lots.deleted