Marketplace API / Types
Auction
ObjectThe state of a product auction. Auctions use proxy bidding: topBid is the visible leading bid, while viewer.maxBid is the caller's maximum bid.
type Auction implements NodeFields
| Field | Type | Description |
|---|---|---|
bidCount | Int! | Number of bids placed so far. |
endTime | DateTime | When bidding closes. Null when not scheduled. |
floorPrice | Money! | The minimum acceptable opening bid. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
live | AuctionLiveDetails | Present only for live-show auctions; null for async auctions. |
minimumIncrement | Money! | The auction's current minimum bid, or zero when none is set. A bid must be at least this amount and topBid. If accepted at exactly topBid, the existing leader remains ahead. |
placeBidUrl | URL! | URL of the checkout page where a bid on this auction is placed and raised. The path is keyed by this auction's ID and is stable for the life of the auction.Arguments: returnPath: String — A path, such as /p/vintage-rolex?size=m, resolved against the origin of Marketplace.url without that URL's path prepended. Checkout's back link returns the customer to this path. The value must start with one /, must not start with // or /\, must not contain a tab, carriage return or line feed, and must resolve to a URL on the storefront's origin. Any other value fails with error code VALIDATION_ERROR. When omitted or null, the back link opens Marketplace.url. |
product | Product | The product being auctioned, or null when it is no longer available. |
seller | User | The auction's seller. Exposed in every auction state. Null only when the seller's account can no longer be resolved. |
startTime | DateTime | When bidding opens. Null when not scheduled. |
status | AuctionStatus! | Lifecycle state. ENDED is terminal. |
topBid | Money | The current leading bid, or null before the first bid. |
viewer | AuctionViewerState | The requesting user's own standing in this auction. Null for unauthenticated viewers. |
winner | User | The final winner. Null until the auction ends, when it ends without a sale, or when the winner is unavailable. Bidder identities are not exposed while bidding is active. |