Admin API / Types

Auction

Object

An 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.

Requires a client key with one of these scopes: admin:livestreams:read

The requirement applies to every field of Auction unless that field declares its own scopes.

type Auction implements Node

Fields

FieldTypeDescription
bidCountNonNegativeInt!
Number of bids recorded.
bidsAuctionBidConnection
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).
createdAtDateTime!
When the auction was created.
durationDuration!
How long bidding runs once it opens.
endsAtDateTime
When bidding closes. Null until the auction is scheduled or opens. Without live.suddenDeath, a late bid in a live auction moves it later.
floorPriceMoney!
The lowest opening bid.
formatAuctionFormat!
Whether the auction runs in a livestream or on its own schedule.
idID!
A globally unique ID. Treat this value as an opaque string.
liveAuctionLiveDetails
Settings of a live auction. Null for a TIMED auction.
livestreamLivestream
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.
minimumIncrementMoney!
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.
orderOrder
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.
outcomeAuctionOutcome
How the auction finished. Null until status is ENDED.
productProduct!
The auctioned listing.
startsAtDateTime
When bidding opens. Null until the auction is scheduled or opens.
statusAuctionStatus!
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.
topBidMoney
The leading bid. Null while bidCount is 0, or when District stored no bid amount.
winnerUser
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.

Returned by