Seller Endpoints

These endpoints require the seller token ability and resolve team context from the X-Team-Id header.

Team context

Sellers on Bidyear operate within teams. Pass the team you want to act as via:

X-Team-Id: 42

Omit to use your personal/default team. Use GET /api/v1/me to find your current_team_id.

GET /api/v1/ad-campaigns seller ability

Returns ad campaigns owned by the authenticated user/team.

Query parameters

ParamDescription
statusFilter: draft, pending_payment, active, paused, ended, cancelled

Response 200 (item)

{
  "id": 10,
  "name": "Summer Land Blast",
  "status": "active",
  "placement": "search",
  "pricing_model": "flat",
  "budget_cents": 5000,
  "spent_cents": 1200,
  "impressions": 3400,
  "clicks": 87,
  "start_date": "2026-07-01",
  "end_date": "2026-07-31"
}
GET /api/v1/subscriptions/current seller ability

Returns the team's current active subscription plan, or null if no active subscription exists.

Response 200

{
  "success": true,
  "data": {
    "id": 5,
    "plan": {
      "name": "Professional",
      "slug": "professional",
      "price_monthly": 149.00
    },
    "status": "active",
    "current_period_end": "2026-08-01T00:00:00Z",
    "cancel_at_period_end": false
  }
}

Seller auctions & lots

Manage your catalog programmatically. Requires seller ability and team context.

MethodPathDescription
GET/v1/seller/auctionsList your auctions
POST/v1/seller/auctionsCreate auction
GET/v1/seller/auctions/{id}Auction detail
PATCH/v1/seller/auctions/{id}Update auction
GET/v1/seller/lotsList your lots
POST/v1/seller/lotsCreate lot
GET/v1/seller/lots/{id}Lot detail
PATCH/v1/seller/lots/{id}Update lot

Inventory & settlements

MethodPathDescription
GET/v1/inventoryList warehouse items
POST/v1/inventoryCreate inventory item
GET/v1/inventory/aging-summaryAging bucket summary
POST/v1/inventory/convert-to-lotsPromote items to lots
GET/v1/settlementsSeller settlement statements
POST/v1/ad-campaignsCreate ad campaign
PATCH/v1/ad-campaigns/{id}Update ad campaign

Upload photos via POST /api/v1/media (multipart: file, model_type, model_id). See Media.

Webhook subscriptions

Seller accounts can subscribe to outbound webhook events. See the full CRUD and delivery log documentation on the Webhooks page.

MethodPathDescription
GET/v1/webhook-subscriptionsList your subscriptions
POST/v1/webhook-subscriptionsCreate subscription (returns secret)
GET/v1/webhook-subscriptions/{id}Subscription detail
PATCH/v1/webhook-subscriptions/{id}Update url/events/is_active
DELETE/v1/webhook-subscriptions/{id}Delete subscription
GET/v1/webhook-subscriptions/{id}/deliveriesDelivery log