Selling

Sale Types: Timed & Live

Two kinds of auctions that share the same core concepts but differ in how and when items close.

Basta supports two kinds of auctions. Both share the same core concepts — items, bids, reserves, and increments (see the Glossary) — but differ in how and when items close.

TypeDescription
ONLINE_TIMEDAn online timed auction. Items open and close automatically on a schedule
LIVEA live auction, driven in real time by an auctioneer

Timed auctions (ONLINE_TIMED)

This is the standard online auction model covered throughout the documentation. Items open at a set time and close on a countdown, with anti-sniping extending the clock when last-moment bids arrive.

See the first auction tutorial and the Glossary entries for ClosingMethod and ClosingTimeCountdown.

Live auctions (LIVE)

In a live auction, an auctioneer works through items one at a time in real time. Online bidders participate alongside the room, and the auctioneer decides when each item is sold or passed.

Items in a live sale move through a ITEM_LIVE state while on the block, then to processing as the outcome is settled.

Auctioneer controls

OperationPurpose
sellLiveItemSell the current item (lowering the reserve to the current bid if needed)
sellLiveItemToBidSell the current item to a specific leading bid
passLiveItemPass the current item (no sale)
addFairWarningNotificationToItemSend a “fair warning” cue to bidders before selling
addMessageNotificationToItemSend an ad-hoc message to bidders watching the item

Live auction controls are typically operated from a saleroom console and require an authenticated back-office session.

Previewing a sale

Before a sale is published, you can put it into preview. The sale is shown publicly with only the lots you pick, so you can start marketing it and take registrations while the rest of the catalogue is still being prepared. Bidding stays closed.

Text
UNPUBLISHED  →  PREVIEW  →  PUBLISHED  →  OPENED  →  …
StepOperation
Pick the lots to showsetSaleItemsPreview with preview: true. Only allowed before the sale is published. Each lot's required fields are checked, and the call fails with LOTS_MISSING_REQUIRED_FIELDS if any are blank
Put the sale into previewpreviewSale
Show the full salepublishSale, as usual
GraphQL
mutation StartPreview {
  setSaleItemsPreview(accountId: "ACCOUNT_ID", input: {
    saleId: "SALE_ID"
    itemIds: ["ITEM_1", "ITEM_2", "ITEM_3"]
    preview: true
  })   # returns the number of lots whose flag changed

  previewSale(accountId: "ACCOUNT_ID", input: { saleId: "SALE_ID" }) {
    id
    status   # PREVIEW
  }
}

On the Client API, a sale in preview has status: PREVIEW and returns only its preview lots. Bidders can register for it, but can't bid until the sale opens. If your storefront filters sales by status, add PREVIEW wherever you list upcoming sales. Dutch auctions can't be previewed.

Live streaming

A sale can carry a live video stream so remote bidders can watch and follow along. Two approaches are supported:

ApproachDescription
External streamYour own stream URL, from an existing streaming setup. Types: GENERIC, AMAZON_IVS and YouTubeLive
Basta-hosted streamType BASTA_LIVE: a built-in stream with a public playback URL and live viewer counts (available on accounts where Basta streaming is enabled)
GraphQL
mutation AddExternalStream {
  addLiveStreamToSale(accountId: "ACCOUNT_ID", input: {
    saleId: "SALE_ID"
    type: YouTubeLive
    url: "https://www.youtube.com/watch?v=VIDEO_ID"
  }) {
    __typename
    ... on ExternalLiveStream { url type }
  }
}

Stream channels

Basta-hosted streams run on channels. Every account with Basta streaming has a default channel, used by any sale without one assigned. To stream several sales at the same time, for example from two salerooms, create more channels with createStreamChannel. An account can have up to three, including the default.

Each channel has its own RTMPS ingestUrl and streamKey to broadcast to, and is listed on Account.streamChannels. Assign a channel to a sale by passing its channelId as streamChannelId to addLiveStreamToSale.

GraphQL
mutation CreateChannel {
  createStreamChannel(accountId: "ACCOUNT_ID", input: {
    name: "Saleroom 2"
    location: "Upstairs gallery"
  }) {
    channelId
    ingestUrl
    streamKey
  }
}

Showing the stream to bidders

On the Client API, read Sale.liveVideoStream. It returns either an ExternalLiveStream or a BastaLiveStream. The older Sale.liveStream field is deprecated.

GraphQL
query SaleStream {
  sale(id: "SALE_ID") {
    liveVideoStream {
      __typename
      ... on ExternalLiveStream { url type }
      ... on BastaLiveStream { publicUrl channelId currentViewers }
    }
  }
}

Real-time viewer and stream updates are delivered alongside other sale activity over Subscriptions.

Paddles & registration

Live and saleroom auctions often assign paddle numbers. Paddles tie into the registration flow — see Bidder Registration & Approval and the PADDLE registration type.

Related documentation

Questions about live auctions or streaming? Contact us at hi@basta.app.