Selling
Auction, Buy Now & Offers
Every item in a sale is auctioned first. If it closes unsold, it can still be bought outright at a fixed price, receive offers, or both.
Basta gives you three ways to sell an item. They aren't separate sale types; they are stages in the life of a single sale item:
| Feature | How the price is set | When it applies |
|---|---|---|
| Auction | Competitive bidding against a reserve | While the item is open |
| Buy Now | A fixed price you set | After the item closes unsold |
| Offers | Buyer proposes a price, you negotiate | After the item closes unsold |
Buy Now and Offers are configured per item and are independent of each other. You can turn on one, the other, or both. Whichever closes the deal first wins, and the item is marked sold.
Sale items vs. the Marketplace
This page is about Buy Now and Offers on sale items, as an extension of an auction. Basta's Marketplace is a separate module for fixed-price selling with its own catalog, cart and checkout. It supports offers too, but the two work differently:
| Sale items (this page) | Marketplace | |
|---|---|---|
| What's sold | An item in an auction sale | A product variant in your catalog |
| When it's available | Only after the item closes unsold | Any time the product is listed |
| Fixed price | Buy Now price, set with setItemBuyNowConfig | The variant's price, bought through cart and checkout |
| Offers | Client API makeOffer, scoped to a sale with saleId | Storefront API makeOffer, on the item linked to the variant |
| Shows in | The sale item's notifications and bid feed | The shopper's offers and the variant's offers |
| Order | An auction order, like a won lot (see Orders, Payments & Fees) | Not tied to a sale, so no auction order is created; the purchase is handled in the Marketplace |
Use sale-item Buy Now and Offers to give lots that didn't sell a second chance within the same sale. Use the Marketplace when fixed-price selling is a storefront of its own. A Marketplace product variant can be linked to a Basta item through bastaItemId, for example to list a passed lot in your shop after the sale.
Auction
The auction is the default for every item. Bidders place bids while the item is open, and it closes on its schedule (or at the auctioneer's call in a live sale). If the winning bid meets the reserve, the item is sold. See Sale Types and the first auction tutorial.
An item that closes without meeting its reserve, or without any bids, is closed unsold. Buy Now and Offers pick up from here.
Buy Now
Buy Now lets a buyer take an unsold item straight away at a fixed price. You enable it per sale item with setItemBuyNowConfig. Amounts are in minor currency units and the currency must match the sale's.
mutation EnableBuyNow {
setItemBuyNowConfig(accountId: "ACCOUNT_ID", input: {
saleId: "SALE_ID"
itemId: "ITEM_ID"
enabled: true
price: 120000 # 1,200.00
currency: "USD"
}) {
id
}
}You can set the price before the sale opens. Buyers don't see it until the item closes unsold: on the Client API, Item.buyNowEnabled tells you the item has Buy Now, and Item.buyNowPrice stays null while the auction is running and after the item sells. This keeps the fixed price from anchoring the bidding.
Lowering the price later sends a BUY_NOW_PRICE_REDUCED email to buyers with open offers on the item and to anyone watching it (see Notifications).
Completing a purchase
The purchase goes through the Management API with buyItem, called from your backend on behalf of the buyer. Pass the price you showed the buyer as expectedPrice; if it has changed in the meantime, the call is rejected rather than charging a different amount.
mutation BuyNow {
buyItem(accountId: "ACCOUNT_ID", input: {
saleId: "SALE_ID"
itemId: "ITEM_ID"
buyerUserId: "USER_ID"
expectedPrice: 120000
currency: "USD"
}) {
id
}
}buyItem is final: it marks the item sold and creates an order for the buyer (see Orders, Payments & Fees). If it was a mistake, revertDirectSell marks the item unsold again and removes the order line, as long as the order hasn't been invoiced or paid.
Offers
Offers let a buyer propose their own price on an unsold item. You enable them per item with setItemOfferConfig, which also takes two optional settings:
| Field | Effect |
|---|---|
autoAcceptAmount / autoAcceptCurrency | Offers at or above this amount are accepted instantly and the item is sold, with no one in the back office having to act |
offerTtlSeconds | How long an offer stays open before it expires (OFFER_STATUS_EXPIRED). Leave it out for offers that never expire |
mutation EnableOffers {
setItemOfferConfig(accountId: "ACCOUNT_ID", input: {
itemId: "ITEM_ID"
enabled: true
autoAcceptAmount: 100000 # accept 1,000.00 or more instantly
autoAcceptCurrency: "USD"
offerTtlSeconds: 172800 # offers expire after 48 hours
}) {
enabled
autoAcceptAmount
offerTtlSeconds
}
}Negotiation
A buyer places an offer from your storefront with the Client API's makeOffer. From there, the seller and buyer take turns until someone accepts, rejects, or walks away. Offer.awaitingParty tells you whose turn it is, and Offer.counters holds the full back-and-forth.
| Who | API | Operations |
|---|---|---|
| Buyer | Client API | makeOffer, counterOffer, acceptCounter, withdrawOffer |
| Seller | Management API | acceptOffer, rejectOffer, counterOffer |
# Client API: buyer makes an offer
mutation MakeOffer {
makeOffer(input: {
saleId: "SALE_ID"
itemId: "ITEM_ID"
amount: 90000
currency: "USD"
message: "Would you take 900?"
}) {
id
status # OFFER_STATUS_PENDING
awaitingParty # SELLER
expiresAt
}
}An offer moves through these statuses: OFFER_STATUS_PENDING, OFFER_STATUS_COUNTERED, OFFER_STATUS_ACCEPTED, OFFER_STATUS_REJECTED, OFFER_STATUS_CANCELED and OFFER_STATUS_EXPIRED. When an offer is accepted, the item is sold to that buyer and every other open offer on the item is cancelled. Buyers only ever see their own offers.
To turn offers off while some are still open, pass enabled: false with cancelPendingOffers: true; otherwise the change is blocked until they are resolved.
Use case: Buy Now and Offers on the same item
A gallery runs a timed sale. Lot 42, a signed print, has a reserve of $1,500 and closes with a top bid of $1,100, so it goes unsold. The gallery would rather sell it now than consign it to the next sale, so the lot was set up with both post-auction options:
- Buy Now at $1,400 for buyers who want it settled immediately
- Offers enabled, auto-accepting anything at or above $1,300 and expiring after 48 hours, for buyers who want to negotiate
mutation SetUpLot42 {
buyNow: setItemBuyNowConfig(accountId: "ACCOUNT_ID", input: {
saleId: "SALE_ID"
itemId: "LOT_42"
enabled: true
price: 140000
currency: "USD"
}) { id }
offers: setItemOfferConfig(accountId: "ACCOUNT_ID", input: {
itemId: "LOT_42"
enabled: true
autoAcceptAmount: 130000
autoAcceptCurrency: "USD"
offerTtlSeconds: 172800
}) { enabled }
}When the lot closes unsold, the item page shows both options: “Buy now for $1,400” and “Make an offer”. Your storefront reads buyNowEnabled, buyNowPrice and offerEnabled on the item to decide what to render.
# Client API: what can the buyer do with this item?
query Lot42 {
saleItem(saleId: "SALE_ID", itemId: "LOT_42") {
status
buyNowEnabled
buyNowPrice # 140000 once the item has closed unsold
offerEnabled
directSell { source amount } # set once it sells (BUY or OFFER)
}
}From here, several things can happen:
- The underbidder from the auction offers $1,200. The gallery counters at $1,350, the buyer accepts the counter, and the lot sells for $1,350.
- Another buyer offers $1,300. That meets the auto-accept threshold, so the lot sells immediately for $1,300 and the $1,200 offer is cancelled.
- A third buyer doesn't want to negotiate and clicks Buy Now. The lot sells for $1,400 and all open offers are cancelled.
The first deal to close wins. After that, Buy Now and Offers are both unavailable on the item. Item.directSell.source records how it sold (BUY or OFFER), and the buyer finds the purchase under me.directSells.
A good rule of thumb is to keep the auto-accept threshold below the Buy Now price. Buyers who pay full price get certainty, and buyers who negotiate get a discount, but only within a range you've already agreed to.
Buy Now and Offers only apply to items that close unsold. An item sold at auction can't be bought or receive offers, and an item can only be sold once, whichever way it happens.
Sale item notifications
Offers and direct sales show up in the sale item's notifications, the same feed that carries auctioneer messages and fair warnings. Everyone following the item sees the activity: when an offer comes in, and when the item sells and how.
| Notification | When | Key fields |
|---|---|---|
ItemOfferPlacedNotification | A buyer places an offer | amount, currency, referenceId (the offer id), buyerIdentifier |
ItemSoldNotification | The item sells through Buy Now or an accepted offer | amount, source (BUY or OFFER), referenceId, buyerIdentifier |
For an accepted offer, ItemSoldNotification.referenceId matches the referenceId of that offer's ItemOfferPlacedNotification, so you can show which offer became the sale. buyerIdentifier is masked by default: it's the same per-item identifier the buyer has on their bids, so other bidders never see who is behind an offer. Accounts can choose to show usernames instead.
# Client API: the sale item's notification feed
query Lot42Feed {
saleItem(saleId: "SALE_ID", itemId: "LOT_42") {
notifications {
__typename
... on ItemOfferPlacedNotification {
amount
currency
referenceId
buyerIdentifier
date
}
... on ItemSoldNotification {
amount
currency
source
referenceId
buyerIdentifier
date
}
}
}
}New notifications are delivered live with the rest of the item's updates over Subscriptions, so you can show offers and sales as they happen without polling.
Buyers can also receive email and SMS notifications when an offer is placed, countered or rejected, and when they win an item through a direct sale.
Related documentation
Questions about Buy Now or Offers? Contact us at hi@basta.app.