Back to Home

Integration Notes

How SeaBid maps to Basta.app's auction API

Basta API Mapping

SeaBid ConceptBasta API EntityNotes
SupplierSeaBid onlyExtended data not in Basta (certifications, locations, sustainability)
ShipmentSeaBid onlyPre-auction logistics, voyage tracking, containers
Auction SaleSalecreateSale() mutation
Auction LotItemcreateItemForSale() mutation
Starting bid/lbstartingBidNeeds $/lb β†’ cents conversion
Reserve/lbreserveOptional hidden reserve price
BidBidbidOnItem() mutation
Service feesSeaBid extendsNot native to Basta - we add transload, re-ice, transport
Traceability certSeaBid onlySeaThru-style certificate, our data layer

Integration Points

1

Create Auction Sale

When supplier creates auction β†’ call Basta createSale()

createSale({ title, dates, closingMethod })
2

Add Lots/Items

For each lot β†’ call Basta createItemForSale()

createItemForSale({ saleId, title, startingBid })
3

Publish Sale

When ready β†’ call Basta publishSale()

publishSale({ saleId })
4

Handle Bidding

Bidding uses Basta bidOnItem() with bidder tokens

bidOnItem({ itemId, amount, bidderToken })
5

Receive Webhooks

Webhooks receive bid events, status changes

POST /webhooks/basta β†’ { event, data }
6

SeaBid Extends

Add traceability, service fees, supplier data, shipment tracking

// Our data layer on top of Basta

What SeaBid Adds on Top of Basta

🏒

Supplier Management

Certifications (ASC, FDA, MAST), farm locations, sustainability profiles

🚒

Shipment Tracking

Voyage tracking from origin (Iceland/Faroe Islands), vessel info, ETA

πŸ“¦

Container Management

iTUB container types: Tub (~500lb), Box (55lb), Pallet (24Γ—boxes)

πŸ’°

Service Fee Calculation

Transload, re-ice, split-up, transport fees per lb by zone

πŸ”

Traceability Certificates

SeaThru-style journey tracking, QR codes, carbon footprint

βš–οΈ

Weight-Based Pricing

$/lb pricing instead of flat price, per-lb bid increments

Questions for Basta Team

  • 1
    Can we extend Item schema for custom fields (weight, size grade, origin)?
  • 2
    Webhook events for bid placed, auction ending, auction closed?
  • 3
    Can bidIncrementTable support per-lb increments?
  • 4
    Multi-currency support timeline? (ISK for Icelandic sellers)
  • 5
    Can Sale have custom metadata for service fees?
  • 6
    Real-time bid subscription via WebSocket available?

Example: Creating a Sale with Lots

// 1. Create Sale in Basta
const sale = await basta.createSale({
  title: "Laxey Premium Salmon - December 2024",
  description: "Fresh Atlantic Salmon from Vestmannaeyjar, Iceland",
  closingMethod: "OVERLAPPING",
  closingTimeCountdown: 60, // 60 sec extension
  dates: {
    openDate: "2024-12-11T14:00:00Z",
    closingDate: "2024-12-11T16:00:00Z",
  },
});

// 2. Create Items (Lots) for Sale
const lot = await basta.createItemForSale({
  saleId: sale.id,
  title: "#1 Premium Iceland Tub - 7/8kg",
  description: "Fresh whole HOG Atlantic salmon...",
  startingBid: 500, // $5.00/lb in cents
  bidIncrementTable: {
    rules: [{ lowRange: 0, highRange: null, step: 5 }] // $0.05
  },
});

// 3. Store SeaBid-specific data in our DB
await seabid.storeLotExtension({
  bastaItemId: lot.id,
  totalWeightLbs: 498,
  sizeGrades: ["7/8"],
  supplierId: "laxey",
  origin: "IS",
  serviceFees: {
    transloadPerLb: 0.15,
    reIcePerLb: 0.05,
    transportPerLb: 0.35,
  },
  traceabilityCertificateId: "CERT-LXY-2024-001",
});

// 4. Publish when ready
await basta.publishSale({ saleId: sale.id });

Architecture Overview

Suppliers

Laxey, Hiddenfjord

SeaBid

Suppliers, Shipments, Traceability, Fees

Basta.app

Sales, Items, Bids

Buyers

US Seafood Distributors

Upstream

Certifications, Farm data, Shipments

Platform

Auction logic, Payments, Webhooks

Downstream

Orders, Delivery, Traceability

SeaBid Prototype v0.1 Β· Built with Next.js 14 Β· Designed for Basta.app integration