Admin API / Types
Auction
ObjectAn auction of one listing. Visible when the caller reads its listing, by the rule of Query.product. District records live bids after a short delay, so bidCount, bids, minimumIncrement, topBid, endsAt and status can lag a running auction.
admin:livestreams:readThe requirement applies to every field of Auction unless that field declares its own scopes.
type Auction implements NodeFields
| Field | Type | Description |
|---|---|---|
bidCount | NonNegativeInt! | Number of bids recorded. |
bids | AuctionBidConnection | Bids that District recorded for the auction, newest first. For an auction whose listing seller is not the caller and not the owner of a store that the caller staffs, requires the ADMIN or OWNER role: a lower role gets a FORBIDDEN error with requiredRole: ADMIN, and the other fields still resolve. Null only with that error, or with an error for an invalid first or after. Offsets stop at 1,000 bids (1,000,000 for Soho).Arguments:after: String — Return items after this cursor.first: Int — Maximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho). |
createdAt | DateTime! | When the auction was created. |
duration | Duration! | How long bidding runs once it opens. |
endsAt | DateTime | When bidding closes. Null until the auction is scheduled or opens. Without live.suddenDeath, a late bid in a live auction moves it later. |
floorPrice | Money! | The lowest opening bid. |
format | AuctionFormat! | Whether the auction runs in a livestream or on its own schedule. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
live | AuctionLiveDetails | Settings of a live auction. Null for a TIMED auction. |
livestream | Livestream | The livestream in which a host started the auction. Null for a TIMED auction, for a live auction that no host has started, and when the livestream is not visible to the caller, by the rule of node. |
minimumIncrement | Money! | Once the auction has a bid, the next bid must be at least this amount and at least topBid: a lower bid is refused. Before the first bid, only floorPrice applies. Zero when none is stored. |
order | Order | The order of the winning bid. Null when the auction has no order, and when the caller does not read the order, by the rule of Query.order. Reading the order's fields needs the admin:orders:read scope. |
outcome | AuctionOutcome | How the auction finished. Null until status is ENDED. |
product | Product! | The auctioned listing. |
startsAt | DateTime | When bidding opens. Null until the auction is scheduled or opens. |
status | AuctionStatus! | The auction state. ENDED once endsAt passes, also before District records the end. A live auction can read ENDED for a short time before District records a late bid that moves endsAt later. A cancelled auction is ENDED with outcome: CANCELLED. |
topBid | Money | The leading bid. Null while bidCount is 0, or when District stored no bid amount. |
winner | User | The winning bidder. Null until the auction ends with outcome: SOLD, for an older sale that District stored with an order and no bidder, and when the bidder's account is not a user of this marketplace. Reading the winner's fields needs the admin:account:read scope. |