Admin API / Types
ProductSaleModeInput
InputThe sale format of a listing. Set exactly one field. updateProduct changes the settings of the stored format, and buyNow ends the auction of a live auction listing. Any other field for another format gives UNSUPPORTED_FOR_SALE_MODE.
input ProductSaleModeInputInput fields
| Field | Type | Description |
|---|---|---|
buyNow | BuyNowSaleModeInput | On a Buy Now listing: whether the listing takes offers. On a live auction listing whose auction has not started: the auction is cancelled and leaves the listing, which is a Buy Now listing with this offers setting; Product.activeAuction is null. While the auction runs, AuctionInProgressError. An auction with a bid or a winner gives ProductLockedError. An auction that ended without a sale stays, and buyNow gives UNSUPPORTED_FOR_SALE_MODE. |
liveAuction | LiveAuctionSaleModeInput | On a live auction listing: the new duration, pre-bid and sudden-death settings of its auction. The floor does not change here: the price of the listing's one variant, through variants or variantChanges, sets the floor and the next minimum bid. While the auction runs (Auction.status is ACTIVE), AuctionInProgressError. An auction that has not started, or that ended without a sale, takes the change; a host restart uses the new values. An auction with a bid or a winner gives ProductLockedError. |
timedAuction | TimedAuctionSaleModeInput | createProduct only: an auction that runs on a schedule, with no livestream. updateProduct gives UNSUPPORTED_FOR_SALE_MODE. |