{"openapi":"3.1.0","info":{"title":"Auctions Auction Engine API","version":"4.2.1","description":"Amounts are integers in minor units (cents) of the lot currency. Times are epoch milliseconds (UTC). Real-time updates: GET /api/v1/stream (Server-Sent Events)."},"servers":[{"url":"/"}],"components":{"securitySchemes":{"siteKey":{"type":"http","scheme":"bearer","description":"A website acting for its signed-in user: the key of the site (mk_live_…, scope web) plus the headers X-Auctions-Client: web and X-User-Token. Every route of the platform is available this way, for the users of that site."},"userToken":{"type":"apiKey","in":"header","name":"X-User-Token","description":"Session token of the signed-in user, from /auth/login, /auth/register, /auth/mfa or /auth/reset (also sent as the mts cookie)"},"session":{"type":"http","scheme":"bearer","description":"Session token of a platform staff member (operator)"},"apiKey":{"type":"http","scheme":"bearer","description":"API key mk_live_… with scopes: lots:read, lots:write, bids:write, orders:read, orders:write, wallets:write, web, admin"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","description":"stable machine code, e.g. deposit_required"},"data":{"type":"object","description":"details (min, amount, fields…)"}}}}},"Property":{"type":"object","properties":{"kind":{"type":"string","enum":["apartment","house","villa","rural","commercial","plot","office","garage"],"description":""},"area":{"type":"integer","description":"m² built"},"plotArea":{"type":"integer","description":"m² of plot"},"rooms":{"type":"integer"},"baths":{"type":"integer"},"year":{"type":"integer"},"floor":{"type":"string"},"energy":{"type":"string","enum":["A","B","C","D","E","F","G","exempt","pending"],"description":"energy rating"},"address":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","description":"ISO-2"},"lat":{"type":"number"},"lng":{"type":"number"},"cadastral":{"type":"string","description":"cadastral reference"},"occupancy":{"type":"string","enum":["vacant","tenanted","occupied"],"description":""},"charges":{"type":"integer","description":"community fees per month — minor units (cents)"},"ibi":{"type":"integer","description":"property tax per year — minor units (cents)"},"elevator":{"type":"boolean"},"parking":{"type":"boolean"},"terrace":{"type":"boolean"},"pool":{"type":"boolean"},"valuation":{"type":"integer","description":"appraisal — minor units (cents)"}},"description":"real-estate data (any field may be null)"},"Legal":{"type":"object","properties":{"auctionType":{"type":"string","enum":["voluntary","judicial","notarial","tax_agency","social_security","bankruptcy","debt_enforcement","other"],"description":""},"authority":{"type":"string","description":"court, notary, tax office, Betreibungsamt…"},"caseNumber":{"type":"string"},"jurisdiction":{"type":"string","description":"ISO-2"},"region":{"type":"string","description":"province / canton"},"registry":{"type":"string","description":"land registry / Grundbuch"},"registryEntry":{"type":"string"},"charges":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["mortgage","seizure","easement","lease","usufruct","annotation","other"],"description":""},"description":{"type":"string"},"holder":{"type":"string"},"amount":{"type":"integer","description":"minor units (cents)"},"cancelledOnSale":{"type":"boolean","description":"true = cancelled by the sale; false = the buyer takes it over"}}}},"debts":{"type":"object","properties":{"community":{"type":"integer","description":"unpaid community fees — minor units (cents)"},"propertyTax":{"type":"integer","description":"unpaid IBI / property tax — minor units (cents)"},"other":{"type":"integer","description":"minor units (cents)"},"note":{"type":"string"},"payer":{"type":"string","enum":["buyer","seller","shared","none"],"description":""}}},"costs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"e.g. ITP, IVA, AJD, notary, registry, Handänderungssteuer"},"payer":{"type":"string","enum":["buyer","seller","shared","none"],"description":""},"pct":{"type":"number","description":"% of the hammer price"},"amount":{"type":"integer","description":"fixed amount — minor units (cents)"},"note":{"type":"string"}}}},"possession":{"type":"string","enum":["immediate","on_completion","tenanted","occupied_no_title","after_eviction","unknown"],"description":""},"conditions":{"type":"object","additionalProperties":{"type":"string"},"description":"special conditions — text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"}},"description":"legal situation of the lot (null when the seller gave none)"},"Document":{"type":"object","properties":{"index":{"type":"integer"},"name":{"type":"string"},"kind":{"type":"string","description":"registry, energy, plans, conditions…"},"visibility":{"type":"string","enum":["public","identified","depositors"],"description":""},"url":{"type":"string","description":"absent when locked"},"locked":{"type":"boolean","description":"true = not visible to this viewer yet"}}},"Deposit":{"type":"object","properties":{"amount":{"type":"integer","description":"in the lot currency — minor units (cents)"},"base":{"type":"integer","description":"in the platform base currency — minor units (cents)"},"pct":{"type":"number"},"scope":{"type":"string","enum":["lot","sale"],"description":""},"saleId":{"type":"string"}}},"Lot":{"type":"object","properties":{"id":{"type":"string"},"no":{"type":"integer","description":"lot number"},"extRef":{"type":"string","description":"your own reference"},"saleId":{"type":"string"},"sellerId":{"type":"string"},"title":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"description":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"category":{"type":"string","description":"realestate, watches, art… (GET /meta)"},"format":{"type":"string","enum":["english","sprint","dutch","sealed","fixed","live"],"description":""},"status":{"type":"string","enum":["pending","scheduled","live","sold","unsold","reserve_not_met","cancelled","rejected"],"description":""},"currency":{"type":"string","description":"ISO 4217"},"startPrice":{"type":"integer","description":"minor units (cents)"},"price":{"type":"integer","description":"current bid — minor units (cents)"},"minNext":{"type":"integer","description":"lowest valid bid now — minor units (cents)"},"increment":{"type":"integer","description":"minor units (cents)"},"estimate":{"type":"object","properties":{"low":{"type":"integer","description":"minor units (cents)"},"high":{"type":"integer","description":"minor units (cents)"}}},"hasReserve":{"type":"boolean"},"reserveMet":{"type":"boolean"},"reservePublic":{"type":"integer","description":"only when the seller shows it — minor units (cents)"},"buyNow":{"type":"integer","description":"minor units (cents)"},"buyNowAvailable":{"type":"boolean"},"startsAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"endsAt":{"type":"integer","format":"int64","description":"extended by late bids (anti-sniping, see rules) — epoch milliseconds"},"serverNow":{"type":"integer","format":"int64","description":"use it for countdowns — epoch milliseconds"},"updatedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"bidCount":{"type":"integer"},"bidderCount":{"type":"integer"},"hasLeader":{"type":"boolean"},"watchers":{"type":"integer"},"earlyUntil":{"type":"integer","format":"int64","description":"early-access window for plan holders — epoch milliseconds"},"rules":{"type":"object","properties":{"windowSec":{"type":"integer"},"extendSec":{"type":"integer"}}},"images":{"type":"array","items":{"type":"string"}},"media":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video"],"description":""},"src":{"type":"string"}}}},"property":{"type":"object","properties":{"kind":{"type":"string","enum":["apartment","house","villa","rural","commercial","plot","office","garage"],"description":""},"area":{"type":"integer","description":"m² built"},"plotArea":{"type":"integer","description":"m² of plot"},"rooms":{"type":"integer"},"baths":{"type":"integer"},"year":{"type":"integer"},"floor":{"type":"string"},"energy":{"type":"string","enum":["A","B","C","D","E","F","G","exempt","pending"],"description":"energy rating"},"address":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","description":"ISO-2"},"lat":{"type":"number"},"lng":{"type":"number"},"cadastral":{"type":"string","description":"cadastral reference"},"occupancy":{"type":"string","enum":["vacant","tenanted","occupied"],"description":""},"charges":{"type":"integer","description":"community fees per month — minor units (cents)"},"ibi":{"type":"integer","description":"property tax per year — minor units (cents)"},"elevator":{"type":"boolean"},"parking":{"type":"boolean"},"terrace":{"type":"boolean"},"pool":{"type":"boolean"},"valuation":{"type":"integer","description":"appraisal — minor units (cents)"}},"description":"real-estate data (any field may be null)"},"legal":{"type":"object","properties":{"auctionType":{"type":"string","enum":["voluntary","judicial","notarial","tax_agency","social_security","bankruptcy","debt_enforcement","other"],"description":""},"authority":{"type":"string","description":"court, notary, tax office, Betreibungsamt…"},"caseNumber":{"type":"string"},"jurisdiction":{"type":"string","description":"ISO-2"},"region":{"type":"string","description":"province / canton"},"registry":{"type":"string","description":"land registry / Grundbuch"},"registryEntry":{"type":"string"},"charges":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["mortgage","seizure","easement","lease","usufruct","annotation","other"],"description":""},"description":{"type":"string"},"holder":{"type":"string"},"amount":{"type":"integer","description":"minor units (cents)"},"cancelledOnSale":{"type":"boolean","description":"true = cancelled by the sale; false = the buyer takes it over"}}}},"debts":{"type":"object","properties":{"community":{"type":"integer","description":"unpaid community fees — minor units (cents)"},"propertyTax":{"type":"integer","description":"unpaid IBI / property tax — minor units (cents)"},"other":{"type":"integer","description":"minor units (cents)"},"note":{"type":"string"},"payer":{"type":"string","enum":["buyer","seller","shared","none"],"description":""}}},"costs":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"e.g. ITP, IVA, AJD, notary, registry, Handänderungssteuer"},"payer":{"type":"string","enum":["buyer","seller","shared","none"],"description":""},"pct":{"type":"number","description":"% of the hammer price"},"amount":{"type":"integer","description":"fixed amount — minor units (cents)"},"note":{"type":"string"}}}},"possession":{"type":"string","enum":["immediate","on_completion","tenanted","occupied_no_title","after_eviction","unknown"],"description":""},"conditions":{"type":"object","additionalProperties":{"type":"string"},"description":"special conditions — text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"}},"description":"legal situation of the lot (null when the seller gave none)"},"documents":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"name":{"type":"string"},"kind":{"type":"string","description":"registry, energy, plans, conditions…"},"visibility":{"type":"string","enum":["public","identified","depositors"],"description":""},"url":{"type":"string","description":"absent when locked"},"locked":{"type":"boolean","description":"true = not visible to this viewer yet"}}}},"deposit":{"type":"object","properties":{"amount":{"type":"integer","description":"in the lot currency — minor units (cents)"},"base":{"type":"integer","description":"in the platform base currency — minor units (cents)"},"pct":{"type":"number"},"scope":{"type":"string","enum":["lot","sale"],"description":""},"saleId":{"type":"string"}}},"visits":{"type":"object","properties":{"slots":{"type":"array","items":{"type":"integer","format":"int64","description":"epoch milliseconds"}},"capacity":{"type":"integer"},"taken":{"type":"object","additionalProperties":{"type":"integer"}},"mine":{"type":"array","items":{"type":"integer","format":"int64","description":"epoch milliseconds"}}}},"seller":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"verified":{"type":"boolean"},"rating":{"type":"number"}}},"myStatus":{"type":"string","enum":["leading","outbid","won","lost","reserve_not_met","sealed"],"description":"for the caller / bidder"},"myMax":{"type":"integer","description":"minor units (cents)"},"myDeposit":{"type":"object","properties":{"status":{"type":"string"},"amount":{"type":"integer","description":"minor units (cents)"},"scope":{"type":"string"}}},"distanceKm":{"type":"number","description":"with near="}}},"Identity":{"type":"object","properties":{"status":{"type":"string","enum":["none","pending","verified","rejected"],"description":""},"by":{"type":"string","enum":["platform","integrator"],"description":""},"method":{"type":"string"},"verifiedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"reason":{"type":"string","description":"when rejected"},"linkExpiresAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"Order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"lotId":{"type":"string"},"lotExtRef":{"type":"string","description":"your reference of the lot"},"lotTitle":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"invoices":{"type":"integer","description":"buyer invoices issued (GET …/documents)"},"status":{"type":"string","enum":["awaiting_payment","paid","shipped","delivered","completed","disputed","refunded","cancelled_unpaid"],"description":""},"hammer":{"type":"integer","description":"minor units (cents)"},"premium":{"type":"integer","description":"minor units (cents)"},"vat":{"type":"integer","description":"minor units (cents)"},"total":{"type":"integer","description":"minor units (cents)"},"deposit":{"type":"integer","description":"held deposit deducted — minor units (cents)"},"amountDue":{"type":"integer","description":"still to pay — minor units (cents)"},"currency":{"type":"string"},"dueAt":{"type":"integer","format":"int64","description":"payment deadline (unpaid = deposit forfeited) — epoch milliseconds"}}},"PaymentLink":{"type":"object","properties":{"payment":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string"},"reference":{"type":"string"}}},"redirectUrl":{"type":"string","description":"card / crypto checkout: send the bidder here"},"bank":{"type":"object","properties":{"iban":{"type":"string"},"bic":{"type":"string"},"holder":{"type":"string"},"reference":{"type":"string","description":"must be on the transfer"},"amount":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"}}},"simulated":{"type":"boolean"},"simulateUrl":{"type":"string","description":"sandbox only: POST to complete"}}},"LotList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Lot"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"facets":{"type":"object","additionalProperties":{"type":"integer"}}}},"Raffle":{"type":"object","properties":{"id":{"type":"string"},"no":{"type":"integer"},"number":{"type":"string","description":"R-<no>"},"extRef":{"type":"string","description":"your own reference"},"title":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"description":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"category":{"type":"string"},"media":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["image","video"],"description":""},"src":{"type":"string"}}}},"images":{"type":"array","items":{"type":"string"}},"location":{"type":"string"},"prize":{"type":"object","properties":{"kind":{"type":"string","enum":["item","lot","vehicle","realestate","other"],"description":""},"value":{"type":"integer","description":"estimated value — minor units (cents)"},"items":{"type":"array","items":{"type":"object","properties":{"title":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"qty":{"type":"integer"}}}},"lotId":{"type":"string"}}},"property":{"type":"object","properties":{"kind":{"type":"string","enum":["apartment","house","villa","rural","commercial","plot","office","garage"],"description":""},"area":{"type":"integer","description":"m² built"},"plotArea":{"type":"integer","description":"m² of plot"},"rooms":{"type":"integer"},"baths":{"type":"integer"},"year":{"type":"integer"},"floor":{"type":"string"},"energy":{"type":"string","enum":["A","B","C","D","E","F","G","exempt","pending"],"description":"energy rating"},"address":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","description":"ISO-2"},"lat":{"type":"number"},"lng":{"type":"number"},"cadastral":{"type":"string","description":"cadastral reference"},"occupancy":{"type":"string","enum":["vacant","tenanted","occupied"],"description":""},"charges":{"type":"integer","description":"community fees per month — minor units (cents)"},"ibi":{"type":"integer","description":"property tax per year — minor units (cents)"},"elevator":{"type":"boolean"},"parking":{"type":"boolean"},"terrace":{"type":"boolean"},"pool":{"type":"boolean"},"valuation":{"type":"integer","description":"appraisal — minor units (cents)"}},"description":"real-estate data (any field may be null)"},"specs":{"type":"object","additionalProperties":{"type":"string"}},"currency":{"type":"string"},"ticketPrice":{"type":"integer","description":"minor units (cents)"},"totalTickets":{"type":"integer"},"minTickets":{"type":"integer","description":"minimum sold for the draw to take place"},"maxPerBuyer":{"type":"integer","description":"0 = no limit"},"sold":{"type":"integer"},"remaining":{"type":"integer"},"progressPct":{"type":"number"},"minReached":{"type":"boolean"},"buyers":{"type":"integer"},"takings":{"type":"integer","description":"minor units (cents)"},"buyNow":{"type":"integer","description":"direct purchase price, null = none — minor units (cents)"},"buyNowAvailable":{"type":"boolean"},"drawOnSoldOut":{"type":"boolean"},"undersold":{"type":"object","properties":{"policy":{"type":"string","enum":["refund","extend","cash"],"description":""},"extendDays":{"type":"integer"},"cashPct":{"type":"integer"},"extended":{"type":"boolean"}}},"bundles":{"type":"array","items":{"type":"object","properties":{"qty":{"type":"integer"},"price":{"type":"integer","description":"price of the pack — minor units (cents)"}}}},"cashAlternative":{"type":"integer","description":"cash the winner may take instead of the prize — minor units (cents)"},"charity":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"pct":{"type":"integer","description":"% of the takings"}}},"freeEntry":{"type":"boolean","description":"one free ticket per person"},"giftable":{"type":"boolean"},"organizerVerified":{"type":"boolean","description":"identity of the organizer verified (KYC)"},"signatures":{"type":"object","properties":{"seller":{"type":"string","description":"pending | requested | signed | clickwrap"},"sellerMethod":{"type":"string","enum":["qes","clickwrap"],"description":""},"winner":{"type":"string"}}},"beacon":{"type":"object","properties":{"network":{"type":"string","description":"drand-quicknet"},"round":{"type":"integer","description":"drand round used for the draw"},"url":{"type":"string","description":"where anyone can fetch it"},"randomness":{"type":"string"},"failed":{"type":"boolean"}},"description":"public randomness (4.2)"},"lot":{"type":"object","properties":{"id":{"type":"string"},"no":{"type":"integer"},"status":{"type":"string","description":"in_raffle while the raffle runs, raffled when completed"}},"description":"the portfolio lot that is the prize"},"watermark":{"type":"string","description":"test mode only: DEMO text in the caller language"},"demo":{"type":"boolean","description":"test mode only"},"opensAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"closesAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"status":{"type":"string","enum":["pending","awaiting_signature","scheduled","open","drawing","drawn","completed","void","cancelled","sold_direct","rejected"],"description":""},"outcome":{"type":"string","enum":["prize","cash","direct","undersold","cancelled"],"description":""},"serverNow":{"type":"integer","format":"int64","description":"epoch milliseconds"},"seller":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"verified":{"type":"boolean"}}},"seedHash":{"type":"string","description":"SHA-256 of the secret seed, published before the first ticket"},"seed":{"type":"string","description":"revealed at the draw"},"chainHead":{"type":"string","description":"last hash of the ticket chain"},"draw":{"type":"object","properties":{"at":{"type":"integer","format":"int64","description":"epoch milliseconds"},"mode":{"type":"string","enum":["prize","cash"],"description":""},"tickets":{"type":"integer"},"winningTicket":{"type":"integer"},"winnerTag":{"type":"string","description":"pseudonymous tag of the winner"},"alternates":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer"},"ticket":{"type":"integer"},"tag":{"type":"string"}}}}}},"deal":{"type":"object","properties":{"kind":{"type":"string","enum":["raffle","direct","cash","cash_alt"],"description":""},"status":{"type":"string","enum":["awaiting_acceptance","awaiting_signature","accepted","formalized","completed","declined","expired","failed","cancelled"],"description":""},"acceptBy":{"type":"integer","format":"int64","description":"epoch milliseconds"},"formalizeBy":{"type":"integer","format":"int64","description":"epoch milliseconds"},"deliverBy":{"type":"integer","format":"int64","description":"epoch milliseconds"},"completedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"contract":{"type":"object","properties":{"hash":{"type":"string","description":"SHA-256 of the terms: send it as contractHash"},"version":{"type":"integer"},"masterLang":{"type":"string"},"acceptDays":{"type":"integer"},"formalizeDays":{"type":"integer"},"deliveryDays":{"type":"integer"},"penaltyPct":{"type":"integer"},"costs":{"type":"object","additionalProperties":{"type":"string"}}}},"notary":{"type":"object","properties":{"name":{"type":"string"},"office":{"type":"string"},"jurisdiction":{"type":"string"}}},"commissionPct":{"type":"number"},"minAge":{"type":"integer"},"mine":{"type":"object","properties":{"tickets":{"type":"integer"},"ranges":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"spent":{"type":"integer","description":"minor units (cents)"},"chancePct":{"type":"number"},"tag":{"type":"string"},"won":{"type":"boolean"},"rank":{"type":"integer","description":"0 = winner, 1.. = alternate"},"isParty":{"type":"boolean"}},"description":"only for the signed-in user / ?bidder="}}},"RaffleList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Raffle"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"serverNow":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"TicketPurchase":{"type":"object","properties":{"entry":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"integer","description":"first ticket number"},"to":{"type":"integer","description":"last ticket number"},"qty":{"type":"integer"},"amount":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"},"hash":{"type":"string"},"ts":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"tickets":{"type":"string","description":"#12–#15"},"raffle":{"$ref":"#/components/schemas/Raffle"},"wallet":{"type":"object","properties":{"available":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"}}}}},"BidResult":{"type":"object","properties":{"lot":{"$ref":"#/components/schemas/Lot"},"leading":{"type":"boolean","description":"false = someone has a higher maximum"},"max":{"type":"integer","description":"your maximum — minor units (cents)"}}},"Quote":{"type":"object","properties":{"lotId":{"type":"string"},"currency":{"type":"string"},"amount":{"type":"integer","description":"the bid — minor units (cents)"},"hammer":{"type":"integer","description":"minor units (cents)"},"premium":{"type":"integer","description":"minor units (cents)"},"premiumPct":{"type":"number"},"shipping":{"type":"integer","description":"minor units (cents)"},"vat":{"type":"integer","description":"minor units (cents)"},"vatPct":{"type":"number"},"platformTotal":{"type":"integer","description":"charged by the platform if it wins — minor units (cents)"},"deposit":{"type":"integer","description":"minor units (cents)"},"depositHeld":{"type":"boolean"},"dueAfterDeposit":{"type":"integer","description":"minor units (cents)"},"external":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"payer":{"type":"string"},"pct":{"type":"number"},"amount":{"type":"integer","description":"minor units (cents)"},"note":{"type":"string"}}}},"externalTotal":{"type":"integer","description":"estimated, paid outside the platform — minor units (cents)"},"estimatedTotal":{"type":"integer","description":"platformTotal + externalTotal — minor units (cents)"},"minNext":{"type":"integer","description":"minor units (cents)"},"valid":{"type":"boolean","description":"amount ≥ minNext"}}},"IdentityLink":{"type":"object","properties":{"status":{"type":"string","enum":["verified","pending","link_created"],"description":""},"verifyUrl":{"type":"string","description":"hosted page: ID document + selfie (or Stripe Identity)"},"expiresAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"identity":{"$ref":"#/components/schemas/Identity"}}},"DepositResult":{"allOf":[{"$ref":"#/components/schemas/PaymentLink"},{"type":"object","properties":{"status":{"type":"string","enum":["not_required","held","payment_required"],"description":""},"scope":{"type":"string","enum":["lot","sale"],"description":""},"amount":{"type":"integer","description":"deposit, base currency — minor units (cents)"},"missing":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"}}}]},"Bidder":{"type":"object","properties":{"ref":{"type":"string"},"name":{"type":"string"},"country":{"type":"string"},"lang":{"type":"string","description":"language of the pages we host for this bidder (null = browser's)"},"identity":{"$ref":"#/components/schemas/Identity"},"updatedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"wallet":{"type":"object","properties":{"balance":{"type":"integer","description":"minor units (cents)"},"held":{"type":"integer","description":"heldDeposits + pendingWithdrawals — minor units (cents)"},"heldDeposits":{"type":"integer","description":"guarantee deposits held for auctions — minor units (cents)"},"pendingWithdrawals":{"type":"integer","description":"withdrawals requested, on their way to the bank — minor units (cents)"},"available":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"},"holds":{"type":"array","items":{"type":"object","properties":{"lotId":{"type":"string"},"saleId":{"type":"string"},"amount":{"type":"integer","description":"minor units (cents)"},"status":{"type":"string"}}}}}},"bids":{"type":"array","items":{"type":"object","properties":{"lotId":{"type":"string"},"extRef":{"type":"string"},"status":{"type":"string"},"myStatus":{"type":"string"},"myMax":{"type":"integer","description":"minor units (cents)"},"price":{"type":"integer","description":"minor units (cents)"},"minNext":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"},"endsAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}}},"watching":{"type":"array","items":{"type":"string"}},"visits":{"type":"array","items":{"type":"object","properties":{"lotId":{"type":"string"},"slot":{"type":"integer","format":"int64","description":"epoch milliseconds"}}}},"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"purpose":{"type":"string","enum":["topup","order"],"description":""},"lotId":{"type":"string","description":"deposit: its lot; order: the lot won"},"lotExtRef":{"type":"string","description":"your reference of that lot"},"lotTitle":{"type":"object","additionalProperties":{"type":"string"},"description":"text per language code, e.g. {\"es\": \"…\", \"en\": \"…\"}"},"orderId":{"type":"string"},"orderNumber":{"type":"string"},"createdAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"paidAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"cancelledAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"cancelReason":{"type":"string","enum":["order_paid","deposit_held","order_cancelled_unpaid","order_refunded"],"description":"why the platform voided it: another payment settled the same thing"},"creditedToWallet":{"type":"boolean","description":"money that arrived after the order was paid another way: added to the wallet"},"amount":{"type":"integer","description":"minor units (cents)"},"status":{"type":"string","enum":["pending","paid","cancelled","failed","expired"],"description":""},"provider":{"type":"string"},"reference":{"type":"string"}}}},"withdrawals":{"type":"array","items":{"$ref":"#/components/schemas/Withdrawal"}}}},"Invoice":{"type":"object","properties":{"id":{"type":"string"},"series":{"type":"string"},"number":{"type":"string"},"type":{"type":"string","description":"F1 invoice, R1 rectifying"},"kind":{"type":"string","enum":["buyer","buyer_rectify"],"description":""},"issuedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"orderId":{"type":"string"},"lotId":{"type":"string"},"currency":{"type":"string"},"base":{"type":"integer","description":"minor units (cents)"},"vat":{"type":"integer","description":"minor units (cents)"},"total":{"type":"integer","description":"minor units (cents)"},"deposit":{"type":"integer","description":"held deposit already applied — minor units (cents)"},"hash":{"type":"string","description":"chained record"},"url":{"type":"string","description":"page that shows and prints the invoice, in the bidder's language; valid 30 days"},"dataUrl":{"type":"string","description":"the same invoice as JSON, signed link valid 30 days, no API key"},"linkExpiresAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"OrderDocuments":{"type":"object","properties":{"invoices":{"type":"array","items":{"$ref":"#/components/schemas/Invoice"}},"invoicesPending":{"type":"boolean","description":"true while the order is unpaid: the invoice is issued on payment"},"certificateUrl":{"type":"string","description":"adjudication certificate: chained bid ledger"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"status":{"type":"string"},"total":{"type":"integer","description":"minor units (cents)"},"currency":{"type":"string"}}}}},"ApiUsage":{"type":"object","properties":{"plan":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"monthlyFee":{"type":"integer","description":"minor units (cents)"},"includedCalls":{"type":"integer"},"overagePer1000":{"type":"integer","description":"minor units (cents)"},"salesFeePct":{"type":"number"},"rps":{"type":"integer"},"hardLimit":{"type":"boolean","description":"true = calls beyond includedCalls are refused"},"scopes":{"type":"array","items":{"type":"string"}}}},"period":{"type":"object","properties":{"start":{"type":"integer","format":"int64","description":"epoch milliseconds"},"end":{"type":"integer","format":"int64","description":"epoch milliseconds"},"days":{"type":"integer"}}},"status":{"type":"string","enum":["active","past_due"],"description":""},"currency":{"type":"string"},"calls":{"type":"integer","description":"this period"},"remainingIncluded":{"type":"integer"},"salesVolume":{"type":"integer","description":"minor units (cents)"},"due":{"type":"integer","description":"unpaid — minor units (cents)"},"estimate":{"type":"object","properties":{"monthlyFee":{"type":"integer","description":"minor units (cents)"},"overageCalls":{"type":"integer"},"overageCost":{"type":"integer","description":"minor units (cents)"},"salesFee":{"type":"integer","description":"minor units (cents)"},"total":{"type":"integer","description":"expected bill for this period so far — minor units (cents)"}}},"rateLimit":{"type":"object","properties":{"perSecond":{"type":"integer"},"burst":{"type":"integer"},"remaining":{"type":"integer","description":"now"},"resetMs":{"type":"integer"}}},"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"},"kind":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"lastUsedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"walletBalance":{"type":"integer","description":"minor units (cents)"}}},"Withdrawal":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer","description":"base currency — minor units (cents)"},"currency":{"type":"string"},"status":{"type":"string","enum":["requested","paid","rejected"],"description":""},"createdAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"decidedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"},"ibanMasked":{"type":"string","description":"e.g. \"ES91 •••• 1332\""},"ibanLast4":{"type":"string"},"ibanCountry":{"type":"string","description":"ISO-2"},"simulateUrl":{"type":"string","description":"sandbox only: POST it to settle the withdrawal"}}},"BidderList":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"name":{"type":"string"},"country":{"type":"string"},"identity":{"type":"string"},"held":{"type":"integer","description":"minor units (cents)"},"available":{"type":"integer","description":"minor units (cents)"},"updatedAt":{"type":"integer","format":"int64","description":"epoch milliseconds"}}}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"serverNow":{"type":"integer","format":"int64","description":"epoch milliseconds"}}},"Event":{"type":"object","properties":{"id":{"type":"string","description":"evt_…, increasing"},"type":{"type":"string","description":"bid.placed, lot.closed, order.paid, bidder.outbid…"},"created":{"type":"integer","description":"unix seconds"},"data":{"type":"object"}}},"EventList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"hasMore":{"type":"boolean"}}}}},"paths":{"/api/v1/meta":{"get":{"tags":["Catalog"],"summary":"Platform metadata: brand, currencies, languages, categories, fees","operationId":"GETApiV1Meta","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/search":{"get":{"tags":["Lots"],"summary":"Natural-language search (ES/EN/DE): \"piso en Madrid con terraza por menos de 800.000 €\". Returns the lots, the structured query and how the sentence was understood.","operationId":"GETApiV1Search","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"ai","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots/{id}/view":{"post":{"tags":["Lots"],"summary":"Count a view of the lot page (seller analytics)","operationId":"POSTApiV1LotsIdView","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/visitor":{"post":{"tags":["Account"],"summary":"Merge the anonymous browsing history (consented visitor id) into this account","operationId":"POSTApiV1MeVisitor","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"vid":{"description":"string"}}}}}}}},"/api/v1/visitor/{vid}":{"delete":{"tags":["Account"],"summary":"Withdraw consent: erase an anonymous visitor and its views","operationId":"DELETEApiV1VisitorVid","parameters":[{"name":"vid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/recommendations":{"get":{"tags":["Lots"],"summary":"Lots \"for you\": co-viewing / co-bidding in the graph, or similar to what you viewed","operationId":"GETApiV1Recommendations","parameters":[{"name":"vid","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/lots/{id}/translation":{"get":{"tags":["Lots"],"summary":"The lot in another language: the seller’s own text if given, otherwise an automatic translation made once per language (renewed when the original changes)","operationId":"GETApiV1LotsIdTranslation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots/{id}/questions":{"get":{"tags":["Lots"],"summary":"Public questions to the seller and their answers","operationId":"GETApiV1LotsIdQuestions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"},"post":{"tags":["Lots"],"summary":"Ask the seller a public question","operationId":"POSTApiV1LotsIdQuestions","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"description":"string"}}}}}}}},"/api/v1/questions/{id}/answer":{"post":{"tags":["Selling"],"summary":"Answer a question about your lot (shown publicly)","operationId":"POSTApiV1QuestionsIdAnswer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"description":"string"}}}}}}}},"/api/v1/questions/{id}/hide":{"post":{"tags":["Admin"],"summary":"Hide an inappropriate question","operationId":"POSTApiV1QuestionsIdHide","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token."}},"/api/v1/lots/{id}/similar":{"get":{"tags":["Lots"],"summary":"Similar open lots of the same category (or ?category=…), from the graph (type, materials, place, era) and co-bidding","operationId":"GETApiV1LotsIdSimilar","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots":{"get":{"tags":["Catalog"],"summary":"Search lots","operationId":"GETApiV1Lots","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"sale","in":"query","required":false,"schema":{"type":"string"}},{"name":"seller","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}},{"name":"endingWithin","in":"query","required":false,"schema":{"type":"string"}},{"name":"noReserve","in":"query","required":false,"schema":{"type":"string"}},{"name":"buyNow","in":"query","required":false,"schema":{"type":"string"}},{"name":"minPrice","in":"query","required":false,"schema":{"type":"string"}},{"name":"maxPrice","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string"}},{"name":"propertyKind","in":"query","required":false,"schema":{"type":"string"}},{"name":"minRooms","in":"query","required":false,"schema":{"type":"string"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}},{"name":"deposit","in":"query","required":false,"schema":{"type":"string"}},{"name":"bbox","in":"query","required":false,"schema":{"type":"string"}},{"name":"near","in":"query","required":false,"schema":{"type":"string"}},{"name":"radiusKm","in":"query","required":false,"schema":{"type":"string"}},{"name":"polygon","in":"query","required":false,"schema":{"type":"string"}},{"name":"updatedSince","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LotList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots/{id}":{"get":{"tags":["Catalog"],"summary":"Get one lot (with cost quote for the next bid)","operationId":"GETApiV1LotsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lot"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots/{id}/bids":{"get":{"tags":["Catalog"],"summary":"Bid history (bidders are anonymised)","operationId":"GETApiV1LotsIdBids","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"},"post":{"tags":["Bidding"],"summary":"Place a bid. type \"max\" (proxy, default) or \"single\". API keys must pass bidder.ref.","operationId":"POSTApiV1LotsIdBids","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer (minor units)"},"type":{"description":"max|single"},"bidder":{"description":"{ ref, name, country } (API only)"}}}}}}}},"/api/v1/sales":{"get":{"tags":["Catalog"],"summary":"List sales (catalogues)","operationId":"GETApiV1Sales","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/sellers/{id}":{"get":{"tags":["Catalog"],"summary":"Public seller profile","operationId":"GETApiV1SellersId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/fx":{"get":{"tags":["Catalog"],"summary":"Exchange rates (per 1 unit of base currency)","operationId":"GETApiV1Fx","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/i18n":{"get":{"tags":["Catalog"],"summary":"All translations (from translations.xlsx)","operationId":"GETApiV1I18n","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/openapi.json":{"get":{"tags":["Developers"],"summary":"This API as an OpenAPI 3.1 document","operationId":"GETApiV1OpenapiJson","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["Account"],"summary":"Create an account","operationId":"POSTApiV1AuthRegister","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"email":{"description":"string"},"password":{"description":"string"},"country":{"description":"string"}}}}}}}},"/api/v1/auth/login":{"post":{"tags":["Account"],"summary":"Sign in and receive a session token","operationId":"POSTApiV1AuthLogin","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"string"},"password":{"description":"string"}}}}}}}},"/api/v1/auth/captcha":{"get":{"tags":["Account"],"summary":"A new human check (image captcha, or the Turnstile site key when configured)","operationId":"GETApiV1AuthCaptcha","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/auth/challenge":{"get":{"tags":["Account"],"summary":"Anti-bot challenge for registration (proof of work)","operationId":"GETApiV1AuthChallenge","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/auth/mfa":{"post":{"tags":["Account"],"summary":"Second step of sign-in: authenticator code or recovery code","operationId":"POSTApiV1AuthMfa","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"mfaToken":{"description":"string"},"code":{"description":"string"}}}}}}}},"/api/v1/auth/verify-email":{"post":{"tags":["Account"],"summary":"Confirm the e-mail address with the token from the e-mail","operationId":"POSTApiV1AuthVerifyEmail","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"description":"string"}}}}}}}},"/api/v1/auth/resend-verification":{"post":{"tags":["Account"],"summary":"Send the verification e-mail again","operationId":"POSTApiV1AuthResendVerification","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/auth/forgot":{"post":{"tags":["Account"],"summary":"Send a password-reset link (always answers 200)","operationId":"POSTApiV1AuthForgot","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"string"}}}}}}}},"/api/v1/auth/reset":{"post":{"tags":["Account"],"summary":"Set a new password with the token from the e-mail","operationId":"POSTApiV1AuthReset","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"description":"string"},"password":{"description":"string"},"code":{"description":"string (if 2FA is on)"}}}}}}}},"/api/v1/me/security":{"get":{"tags":["Account"],"summary":"Two-factor status, e-mail verification and active sessions","operationId":"GETApiV1MeSecurity","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/password":{"post":{"tags":["Account"],"summary":"Change password (signs out other sessions)","operationId":"POSTApiV1MePassword","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"current":{"description":"string"},"password":{"description":"string"}}}}}}}},"/api/v1/me/2fa/setup":{"post":{"tags":["Account"],"summary":"Start two-factor setup: returns the secret and otpauth:// URI for the authenticator app","operationId":"POSTApiV1Me2faSetup","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/2fa/enable":{"post":{"tags":["Account"],"summary":"Confirm with a code from the app; returns 10 one-time recovery codes","operationId":"POSTApiV1Me2faEnable","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"description":"string"}}}}}}}},"/api/v1/me/2fa/disable":{"post":{"tags":["Account"],"summary":"Turn two-factor off (password + code)","operationId":"POSTApiV1Me2faDisable","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"description":"string"},"code":{"description":"string"}}}}}}}},"/api/v1/me/sessions/{id}":{"delete":{"tags":["Account"],"summary":"Sign out a device","operationId":"DELETEApiV1MeSessionsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/auth/logout":{"post":{"tags":["Account"],"summary":"End the session","operationId":"POSTApiV1AuthLogout","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me":{"get":{"tags":["Account"],"summary":"Current user","operationId":"GETApiV1Me","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"patch":{"tags":["Account"],"summary":"Update profile, language, currency and notification preferences","operationId":"PATCHApiV1Me","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"lang":{"description":"string"},"currency":{"description":"string"},"prefs":{"description":"object"}}}}}}},"delete":{"tags":["Account"],"summary":"GDPR: close the account and erase personal data (orders and invoices are kept for the legal period, pseudonymised)","operationId":"DELETEApiV1Me","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"description":"string"},"confirm":{"description":"DELETE"}}}}}}}},"/api/v1/me/seller-application":{"post":{"tags":["Account"],"summary":"Apply to sell (KYC)","operationId":"POSTApiV1MeSellerApplication","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"company":{"description":"string"},"vatId":{"description":"string"},"iban":{"description":"string"},"type":{"description":"string"}}}}}}}},"/api/v1/lots/{id}/buy-now":{"post":{"tags":["Bidding"],"summary":"Buy the lot now at its Buy-now price","operationId":"POSTApiV1LotsIdBuyNow","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref } (API only)"}}}}}}}},"/api/v1/lots/{id}/accept":{"post":{"tags":["Bidding"],"summary":"Accept the current price of a Dutch (descending) auction","operationId":"POSTApiV1LotsIdAccept","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"expectedPrice":{"description":"integer"},"bidder":{"description":"{ ref } (API only)"}}}}}}}},"/api/v1/lots/{id}/watch":{"put":{"tags":["Bidding"],"summary":"Add to watchlist","operationId":"PUTApiV1LotsIdWatch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"delete":{"tags":["Bidding"],"summary":"Remove from watchlist","operationId":"DELETEApiV1LotsIdWatch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/desk":{"get":{"tags":["Bidding"],"summary":"Bid desk: every lot you watch or bid on, with your status and bid-limit exposure","operationId":"GETApiV1MeDesk","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/bids":{"get":{"tags":["Bidding"],"summary":"Lots you have bid on","operationId":"GETApiV1MeBids","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/orders":{"get":{"tags":["Orders"],"summary":"Your purchases","operationId":"GETApiV1MeOrders","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/offers":{"get":{"tags":["Orders"],"summary":"Second-chance offers sent to you or by you","operationId":"GETApiV1MeOffers","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/notifications":{"get":{"tags":["Account"],"summary":"Notifications","operationId":"GETApiV1MeNotifications","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/notifications/read":{"post":{"tags":["Account"],"summary":"Mark notifications as read","operationId":"POSTApiV1MeNotificationsRead","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"description":"string[] (omit for all)"}}}}}}}},"/api/v1/orders/{id}/pay":{"post":{"tags":["Orders"],"summary":"Pay an order (payment provider adapter)","operationId":"POSTApiV1OrdersIdPay","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"method":{"description":"card|sepa|wallet"}}}}}}}},"/api/v1/orders/{id}/confirm":{"post":{"tags":["Orders"],"summary":"Confirm receipt (releases the seller payout)","operationId":"POSTApiV1OrdersIdConfirm","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/orders/{id}/rate":{"post":{"tags":["Orders"],"summary":"Rate the seller","operationId":"POSTApiV1OrdersIdRate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"stars":{"description":"1-5"},"comment":{"description":"string"}}}}}}}},"/api/v1/orders/{id}/dispute":{"post":{"tags":["Orders"],"summary":"Open a dispute","operationId":"POSTApiV1OrdersIdDispute","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"not_received|not_as_described|damaged|other"},"message":{"description":"string"}}}}}}}},"/api/v1/orders/{id}/delivered":{"post":{"tags":["Orders"],"summary":"Record that the carrier delivered the goods (seller or admin). Starts the confirmation reminders.","operationId":"POSTApiV1OrdersIdDelivered","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:write"]},{"session":[]}],"x-scope":"orders:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"deliveredAt":{"description":"epoch ms?"},"note":{"description":"string?"},"proof":{"description":"url or data URL?"}}}}}}}},"/api/v1/orders/{id}/ship":{"post":{"tags":["Orders"],"summary":"Mark as shipped with carrier and tracking number","operationId":"POSTApiV1OrdersIdShip","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:write"]},{"session":[]}],"x-scope":"orders:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"carrier":{"description":"string"},"tracking":{"description":"string"}}}}}}}},"/api/v1/orders":{"get":{"tags":["Orders"],"summary":"Orders for lots you sell","operationId":"GETApiV1Orders","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/lots/{id}/proof":{"get":{"tags":["Lots"],"summary":"Audit proof for an interested party (bidder, buyer or seller): the bid chain (others pseudonymous), your own bids, the seal, the order and its invoices (hash chain), payments and events. Signed by the platform (Ed25519). With an API key: ?bidder=ref","operationId":"GETApiV1LotsIdProof","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/proofs/key":{"get":{"tags":["Lots"],"summary":"The public key that signs every proof and certificate (Ed25519, PEM and JWK) and how to verify: signature over the canonical JSON of the proof without its \"signature\" field","operationId":"GETApiV1ProofsKey","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/proofs/verify":{"post":{"tags":["Lots"],"summary":"Check a proof or certificate you were given: is the platform signature valid and unchanged?","operationId":"POSTApiV1ProofsVerify","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"proof":{"description":"object (as received)"}}}}}}}},"/api/v1/orders/{id}":{"get":{"tags":["Orders"],"summary":"One order","operationId":"GETApiV1OrdersId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/lots/{id}/offers":{"post":{"tags":["Bidding"],"summary":"Make a price offer (direct-purchase lots that accept offers, or unsold lots after the close)","operationId":"POSTApiV1LotsIdOffers","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer"},"message":{"description":"string"}}}}}}}},"/api/v1/me/price-offers":{"get":{"tags":["Bidding"],"summary":"Your price offers and the sellers' answers","operationId":"GETApiV1MePriceOffers","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/seller/price-offers":{"get":{"tags":["Selling"],"summary":"Price offers received on your lots","operationId":"GETApiV1SellerPriceOffers","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/price-offers/{id}/{action}":{"post":{"tags":["Bidding"],"summary":"Seller: accept | decline | counter (amount). Buyer: accept_counter | decline_counter | withdraw","operationId":"POSTApiV1PriceOffersIdAction","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer (counter)"}}}}}}}},"/api/v1/valuations":{"post":{"tags":["Selling"],"summary":"Ask the experts for a free valuation before consigning an item","operationId":"POSTApiV1Valuations","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"string"},"description":{"description":"string"},"category":{"description":"string"},"photos":{"description":"[{src,thumb}]"},"wishPrice":{"description":"integer?"},"currency":{"description":"EUR"}}}}}}}},"/api/v1/me/valuations":{"get":{"tags":["Selling"],"summary":"Your valuation requests and estimates","operationId":"GETApiV1MeValuations","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/valuations/{id}/draft":{"get":{"tags":["Selling"],"summary":"Lot draft prefilled from an estimated valuation","operationId":"GETApiV1MeValuationsIdDraft","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/admin/valuations":{"get":{"tags":["Admin"],"summary":"Valuation requests","operationId":"GETApiV1AdminValuations","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/valuations/{id}":{"post":{"tags":["Admin"],"summary":"Answer a valuation request: { low, high, currency, startPrice, reserve, note } or { decline: true, note }","operationId":"POSTApiV1AdminValuationsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/lots/{id}/reminder":{"put":{"tags":["Bidding"],"summary":"Remind me before the lot ends (minutes: 0 = off, 5, 10, 30, 60, 240, 1440); also adds it to the watchlist","operationId":"PUTApiV1LotsIdReminder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"minutes":{"description":"integer"}}}}}}}},"/api/v1/sellers/{id}/follow":{"put":{"tags":["Bidding"],"summary":"Follow a seller: you are told when they publish a new lot","operationId":"PUTApiV1SellersIdFollow","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"description":"boolean"}}}}}}}},"/api/v1/me/following":{"get":{"tags":["Bidding"],"summary":"Sellers you follow","operationId":"GETApiV1MeFollowing","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/seller/lots/{id}/boost":{"post":{"tags":["Selling"],"summary":"Feature the lot at the top of the catalogue (fee from your wallet, invoiced)","operationId":"POSTApiV1SellerLotsIdBoost","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/orders/{id}/withdrawal":{"post":{"tags":["Orders"],"summary":"Consumer right of withdrawal (when enabled and the seller is a business)","operationId":"POSTApiV1OrdersIdWithdrawal","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/price-guide":{"get":{"tags":["Lots"],"summary":"What comparable lots sold for (title words, category, era and place matched against sold lots)","operationId":"GETApiV1PriceGuide","parameters":[{"name":"title","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/offers/{id}/accept":{"post":{"tags":["Orders"],"summary":"Accept a second-chance offer","operationId":"POSTApiV1OffersIdAccept","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/offers/{id}/decline":{"post":{"tags":["Orders"],"summary":"Decline a second-chance offer","operationId":"POSTApiV1OffersIdDecline","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/live":{"get":{"tags":["Live"],"summary":"Live saleroom sales (scheduled, running or paused)","operationId":"GETApiV1Live","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/live/{saleId}":{"get":{"tags":["Live"],"summary":"Live saleroom state: stream, lot on the block, asking price, bid feed, upcoming lots","operationId":"GETApiV1LiveSaleId","parameters":[{"name":"saleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/live/{saleId}/bid":{"post":{"tags":["Live"],"summary":"Bid the asking price on the lot on the block (409 asking_changed if someone was faster). API keys pass bidder.ref (identified bidders only)","operationId":"POSTApiV1LiveSaleIdBid","parameters":[{"name":"saleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer (the asking price you saw)"},"bidder":{"description":"{ ref } (API only)"}}}}}}}},"/api/v1/live/{saleId}/{action}":{"post":{"tags":["Live"],"summary":"Auctioneer console: start | pause | resume | stream | open | ask | floor | warning | hammer | pass | end","operationId":"POSTApiV1LiveSaleIdAction","parameters":[{"name":"saleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lotId":{"description":"string (open)"},"amount":{"description":"integer (ask)"},"paddle":{"description":"string (floor)"},"streamUrl":{"description":"string"}}}}}}}},"/api/v1/lots/{id}/live-max":{"put":{"tags":["Live"],"summary":"Absentee (commission) bid: the auctioneer bids for you up to this maximum","operationId":"PUTApiV1LotsIdLiveMax","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"max":{"description":"integer"}}}}}}}},"/api/v1/lots/{id}/phone-bid":{"put":{"tags":["Live"],"summary":"Telephone bidding: staff call you when the lot comes up (empty phone = cancel)","operationId":"PUTApiV1LotsIdPhoneBid","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"description":"string"}}}}}}}},"/api/v1/seller/lots/{id}/accept-below-reserve":{"post":{"tags":["Selling"],"summary":"Referred sale: accept the highest bid although the reserve was not met (within the window set by the platform)","operationId":"POSTApiV1SellerLotsIdAcceptBelowReserve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/lots/{id}/report":{"post":{"tags":["Lots"],"summary":"Report suspicious bidding (shill bidding) or a suspicious listing to the moderators","operationId":"POSTApiV1LotsIdReport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/lots/{id}/shipping-quote":{"get":{"tags":["Lots"],"summary":"Shipping cost of a lot to a country (fixed, calculated from weight/size with the rate card, or pickup)","operationId":"GETApiV1LotsIdShippingQuote","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"country","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/orders/{id}/shipping-rates":{"get":{"tags":["Orders"],"summary":"Carrier rates for a paid order (simulator, Sendcloud, Shippo or EasyPost)","operationId":"GETApiV1OrdersIdShippingRates","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/orders/{id}/label":{"post":{"tags":["Orders"],"summary":"Buy a shipping label: the order is marked shipped with the tracking number, the label cost comes out of the payout","operationId":"POSTApiV1OrdersIdLabel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rateId":{"description":"string"}}}}}}}},"/api/v1/orders/{id}/shipment":{"get":{"tags":["Orders"],"summary":"Shipment and tracking events of an order","operationId":"GETApiV1OrdersIdShipment","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/shipping/webhooks/{provider}":{"post":{"tags":["Orders"],"summary":"Carrier tracking webhooks (Sendcloud, Shippo, EasyPost). Signature-verified.","operationId":"POSTApiV1ShippingWebhooksProvider","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/admin/shipments/{id}/track":{"post":{"tags":["Admin"],"summary":"Record a tracking status by hand (in_transit, out_for_delivery, delivered, exception, returned)","operationId":"POSTApiV1AdminShipmentsIdTrack","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"description":"string"},"detail":{"description":"string"}}}}}}}},"/api/v1/admin/shipping":{"get":{"tags":["Admin"],"summary":"Carrier status: provider in use and which credentials are configured","operationId":"GETApiV1AdminShipping","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/seller/lots/{id}/authentication":{"post":{"tags":["Selling"],"summary":"Request expert authentication of a lot (fee from your wallet, invoiced). Authentic lots carry a certificate and the platform guarantee.","operationId":"POSTApiV1SellerLotsIdAuthentication","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"description":"string"}}}}}}}},"/api/v1/lots/{id}/authenticity":{"get":{"tags":["Lots"],"summary":"Certificate of authenticity (number, expert, report, verification hash)","operationId":"GETApiV1LotsIdAuthenticity","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/orders/{id}/authenticity-claim":{"post":{"tags":["Orders"],"summary":"Authenticity guarantee claim: the item is not what the certificate says","operationId":"POSTApiV1OrdersIdAuthenticityClaim","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/admin/authenticity":{"get":{"tags":["Admin"],"summary":"Authentication requests and guarantee claims","operationId":"GETApiV1AdminAuthenticity","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/lots/{id}/authentication":{"post":{"tags":["Admin"],"summary":"Expert verdict: authentic (issues the certificate) | not_authentic (withdraws the lot) | inconclusive","operationId":"POSTApiV1AdminLotsIdAuthentication","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"verdict":{"description":"string"},"expert":{"description":"string"},"report":{"description":"string"}}}}}}}},"/api/v1/admin/orders/{id}/authenticity-claim":{"post":{"tags":["Admin"],"summary":"Resolve a guarantee claim: upheld (full refund, paid by the platform if needed) or rejected","operationId":"POSTApiV1AdminOrdersIdAuthenticityClaim","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"upheld":{"description":"boolean"},"note":{"description":"string"}}}}}}}},"/api/v1/me/express-payout":{"get":{"tags":["Selling"],"summary":"Express payout: eligibility (sales, rating, disputes), fee and whether you opted in","operationId":"GETApiV1MeExpressPayout","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"put":{"tags":["Selling"],"summary":"Opt in or out: payout released when the parcel is shipped instead of after receipt, for a fee","operationId":"PUTApiV1MeExpressPayout","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"on":{"description":"boolean"}}}}}}}},"/api/v1/orders/{id}/mediation":{"post":{"tags":["Orders"],"summary":"Escalate an open dispute to the independent mediator (after the waiting period)","operationId":"POSTApiV1OrdersIdMediation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"statement":{"description":"string"}}}}}}}},"/api/v1/orders/{id}/mediation/statement":{"post":{"tags":["Orders"],"summary":"Add your statement to the mediation case","operationId":"POSTApiV1OrdersIdMediationStatement","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"description":"string"}}}}}}}},"/api/v1/mediation/{orderId}":{"get":{"tags":["Orders"],"summary":"Mediator: the case file (link with token, no login)","operationId":"GETApiV1MediationOrderId","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/mediation/{orderId}/decision":{"post":{"tags":["Orders"],"summary":"Mediator: decision refund | partial (amount) | release, with reasoning","operationId":"POSTApiV1MediationOrderIdDecision","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"description":"string"},"outcome":{"description":"string"},"amount":{"description":"integer"},"reasoning":{"description":"string"},"mediator":{"description":"string"}}}}}}}},"/api/v1/admin/mediation":{"get":{"tags":["Admin"],"summary":"Cases sent to the independent mediator","operationId":"GETApiV1AdminMediation","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/orders/{id}/mediation/link":{"post":{"tags":["Admin"],"summary":"Issue a new link for the mediator (the previous one stops working) and e-mail it if an address is set","operationId":"POSTApiV1AdminOrdersIdMediationLink","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/orders/{id}/mediation/apply":{"post":{"tags":["Admin"],"summary":"Apply the mediator decision (refund, partial refund or release)","operationId":"POSTApiV1AdminOrdersIdMediationApply","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/api-plans":{"get":{"tags":["Account"],"summary":"API plans for developers: monthly fee, included calls, price per extra 1,000 calls, fee on sales made through the API, rate limit and scopes","operationId":"GETApiV1ApiPlans","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/usage":{"get":{"tags":["Account"],"summary":"Your API plan and consumption this period (works with any API key, and with a session). This call counts as one more call","operationId":"GETApiV1MeUsage","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiUsage"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":[]},{"session":[]}]}},"/api/v1/me/api":{"get":{"tags":["Account"],"summary":"Your API plan, usage this period, keys and invoices","operationId":"GETApiV1MeApi","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/api/plan":{"post":{"tags":["Account"],"summary":"Choose an API plan (paid plans are charged to your wallet, one period in advance)","operationId":"POSTApiV1MeApiPlan","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"description":"string"}}}}}}}},"/api/v1/me/api/pay":{"post":{"tags":["Account"],"summary":"Pay an overdue API invoice from your wallet (re-enables your keys)","operationId":"POSTApiV1MeApiPay","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/api-keys":{"post":{"tags":["Account"],"summary":"Create an API key for your plan; the secret is shown once","operationId":"POSTApiV1MeApiKeys","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"scopes":{"description":"string[]"},"kind":{"description":"secret | publishable"},"mode":{"description":"live | test (test: every answer carries the DEMO watermark and the no-legal-effect notice)"}}}}}}}},"/api/v1/me/api-keys/{id}":{"delete":{"tags":["Account"],"summary":"Revoke one of your API keys","operationId":"DELETEApiV1MeApiKeysId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/admin/api-billing":{"get":{"tags":["Admin"],"summary":"API customers: plan, calls this period, sales through the API, billed revenue, overdue","operationId":"GETApiV1AdminApiBilling","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/api-billing/{userId}/plan":{"post":{"tags":["Admin"],"summary":"Put a customer on a plan (also private plans, e.g. enterprise), without charging","operationId":"POSTApiV1AdminApiBillingUserIdPlan","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"description":"string"}}}}}}}},"/api/v1/seller/analytics":{"get":{"tags":["Selling"],"summary":"Views, watchers, bids, sell-through and price vs. estimate for your lots","operationId":"GETApiV1SellerAnalytics","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/calendar":{"get":{"tags":["Lots"],"summary":"Upcoming sales, saleroom auctions and lot closings (also as an iCalendar feed at /calendar.ics)","operationId":"GETApiV1Calendar","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/bidders":{"get":{"tags":["Integrators"],"summary":"Your bidders (newest change first); updatedSince = epoch ms for incremental sync","operationId":"GETApiV1Bidders","parameters":[{"name":"updatedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"identity","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BidderList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/bidders/{ref}":{"get":{"tags":["Integrators"],"summary":"One of your bidders: identity, guarantee wallet and held deposits, bids (leading / outbid / won), watched lots, viewings, orders, payments and withdrawals","operationId":"GETApiV1BiddersRef","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Bidder"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"},"delete":{"tags":["Integrators"],"summary":"GDPR / nLPD: erase the bidder's personal data (refused while they have open bids, deposits, orders or balance; legal records stay under a pseudonym)","operationId":"DELETEApiV1BiddersRef","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/bidders/identity":{"post":{"tags":["Integrators"],"summary":"Identity verification (required before depositing, bidding, buying or booking a viewing). Returns a link where the bidder proves their identity on the platform (ID document + selfie, or Stripe Identity); the platform reviews it and sends bidder.kyc_approved / bidder.kyc_rejected","operationId":"POSTApiV1BiddersIdentity","parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityLink"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref, name, country, lang }"},"lang":{"description":"language of the page: es|en|de|ar|he|zh (default: the bidder's, else the browser's)"},"returnUrl":{"description":"URL to send the bidder back to"}}}}}}}},"/api/v1/bidders/{ref}/identity":{"put":{"tags":["Integrators"],"summary":"Declare that YOU identified the bidder (only for integrators the platform allowed to do so). The document number is kept only as a hash plus its last 4 characters","operationId":"PUTApiV1BiddersRefIdentity","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Identity"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"fullName":{"description":"string"},"dateOfBirth":{"description":"YYYY-MM-DD (adult)"},"nationality":{"description":"ISO-2"},"documentType":{"description":"id_card|passport|driving_licence|residence_permit"},"documentNumber":{"description":"string"},"documentCountry":{"description":"ISO-2"},"documentExpiry":{"description":"YYYY-MM-DD"},"method":{"description":"in_person|video|eid|document_check|bank_kyc|notary"},"verifiedAt":{"description":"epoch ms (max. 2 years ago)"},"reference":{"description":"your file id"}}}}}}}},"/api/v1/identity/{token}":{"get":{"tags":["Integrators"],"summary":"Verification link: who it is for and its status (used by the hosted page #/identity/<token>)","operationId":"GETApiV1IdentityToken","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"tags":["Integrators"],"summary":"Hosted verification: submit the ID document (front, optional back) and a selfie for review","operationId":"POSTApiV1IdentityToken","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"docType":{"description":"id_card|passport|driving_licence|residence_permit"},"country":{"description":"ISO"},"fullName":{"description":"string"},"dob":{"description":"YYYY-MM-DD"},"consent":{"description":true},"files":{"description":"[{ kind: front|back|selfie, data: data URL }]"}}}}}}}},"/api/v1/identity/{token}/stripe":{"post":{"tags":["Integrators"],"summary":"Hosted verification with Stripe Identity: returns the Stripe URL","operationId":"POSTApiV1IdentityTokenStripe","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bidders/deposit":{"post":{"tags":["Integrators"],"summary":"Guarantee deposit for a lot (or for a whole sale when the sale has one): holds it if the bidder's wallet already has the funds, otherwise returns a payment link (card, bank transfer, crypto) for the missing amount; once paid, the deposit is held automatically. The bidder must be identified","operationId":"POSTApiV1BiddersDeposit","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositResult"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref, name, country }"},"lotId":{"description":"string"},"provider":{"description":"stripe|bank|btcpay|coinbase|sim"},"returnUrl":{"description":"URL to send the bidder back to after paying"}}}}}}}},"/api/v1/lots/{id}/quote":{"get":{"tags":["Lots"],"summary":"Total cost of a bid before placing it: hammer, buyer's premium (by the bidder's region), VAT, shipping, deposit and the estimated costs outside the platform (transfer tax, notary, debts the buyer takes over…) from the lot's legal data","operationId":"GETApiV1LotsIdQuote","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"amount","in":"query","required":false,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/bidders/orders/{id}/checkout":{"post":{"tags":["Integrators"],"summary":"Payment link for what your bidder still owes on a won lot (the held deposit is already deducted)","operationId":"POSTApiV1BiddersOrdersIdCheckout","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLink"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref }"},"provider":{"description":"stripe|bank|btcpay|coinbase|sim"},"returnUrl":{"description":"URL"}}}}}}}},"/api/v1/bidders/{ref}/orders/{id}/documents":{"get":{"tags":["Integrators"],"summary":"Invoices of a won lot (with a page to show / print them, in the bidder's language) and its adjudication certificate (verifiable bid ledger)","operationId":"GETApiV1BiddersRefOrdersIdDocuments","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDocuments"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/invoices/{id}/shared":{"get":{"tags":["Integrators"],"summary":"A buyer invoice through a signed link valid 30 days (from /bidders/{ref}/orders/{id}/documents); the page at invoices[].url shows and prints it","operationId":"GETApiV1InvoicesIdShared","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"exp","in":"query","required":false,"schema":{"type":"string"}},{"name":"sig","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bidders/payments/{id}/simulate":{"post":{"tags":["Integrators"],"summary":"Sandbox only (simulated payments): complete one of your bidders' payments","operationId":"POSTApiV1BiddersPaymentsIdSimulate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/bidders/visits":{"post":{"tags":["Integrators"],"summary":"Book a viewing of a property for one of your (identified) bidders; slot = one of lot.visits.slots. Name, e-mail and phone go to the seller for that viewing only","operationId":"POSTApiV1BiddersVisits","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref, name, email, phone }"},"lotId":{"description":"string"},"slot":{"description":"epoch ms"}}}}}}},"delete":{"tags":["Integrators"],"summary":"Cancel your bidder's viewing of a property","operationId":"DELETEApiV1BiddersVisits","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref }"},"lotId":{"description":"string"}}}}}}}},"/api/v1/bidders/questions":{"post":{"tags":["Integrators"],"summary":"Ask the seller a public question on behalf of your bidder (the answer arrives as bidder.question_answered)","operationId":"POSTApiV1BiddersQuestions","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref }"},"lotId":{"description":"string"},"text":{"description":"string (5–500)"}}}}}}}},"/api/v1/bidders/watch":{"put":{"tags":["Integrators"],"summary":"Follow (or stop following) a lot for your bidder: they get bidder.ending_soon and other notices of that lot","operationId":"PUTApiV1BiddersWatch","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref }"},"lotId":{"description":"string"},"watching":{"description":"boolean (default true)"}}}}}}}},"/api/v1/bidders/{ref}/documents":{"get":{"tags":["Integrators"],"summary":"Documents of a lot as this bidder sees them, with signed links valid 15 minutes (private documents: only for identified bidders, or only after paying the deposit)","operationId":"GETApiV1BiddersRefDocuments","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}},{"name":"lotId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/documents/{lotId}/{i}":{"get":{"tags":["Integrators"],"summary":"A lot document through a signed, expiring link (from /bidders/{ref}/documents)","operationId":"GETApiV1DocumentsLotIdI","parameters":[{"name":"lotId","in":"path","required":true,"schema":{"type":"string"}},{"name":"i","in":"path","required":true,"schema":{"type":"string"}},{"name":"u","in":"query","required":false,"schema":{"type":"string"}},{"name":"exp","in":"query","required":false,"schema":{"type":"string"}},{"name":"sig","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/bidders/withdraw":{"post":{"tags":["Integrators"],"summary":"Pay out your bidder's available guarantee balance (released deposits) to their bank account; staff review it like any withdrawal","operationId":"POSTApiV1BiddersWithdraw","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref }"},"amount":{"description":"integer (base currency, minor units)"},"iban":{"description":"IBAN (checked; spaces allowed)"}}}}}}}},"/api/v1/bidders/withdrawals/{id}/simulate":{"post":{"tags":["Integrators"],"summary":"Sandbox only (simulated payments): settle one of your bidders' withdrawals as the platform staff would — paid (default) or rejected","operationId":"POSTApiV1BiddersWithdrawalsIdSimulate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"description":"paid|rejected"}}}}}}}},"/api/v1/bidders/{ref}/export":{"get":{"tags":["Integrators"],"summary":"GDPR / nLPD: everything the platform holds about this bidder (JSON)","operationId":"GETApiV1BiddersRefExport","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/me/events":{"get":{"tags":["Integrators"],"summary":"Your events of the last 30 days, oldest first (the same as the webhooks send; use after=<last id you processed> to catch up after a downtime)","operationId":"GETApiV1MeEvents","parameters":[{"name":"after","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/me/webhooks":{"get":{"tags":["Integrators"],"summary":"Your webhook endpoints, the events you can receive and the last deliveries","operationId":"GETApiV1MeWebhooks","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"},"post":{"tags":["Integrators"],"summary":"Register a webhook (HMAC-SHA256 signed). You receive events about your lots, lots your bidders bid on, and your bidders' notices, orders and payments. The secret is shown once","operationId":"POSTApiV1MeWebhooks","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"description":"https URL"},"events":{"description":"string[] (default: all; \"bidder.*\" for every bidder notice)"}}}}}}}},"/api/v1/me/webhooks/{id}":{"delete":{"tags":["Integrators"],"summary":"Delete one of your webhooks","operationId":"DELETEApiV1MeWebhooksId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/me/webhooks/{id}/test":{"post":{"tags":["Integrators"],"summary":"Send a signed test event to one of your webhooks","operationId":"POSTApiV1MeWebhooksIdTest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/me/webhooks/deliveries/{id}/redeliver":{"post":{"tags":["Integrators"],"summary":"Send a delivery again (same event id and payload, new signature)","operationId":"POSTApiV1MeWebhooksDeliveriesIdRedeliver","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/admin/tenants/{id}/kyc-attest":{"post":{"tags":["Admin"],"summary":"Allow (or not) a partner tenant to declare the identity of its own bidders","operationId":"POSTApiV1AdminTenantsIdKycAttest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allowed":{"description":"boolean"}}}}}}}},"/api/v1/admin/api-billing/{userId}/kyc-attest":{"post":{"tags":["Admin"],"summary":"Allow (or not) an API customer to declare the identity of its own bidders","operationId":"POSTApiV1AdminApiBillingUserIdKycAttest","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"allowed":{"description":"boolean"}}}}}}}},"/api/v1/me/fees":{"get":{"tags":["Account"],"summary":"The commissions and fees that apply to you (prices depend on the region of your account)","operationId":"GETApiV1MeFees","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/admin/regions":{"get":{"tags":["Admin"],"summary":"Regions (countries) and the regional value of every fee","operationId":"GETApiV1AdminRegions","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/users/{id}/region":{"put":{"tags":["Admin"],"summary":"Move a user to another price region","operationId":"PUTApiV1AdminUsersIdRegion","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"region":{"description":"r1…r5"}}}}}}}},"/api/v1/me/whatsapp":{"get":{"tags":["Account"],"summary":"Your WhatsApp notices: number, confirmation and which notices","operationId":"GETApiV1MeWhatsapp","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"put":{"tags":["Account"],"summary":"Turn WhatsApp notices on/off, choose which, or remove the number","operationId":"PUTApiV1MeWhatsapp","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"optIn":{"description":"boolean"},"types":{"description":"string[]"},"remove":{"description":"boolean"}}}}}}}},"/api/v1/me/whatsapp/start":{"post":{"tags":["Account"],"summary":"Send a 6-digit confirmation code to this WhatsApp number","operationId":"POSTApiV1MeWhatsappStart","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"description":"+34…"}}}}}}}},"/api/v1/me/whatsapp/confirm":{"post":{"tags":["Account"],"summary":"Confirm the number with the code received","operationId":"POSTApiV1MeWhatsappConfirm","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"description":"string"}}}}}}}},"/api/v1/admin/whatsapp":{"get":{"tags":["Admin"],"summary":"WhatsApp: provider, subscribers and the last messages","operationId":"GETApiV1AdminWhatsapp","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/widget/lots":{"get":{"tags":["Catalog"],"summary":"Embeddable widget: live lot cards for a publishable key (pk_…, sent as ?key= or X-Auctions-Key). Counted as API calls of the key owner; allowed only from the domains set on the key.","operationId":"GETApiV1WidgetLots","parameters":[{"name":"key","in":"query","required":false,"schema":{"type":"string"}},{"name":"ids","in":"query","required":false,"schema":{"type":"string"}},{"name":"seller","in":"query","required":false,"schema":{"type":"string"}},{"name":"sale","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/streaming/auth":{"post":{"tags":["Live"],"summary":"Called by the streaming server (MediaMTX, authMethod: http) before every publish or read; ?s= must be STREAMING_AUTH_SECRET","operationId":"POSTApiV1StreamingAuth","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/admin/streaming":{"get":{"tags":["Admin"],"summary":"Own streaming server: settings and whether it answers","operationId":"GETApiV1AdminStreaming","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/seller/stats":{"get":{"tags":["Selling"],"summary":"Seller dashboard figures","operationId":"GETApiV1SellerStats","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/seller/translate":{"post":{"tags":["Selling"],"summary":"AI draft translation of a lot title and description (needs ANTHROPIC_API_KEY). Review before publishing.","operationId":"POSTApiV1SellerTranslate","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"string"},"description":{"description":"string"},"from":{"description":"es|en|de"},"to":{"description":"string[]"}}}}}}}},"/api/v1/seller/lots/import":{"post":{"tags":["Selling"],"summary":"Bulk create or update lots (up to 500). Rows with an existing extRef update that lot while it has no bids. dryRun=true only validates.","operationId":"POSTApiV1SellerLotsImport","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"description":"lot[] (same fields as POST /seller/lots, plus optional row)"},"dryRun":{"description":"boolean"},"update":{"description":"boolean (default true)"}}}}}}}},"/api/v1/seller/lots":{"get":{"tags":["Selling"],"summary":"Your lots, every status","operationId":"GETApiV1SellerLots","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"},"post":{"tags":["Selling"],"summary":"Create a lot","operationId":"POSTApiV1SellerLots","parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lot"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"{en,es,de}"},"description":{"description":"{en,es,de}"},"category":{"description":"string"},"format":{"description":"english|sprint|dutch|sealed|fixed (direct purchase)"},"currency":{"description":"EUR"},"startPrice":{"description":"integer"},"reserve":{"description":"integer?"},"reserveVisible":{"description":"boolean (show the minimum price)"},"buyNow":{"description":"integer? (required for fixed)"},"buyNowMode":{"description":"until_first_bid|until_reserve|always (default: platform setting)"},"cancelPolicy":{"description":"never|before_start|before_bids|anytime"},"startsAt":{"description":"epoch ms"},"endsAt":{"description":"epoch ms"},"durationMin":{"description":"integer"},"shippingCost":{"description":"integer"},"images":{"description":"url[]"},"extRef":{"description":"string"},"dutch":{"description":"{floor,step,intervalSec}"}}}}}}}},"/api/v1/seller/lots/{id}":{"patch":{"tags":["Selling"],"summary":"Edit a lot (only before the first bid)","operationId":"PATCHApiV1SellerLotsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/seller/lots/{id}/cancel":{"get":{"tags":["Selling"],"summary":"Can this lot be withdrawn now (policy chosen when it was created) and what fee applies","operationId":"GETApiV1SellerLotsIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"},"post":{"tags":["Selling"],"summary":"Withdraw a lot, also after it started if its cancellation policy allows it; the fee for that stage is charged to the seller wallet and invoiced","operationId":"POSTApiV1SellerLotsIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"},"chargeFee":{"description":"boolean (administrators only)"}}}}}}}},"/api/v1/seller/lots/{id}/relist":{"post":{"tags":["Selling"],"summary":"Relist an unsold lot","operationId":"POSTApiV1SellerLotsIdRelist","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"startPrice":{"description":"integer?"},"reserve":{"description":"integer|null"},"durationMin":{"description":"integer"}}}}}}}},"/api/v1/seller/lots/{id}/second-chance":{"post":{"tags":["Selling"],"summary":"Offer the lot to an under-bidder","operationId":"POSTApiV1SellerLotsIdSecondChance","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"description":"string?"},"amount":{"description":"integer?"}}}}}}}},"/api/v1/seller/sales":{"get":{"tags":["Selling"],"summary":"Your live saleroom sales","operationId":"GETApiV1SellerSales","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"post":{"tags":["Selling"],"summary":"Create a sale (catalogue) with staggered closing","operationId":"POSTApiV1SellerSales","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"{en,es,de}"},"firstCloseAt":{"description":"epoch ms"},"staggerSec":{"description":"integer"},"depositAmount":{"description":"integer, base currency: one guarantee deposit for every lot of the sale"}}}}}}}},"/api/v1/lots/{id}/certificate":{"get":{"tags":["Catalog"],"summary":"Verifiable bid ledger (SHA-256 hash chain) and adjudication record of a lot","operationId":"GETApiV1LotsIdCertificate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/lots/{id}/register":{"post":{"tags":["Wallet"],"summary":"Register for a lot that requires a guarantee deposit (holds it in your wallet)","operationId":"POSTApiV1LotsIdRegister","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/wallet":{"get":{"tags":["Wallet"],"summary":"Wallet balance, held deposits, ledger and payments","operationId":"GETApiV1MeWallet","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/wallet/topup":{"post":{"tags":["Wallet"],"summary":"Add funds: returns a Stripe / crypto checkout or bank-transfer instructions","operationId":"POSTApiV1MeWalletTopup","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer (minor units)"},"provider":{"description":"stripe|btcpay|coinbase|bank|sim"}}}}}}}},"/api/v1/me/wallet/withdraw":{"post":{"tags":["Wallet"],"summary":"Withdraw available funds to your bank account","operationId":"POSTApiV1MeWalletWithdraw","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer"},"iban":{"description":"string"}}}}}}}},"/api/v1/orders/{id}/checkout":{"post":{"tags":["Wallet"],"summary":"Pay the amount due on an order through a payment provider","operationId":"POSTApiV1OrdersIdCheckout","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"description":"stripe|btcpay|coinbase|bank|sim"}}}}}}}},"/api/v1/payments/{id}":{"get":{"tags":["Wallet"],"summary":"Payment status","operationId":"GETApiV1PaymentsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/payments/{id}/simulate":{"post":{"tags":["Wallet"],"summary":"Complete a payment in simulation mode (demo and tests only)","operationId":"POSTApiV1PaymentsIdSimulate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/payments/webhooks/{provider}":{"post":{"tags":["Wallet"],"summary":"Payment provider webhooks (Stripe, BTCPay Server, Coinbase Commerce). Signature-verified.","operationId":"POSTApiV1PaymentsWebhooksProvider","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/wallets/credit":{"post":{"tags":["Integrators"],"summary":"Partner API: credit the guarantee wallet of one of your users after you collected the funds","operationId":"POSTApiV1WalletsCredit","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["wallets:write"]},{"session":[]}],"x-scope":"wallets:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref, name, country }"},"amount":{"description":"integer"},"reference":{"description":"string"}}}}}}}},"/api/v1/lots/{id}/visits":{"post":{"tags":["Bidding"],"summary":"Book a viewing slot (real estate)","operationId":"POSTApiV1LotsIdVisits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"slot":{"description":"epoch ms"}}}}}}},"delete":{"tags":["Bidding"],"summary":"Cancel your viewing","operationId":"DELETEApiV1LotsIdVisits","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/seller/visits":{"get":{"tags":["Selling"],"summary":"Booked viewings on your lots","operationId":"GETApiV1SellerVisits","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/me/groups":{"get":{"tags":["Bidding"],"summary":"Your bid groups","operationId":"GETApiV1MeGroups","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"post":{"tags":["Bidding"],"summary":"Create a bid group: win X of these N lots; the rest of your maximums are withdrawn automatically","operationId":"POSTApiV1MeGroups","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"want":{"description":"integer"},"items":{"description":"[{ lotId, max }]"}}}}}}}},"/api/v1/me/groups/{id}":{"delete":{"tags":["Bidding"],"summary":"Cancel a bid group and withdraw its remaining maximums","operationId":"DELETEApiV1MeGroupsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/searches":{"get":{"tags":["Account"],"summary":"Saved searches","operationId":"GETApiV1MeSearches","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"post":{"tags":["Account"],"summary":"Save a search; you are notified when a matching lot opens","operationId":"POSTApiV1MeSearches","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"query":{"description":"object"}}}}}}}},"/api/v1/me/searches/{id}":{"delete":{"tags":["Account"],"summary":"Delete a saved search","operationId":"DELETEApiV1MeSearchesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/orders/{id}/invoices":{"get":{"tags":["Orders"],"summary":"Invoices of an order (buyer invoice, seller commission invoice, rectifying invoices)","operationId":"GETApiV1OrdersIdInvoices","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/export":{"get":{"tags":["Account"],"summary":"GDPR: download all the data held about you (JSON)","operationId":"GETApiV1MeExport","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/legal":{"get":{"tags":["Account"],"summary":"Legal pages in a language. English is the binding master; other languages are automatic translations (binding: false).","operationId":"GETApiV1Legal","parameters":[{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/admin/legal":{"put":{"tags":["Admin"],"summary":"Replace the English master text of the legal pages (translations are regenerated)","operationId":"PUTApiV1AdminLegal","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"pages":{"description":"{ terms: [[heading, paragraph…]…], auction, privacy, cookies, imprint }"}}}}}}},"delete":{"tags":["Admin"],"summary":"Back to the built-in legal templates","operationId":"DELETEApiV1AdminLegal","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/templates/invoice":{"get":{"tags":["Orders"],"summary":"The invoice template in use (null data = the built-in default)","operationId":"GETApiV1TemplatesInvoice","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/kyc":{"get":{"tags":["Account"],"summary":"Identity verification status","operationId":"GETApiV1MeKyc","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"post":{"tags":["Account"],"summary":"Submit identity documents (front, optional back, selfie) for review","operationId":"POSTApiV1MeKyc","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"docType":{"description":"id_card|passport|driving_licence|residence_permit"},"country":{"description":"ISO"},"fullName":{"description":"string"},"dob":{"description":"YYYY-MM-DD"},"consent":{"description":true},"files":{"description":"[{ kind: front|back|selfie|address, data: data URL }]"}}}}}}}},"/api/v1/me/kyc/stripe":{"post":{"tags":["Account"],"summary":"Start a Stripe Identity verification (document + selfie); returns the hosted URL","operationId":"POSTApiV1MeKycStripe","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/plans":{"get":{"tags":["Account"],"summary":"Account plans (view, Type 1, Type 2) for buyers and sellers: prices per period, commissions and what each allows","operationId":"GETApiV1Plans","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/plan":{"post":{"tags":["Account"],"summary":"Buy or renew a plan, paid from the wallet","operationId":"POSTApiV1MePlan","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"audience":{"description":"buyer|seller"},"tier":{"description":"view|type1|type2"},"period":{"description":"once|month|year"}}}}}}}},"/api/v1/me/plan/{audience}/renewal":{"delete":{"tags":["Account"],"summary":"Stop automatic renewal","operationId":"DELETEApiV1MePlanAudienceRenewal","parameters":[{"name":"audience","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/elite/accept":{"post":{"tags":["Account"],"summary":"Accept an Elite invitation link","operationId":"POSTApiV1EliteAccept","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"description":"string"}}}}}}}},"/api/v1/push/key":{"get":{"tags":["Account"],"summary":"Web Push (VAPID) public key, if push is enabled on this server","operationId":"GETApiV1PushKey","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/push":{"post":{"tags":["Account"],"summary":"Register this device for push notifications","operationId":"POSTApiV1MePush","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"description":"PushSubscription JSON"}}}}}}},"delete":{"tags":["Account"],"summary":"Stop push notifications on a device","operationId":"DELETEApiV1MePush","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"endpoint":{"description":"string"}}}}}}}},"/api/v1/me/deletion":{"get":{"tags":["Account"],"summary":"GDPR: what still prevents closing the account","operationId":"GETApiV1MeDeletion","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/me/payout-account":{"get":{"tags":["Selling"],"summary":"Where your payouts go: IBAN and/or Stripe Connect status","operationId":"GETApiV1MePayoutAccount","parameters":[{"name":"refresh","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]},"put":{"tags":["Selling"],"summary":"Set the IBAN for SEPA payouts","operationId":"PUTApiV1MePayoutAccount","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"iban":{"description":"string"},"bic":{"description":"string"},"holder":{"description":"string"}}}}}}}},"/api/v1/me/payout-account/stripe":{"post":{"tags":["Selling"],"summary":"Open Stripe Connect onboarding to receive payouts by Stripe","operationId":"POSTApiV1MePayoutAccountStripe","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/broker":{"get":{"tags":["Brokers"],"summary":"Broker workspace: clients, mandates, live bids, earnings","operationId":"GETApiV1Broker","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/broker/mandates":{"post":{"tags":["Brokers"],"summary":"Ask a client for a bidding mandate (the client must accept it)","operationId":"POSTApiV1BrokerMandates","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"clientEmail":{"description":"string"},"lotId":{"description":"string?"},"maxAmount":{"description":"integer"},"feePct":{"description":"number"},"days":{"description":"integer"},"note":{"description":"string"}}}}}}}},"/api/v1/broker/bids":{"post":{"tags":["Brokers"],"summary":"Bid, buy now, accept a Dutch price or register a deposit on behalf of a client","operationId":"POSTApiV1BrokerBids","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"lotId":{"description":"string"},"clientId":{"description":"string"},"action":{"description":"bid|buy_now|accept|register"},"amount":{"description":"integer"},"type":{"description":"max|single"}}}}}}}},"/api/v1/me/mandates":{"get":{"tags":["Brokers"],"summary":"Mandates brokers asked you for","operationId":"GETApiV1MeMandates","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/mandates/{id}/{decision}":{"post":{"tags":["Brokers"],"summary":"Accept, decline or revoke a mandate","operationId":"POSTApiV1MandatesIdDecision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"decision","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/media":{"post":{"tags":["Selling"],"summary":"Upload a photo, video or document (base64 data URL); returns its URL","operationId":"POSTApiV1Media","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"description":"data:<mime>;base64,…"},"name":{"description":"string"}}}}}}}},"/api/v1/admin/stats":{"get":{"tags":["Admin"],"summary":"Platform KPIs","operationId":"GETApiV1AdminStats","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/users":{"get":{"tags":["Admin"],"summary":"Users","operationId":"GETApiV1AdminUsers","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"role","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/users/{id}":{"patch":{"tags":["Admin"],"summary":"Change role, status, KYC or bid limit","operationId":"PATCHApiV1AdminUsersId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"description":"buyer|seller|admin"},"status":{"description":"active|suspended"},"kyc":{"description":"none|pending|verified|rejected"},"bidLimit":{"description":"integer"}}}}}}}},"/api/v1/admin/lots":{"get":{"tags":["Admin"],"summary":"All lots, any status","operationId":"GETApiV1AdminLots","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/lots/{id}/cancel":{"post":{"tags":["Admin"],"summary":"Withdraw any open lot (bidders are told, deposits released); chargeFee: true charges the seller the configured cancellation fee","operationId":"POSTApiV1AdminLotsIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"},"chargeFee":{"description":"boolean"}}}}}}}},"/api/v1/admin/lots/{id}/approve":{"post":{"tags":["Admin"],"summary":"Approve a lot waiting for moderation","operationId":"POSTApiV1AdminLotsIdApprove","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/lots/{id}/reject":{"post":{"tags":["Admin"],"summary":"Reject a lot","operationId":"POSTApiV1AdminLotsIdReject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/admin/bids/{id}/void":{"post":{"tags":["Admin"],"summary":"Void a bid (shill bidding, error) and recompute the lot","operationId":"POSTApiV1AdminBidsIdVoid","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/admin/orders":{"get":{"tags":["Admin"],"summary":"All orders","operationId":"GETApiV1AdminOrders","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/orders/{id}/{action}":{"post":{"tags":["Admin"],"summary":"Order action: mark_paid | refund | payout | cancel","operationId":"POSTApiV1AdminOrdersIdAction","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/disputes/{id}/resolve":{"post":{"tags":["Admin"],"summary":"Resolve a dispute: refund or release","operationId":"POSTApiV1AdminDisputesIdResolve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"description":"refund|release"},"note":{"description":"string"}}}}}}}},"/api/v1/admin/plans":{"put":{"tags":["Admin"],"summary":"Plans, account fees and per-plan commissions","operationId":"PUTApiV1AdminPlans","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/users/{id}/plan":{"post":{"tags":["Admin"],"summary":"Grant a plan to a user (free, optional duration in days)","operationId":"POSTApiV1AdminUsersIdPlan","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"audience":{"description":"buyer|seller"},"tier":{"description":"string"},"days":{"description":"number?"}}}}}}}},"/api/v1/admin/elite":{"get":{"tags":["Admin"],"summary":"Elite auctions, invitations and their current rotating links","operationId":"GETApiV1AdminElite","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"patch":{"tags":["Admin"],"summary":"Elite settings (link rotation hours)","operationId":"PATCHApiV1AdminElite","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rotateHours":{"description":"number"}}}}}}}},"/api/v1/admin/elite/invites":{"post":{"tags":["Admin"],"summary":"Create an invitation to an Elite lot or sale (turns it Elite)","operationId":"POSTApiV1AdminEliteInvites","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"description":"lot|sale"},"id":{"description":"string"},"email":{"description":"string?"},"maxUses":{"description":"number?"},"days":{"description":"number?"},"note":{"description":"string?"}}}}}}}},"/api/v1/admin/elite/invites/{id}/revoke":{"post":{"tags":["Admin"],"summary":"Revoke an invitation (accepted guests keep access unless removed)","operationId":"POSTApiV1AdminEliteInvitesIdRevoke","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/elite/invites/{id}/rotate":{"post":{"tags":["Admin"],"summary":"New secret: every link sent so far stops working","operationId":"POSTApiV1AdminEliteInvitesIdRotate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/elite/invites/{id}/guests/{userId}":{"delete":{"tags":["Admin"],"summary":"Remove a guest’s access","operationId":"DELETEApiV1AdminEliteInvitesIdGuestsUserId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/elite/invites/{id}/send":{"post":{"tags":["Admin"],"summary":"E-mail the current link to the invited address","operationId":"POSTApiV1AdminEliteInvitesIdSend","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/access/{kind}/{id}":{"put":{"tags":["Admin"],"summary":"Set a lot or sale to public, exclusive (Type 2 accounts) or elite (invitation)","operationId":"PUTApiV1AdminAccessKindId","parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"access":{"description":"public|exclusive|elite"}}}}}}}},"/api/v1/admin/invoices/annual":{"get":{"tags":["Admin"],"summary":"Yearly invoice report for the tax return: CSV of every invoice and totals per VAT rate","operationId":"GETApiV1AdminInvoicesAnnual","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/aeat/preview":{"get":{"tags":["Admin"],"summary":"The VERI*FACTU SOAP message that would be sent for the pending invoices (nothing is sent)","operationId":"GETApiV1AdminAeatPreview","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/aeat/submit":{"post":{"tags":["Admin"],"summary":"Send pending records to the AEAT now (only when switched on and a certificate is configured)","operationId":"POSTApiV1AdminAeatSubmit","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/templates/invoice":{"put":{"tags":["Admin"],"summary":"Upload the invoice template (.docx with {{placeholders}})","operationId":"PUTApiV1AdminTemplatesInvoice","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"data":{"description":"base64 .docx"}}}}}}},"delete":{"tags":["Admin"],"summary":"Back to the default invoice template","operationId":"DELETEApiV1AdminTemplatesInvoice","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/kyc":{"get":{"tags":["Admin"],"summary":"Identity verifications to review","operationId":"GETApiV1AdminKyc","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/kyc/{userId}/files/{i}":{"get":{"tags":["Admin"],"summary":"One identity document image (private, staff only)","operationId":"GETApiV1AdminKycUserIdFilesI","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}},{"name":"i","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/kyc/{userId}":{"post":{"tags":["Admin"],"summary":"Approve or reject an identity verification","operationId":"POSTApiV1AdminKycUserId","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"description":"approve|reject"},"reason":{"description":"string"}}}}}}}},"/api/v1/admin/settings":{"get":{"tags":["Admin"],"summary":"All settings","operationId":"GETApiV1AdminSettings","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"patch":{"tags":["Admin"],"summary":"Update fees, anti-sniping, increments, rules","operationId":"PATCHApiV1AdminSettings","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/fx":{"put":{"tags":["Admin"],"summary":"Set exchange rates manually","operationId":"PUTApiV1AdminFx","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"rates":{"description":"{ USD: 1.09, ... }"}}}}}}}},"/api/v1/admin/fx/refresh":{"post":{"tags":["Admin"],"summary":"Fetch reference rates from the European Central Bank","operationId":"POSTApiV1AdminFxRefresh","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/mail":{"get":{"tags":["Admin"],"summary":"Recent outgoing e-mail and SMTP status","operationId":"GETApiV1AdminMail","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/invoices":{"get":{"tags":["Admin"],"summary":"Invoices issued (buyer, seller commission, rectifying), with chain verification","operationId":"GETApiV1AdminInvoices","parameters":[{"name":"series","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/invoices/export":{"get":{"tags":["Admin"],"summary":"Accounting export (CSV) or Verifactu registry records (JSON)","operationId":"GETApiV1AdminInvoicesExport","parameters":[{"name":"format","in":"query","required":false,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string"}},{"name":"to","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/payouts":{"get":{"tags":["Admin"],"summary":"Payouts due (sellers, brokers, wallet withdrawals), pending refunds and flagged crypto payments","operationId":"GETApiV1AdminPayouts","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/payouts/pay":{"post":{"tags":["Admin"],"summary":"Pay selected payouts through Stripe Connect, or mark them as paid (after a bank transfer)","operationId":"POSTApiV1AdminPayoutsPay","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"description":"string[]"},"via":{"description":"stripe|manual"},"ref":{"description":"string"}}}}}}}},"/api/v1/admin/payouts/sepa":{"post":{"tags":["Admin"],"summary":"SEPA credit-transfer file (pain.001.001.03) for the selected payouts, to upload to your bank","operationId":"POSTApiV1AdminPayoutsSepa","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"keys":{"description":"string[]"}}}}}}}},"/api/v1/admin/refunds/{orderId}/{index}":{"post":{"tags":["Admin"],"summary":"Mark a bank or crypto refund as done (or retry a card refund)","operationId":"POSTApiV1AdminRefundsOrderIdIndex","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"string"}},{"name":"index","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"description":"done|retry"},"ref":{"description":"string"}}}}}}}},"/api/v1/admin/payments/{id}/resolve":{"post":{"tags":["Admin"],"summary":"Mark a flagged (under/over-paid) crypto payment as reviewed","operationId":"POSTApiV1AdminPaymentsIdResolve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/crypto-rates/refresh":{"post":{"tags":["Admin"],"summary":"Refresh BTC / ETH / USDC quotes (Kraken, fallback CoinGecko)","operationId":"POSTApiV1AdminCryptoRatesRefresh","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/payments":{"get":{"tags":["Admin"],"summary":"Payments, wallet totals and withdrawal requests","operationId":"GETApiV1AdminPayments","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/wallets/{userId}/adjust":{"post":{"tags":["Admin"],"summary":"Credit (bank transfer received) or debit a wallet","operationId":"POSTApiV1AdminWalletsUserIdAdjust","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"amount":{"description":"integer (+/-)"},"note":{"description":"string"}}}}}}}},"/api/v1/admin/withdrawals/{id}/{decision}":{"post":{"tags":["Admin"],"summary":"Approve (paid) or reject a withdrawal","operationId":"POSTApiV1AdminWithdrawalsIdDecision","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"decision","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/audit":{"get":{"tags":["Admin"],"summary":"Audit log","operationId":"GETApiV1AdminAudit","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/i18n":{"post":{"tags":["Admin"],"summary":"Upload translations.xlsx (base64) and hot-reload all languages","operationId":"POSTApiV1AdminI18n","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"description":"base64 xlsx"}}}}}}}},"/api/v1/admin/tenants":{"get":{"tags":["Admin"],"summary":"Partner tenants (white-label sites using the engine)","operationId":"GETApiV1AdminTenants","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"post":{"tags":["Admin"],"summary":"Create a site (tenant): a company with its own web, users, lots and brand","operationId":"POSTApiV1AdminTenants","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"brand":{"description":"string"},"domain":{"description":"string"},"webUrl":{"description":"https://…"},"includeCommon":{"description":"boolean (show the common catalogue too)"},"shareToCommon":{"description":"boolean (put its lots in the common catalogue)"},"revenueSharePct":{"description":"number"},"accent":{"description":"#rrggbb"},"logoUrl":{"description":"URL"},"supportEmail":{"description":"string"},"mailFrom":{"description":"\"Brand <no-reply@domain>\""}}}}}}}},"/api/v1/admin/tenants/{id}":{"patch":{"tags":["Admin"],"summary":"Change a site: brand, web address, catalogue sharing, active","operationId":"PATCHApiV1AdminTenantsId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/api-keys":{"get":{"tags":["Admin"],"summary":"API keys (secrets are never returned again)","operationId":"GETApiV1AdminApiKeys","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"post":{"tags":["Admin"],"summary":"Create an API key; the secret is shown once","operationId":"POSTApiV1AdminApiKeys","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"scopes":{"description":"string[]"},"tenantId":{"description":"string?"},"mode":{"description":"live | test"}}}}}}}},"/api/v1/admin/api-keys/{id}":{"patch":{"tags":["Admin"],"summary":"Change the name or the mode of a key (live | test: in test mode every answer carries the DEMO watermark and the no-legal-effect notice). Also for site keys (scope web)","operationId":"PATCHApiV1AdminApiKeysId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"description":"string"},"mode":{"description":"live | test"}}}}}}},"delete":{"tags":["Admin"],"summary":"Revoke an API key","operationId":"DELETEApiV1AdminApiKeysId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/webhooks":{"get":{"tags":["Admin"],"summary":"Webhook endpoints and recent deliveries","operationId":"GETApiV1AdminWebhooks","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"post":{"tags":["Admin"],"summary":"Register a webhook endpoint (HMAC-SHA256 signed)","operationId":"POSTApiV1AdminWebhooks","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"description":"https://…"},"events":{"description":"string[]"},"tenantId":{"description":"string?"}}}}}}}},"/api/v1/admin/webhooks/{id}":{"delete":{"tags":["Admin"],"summary":"Delete a webhook endpoint","operationId":"DELETEApiV1AdminWebhooksId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/webhooks/{id}/test":{"post":{"tags":["Admin"],"summary":"Send a signed test event","operationId":"POSTApiV1AdminWebhooksIdTest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["admin"]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/raffles/stats":{"get":{"tags":["Raffles"],"summary":"Figures of the raffles your site sees: how many per status, ending in 24/48 h, tickets sold, takings, prizes awarded and their value, charity raised, success rate and average sell-through","operationId":"GETApiV1RafflesStats","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/winners":{"get":{"tags":["Raffles"],"summary":"Recent winners (public page): prize, winning ticket, winner as first name + initial (once the prize was accepted), cash alternative, charity share","operationId":"GETApiV1RafflesWinners","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles":{"get":{"tags":["Raffles"],"summary":"Raffles (prize draws): open and upcoming by default. status = open | ending (open, closing within closingWithin hours, default 48) | closed | won | all | awaiting_signature | scheduled | drawing | drawn | completed | void | cancelled | sold_direct; sort = closing | newest | popular | price | progress; charity=true; minProgress = % sold","operationId":"GETApiV1Raffles","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}},{"name":"closingWithin","in":"query","required":false,"schema":{"type":"string"}},{"name":"category","in":"query","required":false,"schema":{"type":"string"}},{"name":"kind","in":"query","required":false,"schema":{"type":"string"}},{"name":"seller","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"maxTicketPrice","in":"query","required":false,"schema":{"type":"string"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string"}},{"name":"charity","in":"query","required":false,"schema":{"type":"string"}},{"name":"minProgress","in":"query","required":false,"schema":{"type":"string"}},{"name":"updatedSince","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RaffleList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}":{"get":{"tags":["Raffles"],"summary":"One raffle: prize, tickets sold and left, closing time, verifiable-draw commitment, contract summary, result; with your tickets when signed in (or ?bidder=ref with an API key)","operationId":"GETApiV1RafflesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Raffle"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}/stats":{"get":{"tags":["Raffles"],"summary":"Figures of one raffle without personal data: tickets per day, buyers, tickets per buyer (average, median, max), pace and projected sales at the close","operationId":"GETApiV1RafflesIdStats","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}/proof":{"get":{"tags":["Raffles"],"summary":"Audit proof for an interested party (ticket buyer, holder, gift recipient, winner or organizer): your tickets and their place in the hash chain, the contract fingerprint, signatures (qualified e-signature data), identities verified (yes/no, method), the draw with its public randomness, payments and events. Signed by the platform (Ed25519, key at /api/v1/proofs/key). With an API key: ?bidder=ref","operationId":"GETApiV1RafflesIdProof","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}},{"name":"giftToken","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/raffles/{id}/tickets/{entryId}/certificate":{"get":{"tags":["Raffles"],"summary":"Certificate of a ticket (or block): raffle, numbers, holder, purchase hash, result. format=html gives a printable page (with the DEMO watermark in test mode, in the language asked). With an API key: ?bidder=ref, or any ticket of your bidders","operationId":"GETApiV1RafflesIdTicketsEntryIdCertificate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"entryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/raffles/{id}/free-entry":{"post":{"tags":["Raffles"],"summary":"Free entry (when the raffle offers it, \"no purchase necessary\"): one free ticket per person and raffle, same odds as a bought one","operationId":"POSTApiV1RafflesIdFreeEntry","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"acceptTerms":{"description":"true"},"ageConfirmed":{"description":"true"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/tickets/{entryId}/gift":{"post":{"tags":["Raffles"],"summary":"Give (endorse) tickets you hold to someone by e-mail, before the draw or — a winning/alternate ticket not yet accepted — after it (then your identity must be verified). The recipient gets an e-mail with the raffle, the link and who invites them; they see it as guests and must sign in to accept. To claim a prize they must verify their identity. API keys: linkBase = your own page (the token is appended), sendEmail=false to send it yourself","operationId":"POSTApiV1RafflesIdTicketsEntryIdGift","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"entryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"description":"string"},"name":{"description":"string"},"message":{"description":"string"},"lang":{"description":"es|en|de|…"},"linkBase":{"description":"https://your.site/gift/ (optional)"},"sendEmail":{"description":"boolean (default true)"},"bidder":{"description":"{ ref } (API keys)"}}}}}}},"delete":{"tags":["Raffles"],"summary":"Withdraw a gift that was not accepted yet (the tickets stay yours)","operationId":"DELETEApiV1RafflesIdTicketsEntryIdGift","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"entryId","in":"path","required":true,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/raffle-gifts/{token}":{"get":{"tags":["Raffles"],"summary":"A gift seen from its link (guests too): raffle card, tickets, who sends it and their message, whether it can still be accepted","operationId":"GETApiV1RaffleGiftsToken","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffle-gifts/{token}/accept":{"post":{"tags":["Raffles"],"summary":"Accept a gift: the tickets become yours (sign-in required; adults only). If the ticket already won, you claim the prize with POST /raffles/{id}/accept after verifying your identity","operationId":"POSTApiV1RaffleGiftsTokenAccept","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"ageConfirmed":{"description":"true"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/me/raffle-limits":{"get":{"tags":["Raffles"],"summary":"Responsible play: your daily and monthly spending limits, what you spent, self-exclusion","operationId":"GETApiV1MeRaffleLimits","parameters":[{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"},"put":{"tags":["Raffles"],"summary":"Set limits (minor units of the base currency, 0 = none) or exclude yourself for N days. Lowering works at once; raising or removing waits 24 h; an exclusion cannot be shortened","operationId":"PUTApiV1MeRaffleLimits","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"daily":{"description":"integer"},"monthly":{"description":"integer"},"excludeDays":{"description":"integer"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/sign/resend":{"post":{"tags":["Raffles"],"summary":"Winner: send the e-signature request again (lost e-mail, error, declined by mistake)","operationId":"POSTApiV1RafflesIdSignResend","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/quote":{"get":{"tags":["Raffles"],"summary":"Price of N tickets (in the raffle currency and in the wallet currency) and whether they are still available. 4.2.1: buyerFee (service fee), total and, with provider, the payment cost paid by the buyer (paymentCost) and what is charged (charged)","operationId":"GETApiV1RafflesIdQuote","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"qty","in":"query","required":false,"schema":{"type":"string"}},{"name":"provider","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}/contract":{"get":{"tags":["Raffles"],"summary":"The standard electronic contract of the raffle (clauses and full text) in es, en or de, with its SHA-256 fingerprint. Buyers accept it with every purchase (acceptTerms: true); the master language is binding","operationId":"GETApiV1RafflesIdContract","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}/certificate":{"get":{"tags":["Raffles"],"summary":"Verifiable draw record: the chain of ticket purchases (SHA-256), the seed commitment, the revealed seed and the winner and alternates. Anyone can recompute it (algorithm in the answer)","operationId":"GETApiV1RafflesIdCertificate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-scope":"lots:read"}},"/api/v1/raffles/{id}/tickets":{"post":{"tags":["Raffles"],"summary":"Buy tickets with the wallet. With an API key, for one of your bidders (bidder.ref). 402 insufficient_funds → use /checkout. The buyer must accept the contract (acceptTerms) and confirm the minimum age once (ageConfirmed)","operationId":"POSTApiV1RafflesIdTickets","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPurchase"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"qty":{"description":"integer (a bundle size gets the bundle price)"},"acceptTerms":{"description":"true"},"ageConfirmed":{"description":"true (adults only, once per account)"},"contractHash":{"description":"string (optional: fails with 409 contract_changed if the terms changed)"},"giftTo":{"description":"{ email, name, message, lang, linkBase, sendEmail } (optional: buy as a gift)"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/checkout":{"post":{"tags":["Raffles"],"summary":"Pay tickets (or the direct purchase with purpose \"raffle_buy_now\") through a payment provider. The wallet balance is used first; when the payment completes the tickets are issued at once. If they sold out meanwhile, the money stays in the wallet","operationId":"POSTApiV1RafflesIdCheckout","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLink"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"qty":{"description":"integer"},"purpose":{"description":"raffle (default) | raffle_buy_now"},"provider":{"description":"stripe|btcpay|coinbase|bank|sim"},"acceptTerms":{"description":"true"},"ageConfirmed":{"description":"true"},"returnUrl":{"description":"URL"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/buy-now":{"post":{"tags":["Raffles"],"summary":"Buy the prize outright before the close (when the raffle has a buy-now price), paid from the wallet: the raffle ends and every ticket is refunded. 402 insufficient_funds → /checkout with purpose \"raffle_buy_now\"","operationId":"POSTApiV1RafflesIdBuyNow","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200},"description":"repeat a request safely: the same key (24 h) returns the first answer"}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"acceptTerms":{"description":"true"},"contractHash":{"description":"string"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/accept":{"post":{"tags":["Raffles"],"summary":"Winner: accept the prize (identity verified first). With qualified e-signature on (default in production) the answer has signature = \"pending\": the winner gets an e-mail from the signature provider (Skribble) and the deal moves on when it is signed (webhook raffle.accepted). choice = \"cash\" takes the cash alternative instead, when the raffle offers one (no notary, paid to the wallet). The notary gets a private link once signed","operationId":"POSTApiV1RafflesIdAccept","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"choice":{"description":"prize (default) | cash"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/decline":{"post":{"tags":["Raffles"],"summary":"Winner: give up the prize (it passes to the next alternate)","operationId":"POSTApiV1RafflesIdDecline","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/received":{"post":{"tags":["Raffles"],"summary":"Winner: confirm that the prize was handed over (releases the organizer's payout)","operationId":"POSTApiV1RafflesIdReceived","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/raffles/{id}/claims":{"post":{"tags":["Raffles"],"summary":"Open a claim (ticket holder, winner or organizer). The organizer's funds stay on hold until it is resolved","operationId":"POSTApiV1RafflesIdClaims","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"draw|not_delivered|not_as_described|contract|payment|other"},"message":{"description":"string"},"bidder":{"description":"{ ref } (API keys)"}}}}}}}},"/api/v1/me/raffles":{"get":{"tags":["Raffles"],"summary":"Raffles you have tickets in, won, bought outright or were an alternate of","operationId":"GETApiV1MeRaffles","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"session":[]}]}},"/api/v1/bidders/{ref}/raffles":{"get":{"tags":["Raffles"],"summary":"The raffles one of your bidders has tickets in or won","operationId":"GETApiV1BiddersRefRaffles","parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["bids:write"]},{"session":[]}],"x-scope":"bids:write"}},"/api/v1/seller/raffles/lots":{"get":{"tags":["Raffles"],"summary":"Your lots that can become a raffle prize (yours, not sold, without bids), each with the fields the form fills in (prefill). Create the raffle with prize.lotId: the lot is withdrawn from sale (status in_raffle) and comes back if the raffle is cancelled or void","operationId":"GETApiV1SellerRafflesLots","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"}},"/api/v1/seller/raffles/{id}/sign/resend":{"post":{"tags":["Raffles"],"summary":"Organizer: send the e-signature request of the contract again","operationId":"POSTApiV1SellerRafflesIdSignResend","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/seller/raffles/{id}/proof":{"get":{"tags":["Raffles"],"summary":"Organizer: the signed audit proof of your raffle (same as /raffles/{id}/proof)","operationId":"GETApiV1SellerRafflesIdProof","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/raffles/{id}/signed-contract":{"get":{"tags":["Raffles"],"summary":"The contract PDF signed with a qualified e-signature (party=seller|winner), for the organizer or the winner","operationId":"GETApiV1RafflesIdSignedContract","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"party","in":"query","required":false,"schema":{"type":"string"}},{"name":"bidder","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["orders:read"]},{"session":[]}],"x-scope":"orders:read"}},"/api/v1/seller/raffles":{"get":{"tags":["Raffles"],"summary":"Your raffles, every status, with takings, settlement, winner and claims","operationId":"GETApiV1SellerRaffles","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"},"post":{"tags":["Raffles"],"summary":"Create a raffle. Verified organizers publish at once; others wait for moderation. Publishing accepts the standard contract (acceptTerms)","operationId":"POSTApiV1SellerRaffles","parameters":[],"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Raffle"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"description":"{es,en,de} (optional with prize.lotId: taken from the lot)"},"description":{"description":"{es,en,de}"},"category":{"description":"string"},"currency":{"description":"EUR"},"ticketPrice":{"description":"integer (minor units)"},"totalTickets":{"description":"integer"},"minTickets":{"description":"integer (default: all)"},"maxPerBuyer":{"description":"integer (0 = no limit)"},"buyNow":{"description":"integer (optional)"},"opensAt":{"description":"epoch ms"},"closesAt":{"description":"epoch ms (or durationDays)"},"drawOnSoldOut":{"description":"boolean (default true)"},"bundles":{"description":"[{ qty, price }] ticket packs at a lower price (up to 6)"},"cashAlternative":{"description":"integer: cash the winner may take instead of the prize"},"charity":{"description":"{ name, url, iban, pct } share of the takings for a good cause"},"freeEntry":{"description":"boolean: one free ticket per person (no purchase necessary)"},"undersold":{"description":"{ policy: refund|extend|cash, extendDays, cashPct }"},"prize":{"description":"{ kind: item|lot|vehicle|realestate|other, value, items: [{ title, qty }], lotId }"},"media":{"description":"[{ type, src }]"},"location":{"description":"string"},"property":{"description":"object (real estate)"},"specs":{"description":"{ key: value }"},"notary":{"description":"{ name, office, email, phone, jurisdiction }"},"contract":{"description":"{ acceptDays, formalizeDays, deliveryDays, penaltyPct, jurisdiction, costs: { notary, transferTax, registry, prizeTax, delivery: buyer|seller|shared|none }, conditions: {es,en,de} }"},"acceptTerms":{"description":"true"},"extRef":{"description":"string"}}}}}}}},"/api/v1/seller/raffles/{id}":{"patch":{"tags":["Raffles"],"summary":"Edit a raffle (only before the first ticket is sold)","operationId":"PATCHApiV1SellerRafflesId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/seller/raffles/{id}/cancel":{"get":{"tags":["Raffles"],"summary":"Can the raffle be cancelled now, and at what fee (tickets are always refunded in full)","operationId":"GETApiV1SellerRafflesIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:read"]},{"session":[]}],"x-scope":"lots:read"},"post":{"tags":["Raffles"],"summary":"Cancel a raffle before the close: every ticket is refunded and, if tickets were sold, the cancellation fee is charged","operationId":"POSTApiV1SellerRafflesIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"}}}}}}}},"/api/v1/seller/raffles/{id}/handed-over":{"post":{"tags":["Raffles"],"summary":"Organizer: record that the prize was handed over to the winner (after the formalization)","operationId":"POSTApiV1SellerRafflesIdHandedOver","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"description":"string"}}}}}}}},"/api/v1/seller/raffles/{id}/notary-link":{"post":{"tags":["Raffles"],"summary":"A new private link for the notary (sent by e-mail when the notary has one); the previous link stops working","operationId":"POSTApiV1SellerRafflesIdNotaryLink","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]},{"apiKey":["lots:write"]},{"session":[]}],"x-scope":"lots:write"}},"/api/v1/raffle-notary/{id}":{"get":{"tags":["Raffles"],"summary":"Notary: the case file of a raffle (contract, parties, signatures, draw record) through the private link","operationId":"GETApiV1RaffleNotaryId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"token","in":"query","required":false,"schema":{"type":"string"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/raffle-notary/{id}/formalize":{"post":{"tags":["Raffles"],"summary":"Notary: record the formalization (deed / electronic notarial contract number and date); the delivery period starts","operationId":"POSTApiV1RaffleNotaryIdFormalize","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"description":"string"},"protocol":{"description":"string"},"notary":{"description":"string"},"date":{"description":"YYYY-MM-DD"},"note":{"description":"string"}}}}}}}},"/api/v1/admin/raffles":{"get":{"tags":["Admin"],"summary":"Raffles: every status (status = pending | open | drawn | claims | attention…), figures and settings","operationId":"GETApiV1AdminRaffles","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/{id}/moderate":{"post":{"tags":["Admin"],"summary":"Approve or reject a raffle waiting for moderation","operationId":"POSTApiV1AdminRafflesIdModerate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"approve":{"description":"boolean"},"reason":{"description":"string"}}}}}}}},"/api/v1/admin/raffles/{id}/cancel":{"post":{"tags":["Admin"],"summary":"Cancel a raffle (also after the draw while the deal is not completed): every ticket and a direct purchase are refunded; chargeFee charges the organizer","operationId":"POSTApiV1AdminRafflesIdCancel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"description":"string"},"chargeFee":{"description":"boolean"}}}}}}}},"/api/v1/admin/raffles/{id}/draw":{"post":{"tags":["Admin"],"summary":"Close an open raffle now (draw, extension or void, as its rules say)","operationId":"POSTApiV1AdminRafflesIdDraw","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/{id}/formalize":{"post":{"tags":["Admin"],"summary":"Record the notarial formalization on behalf of the notary","operationId":"POSTApiV1AdminRafflesIdFormalize","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"protocol":{"description":"string"},"notary":{"description":"string"},"date":{"description":"YYYY-MM-DD"},"note":{"description":"string"}}}}}}}},"/api/v1/admin/raffles/{id}/complete":{"post":{"tags":["Admin"],"summary":"Close the deal and release the organizer's payout (when the winner does not confirm)","operationId":"POSTApiV1AdminRafflesIdComplete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"description":"string"}}}}}}}},"/api/v1/admin/raffles/{id}/notary-link":{"post":{"tags":["Admin"],"summary":"A new private link for the notary","operationId":"POSTApiV1AdminRafflesIdNotaryLink","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/{id}/claims/{claimId}":{"post":{"tags":["Admin"],"summary":"Resolve a claim: dismiss | refund_claimant | next_alternate | release | cancel_refund_all","operationId":"POSTApiV1AdminRafflesIdClaimsClaimId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"claimId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"description":"string"},"note":{"description":"string"},"chargeFee":{"description":"boolean"}}}}}}}},"/api/v1/admin/documents":{"get":{"tags":["Admin"],"summary":"The platform documents by audience (user, integrator, administrator, commercial), with the web's documents on GitHub","operationId":"GETApiV1AdminDocuments","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/documents/{name}":{"get":{"tags":["Admin"],"summary":"One document: Markdown as text (format=json gives { name, text }), Word / Excel / JSON as a download","operationId":"GETApiV1AdminDocumentsName","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"format","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/{id}/evidence":{"get":{"tags":["Admin"],"summary":"Full evidence file of a raffle for an auditor or a court (identities with provider references, qualified signatures, audit trail, draw). Not available to API keys","operationId":"GETApiV1AdminRafflesIdEvidence","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/fees":{"get":{"tags":["Admin"],"summary":"Raffle fee schedule: every fixed and variable amount for organizer and buyer, by type of object (10 groups), payment costs by method, category → group, history","operationId":"GETApiV1AdminRafflesFees","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"put":{"tags":["Admin"],"summary":"Replace the raffle fee schedule (the whole table, validated; the previous version stays in the history). New raffles use it; running ones keep the fees they were created with","operationId":"PUTApiV1AdminRafflesFees","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/fees.xlsx":{"get":{"tags":["Admin"],"summary":"The raffle fee schedule as Excel (generated from the current settings, with a takings → net calculator)","operationId":"GETApiV1AdminRafflesFeesXlsx","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/fees/import":{"post":{"tags":["Admin"],"summary":"Upload the edited fee Excel (or the JSON) in base64: validated and applied at once; the console reloads (settings event)","operationId":"POSTApiV1AdminRafflesFeesImport","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"description":"base64 xlsx or json"},"name":{"description":"file name"}}}}}}}},"/api/v1/admin/esign":{"get":{"tags":["Admin"],"summary":"E-signature: providers (configured, usable, levels), the routing rules in force and counters","operationId":"GETApiV1AdminEsign","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/esign/preview":{"post":{"tags":["Admin"],"summary":"E-signature: which provider and level would sign for these countries (propertyCountry, lawCountry, signerCountry)","operationId":"POSTApiV1AdminEsignPreview","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/settings":{"put":{"tags":["Admin"],"summary":"Raffle settings: commission, minimum age, alternates, cancellation fee, default rules when the minimum is not reached and the standard contract terms","operationId":"PUTApiV1AdminRafflesSettings","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}},"/api/v1/admin/raffles/demo":{"post":{"tags":["Admin"],"summary":"Create demonstration raffles (a car, a house, a lot…) to try the whole flow; they are marked as demo","operationId":"POSTApiV1AdminRafflesDemo","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"},"delete":{"tags":["Admin"],"summary":"Remove the demonstration raffles (open ones are cancelled and refunded first)","operationId":"DELETEApiV1AdminRafflesDemo","parameters":[],"responses":{"200":{"description":"OK"},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[{"siteKey":["web"],"userToken":[]}],"description":"Operator console only: the operator key (scopes web + admin) and a platform staff member's X-User-Token.","x-scope":"admin"}}},"webhooks":{"bid.placed":{"post":{"summary":"bid.placed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"lot.extended":{"post":{"summary":"lot.extended","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"lot.closed":{"post":{"summary":"lot.closed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"payment.completed":{"post":{"summary":"payment.completed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"payment.cancelled":{"post":{"summary":"payment.cancelled","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.created":{"post":{"summary":"order.created","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.paid":{"post":{"summary":"order.paid","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.shipped":{"post":{"summary":"order.shipped","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.delivered":{"post":{"summary":"order.delivered","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.completed":{"post":{"summary":"order.completed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.disputed":{"post":{"summary":"order.disputed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.refunded":{"post":{"summary":"order.refunded","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"order.cancelled_unpaid":{"post":{"summary":"order.cancelled_unpaid","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.created":{"post":{"summary":"raffle.created","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.opened":{"post":{"summary":"raffle.opened","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.tickets_sold":{"post":{"summary":"raffle.tickets_sold","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.extended":{"post":{"summary":"raffle.extended","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.closed":{"post":{"summary":"raffle.closed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.accepted":{"post":{"summary":"raffle.accepted","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.alternate":{"post":{"summary":"raffle.alternate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.formalized":{"post":{"summary":"raffle.formalized","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.handed_over":{"post":{"summary":"raffle.handed_over","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.completed":{"post":{"summary":"raffle.completed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.cancelled":{"post":{"summary":"raffle.cancelled","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.claim_opened":{"post":{"summary":"raffle.claim_opened","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.claim_resolved":{"post":{"summary":"raffle.claim_resolved","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.overdue":{"post":{"summary":"raffle.overdue","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.failed":{"post":{"summary":"raffle.failed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.signed":{"post":{"summary":"raffle.signed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.awaiting_signature":{"post":{"summary":"raffle.awaiting_signature","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.drawing":{"post":{"summary":"raffle.drawing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"raffle.gift_accepted":{"post":{"summary":"raffle.gift_accepted","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.outbid":{"post":{"summary":"bidder.outbid","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.now_leading":{"post":{"summary":"bidder.now_leading","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.won":{"post":{"summary":"bidder.won","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.lost":{"post":{"summary":"bidder.lost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.ending_soon":{"post":{"summary":"bidder.ending_soon","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.deposit_held":{"post":{"summary":"bidder.deposit_held","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.deposit_released":{"post":{"summary":"bidder.deposit_released","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.deposit_forfeited":{"post":{"summary":"bidder.deposit_forfeited","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.payment_reminder":{"post":{"summary":"bidder.payment_reminder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.order_cancelled_unpaid":{"post":{"summary":"bidder.order_cancelled_unpaid","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.kyc_approved":{"post":{"summary":"bidder.kyc_approved","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.kyc_rejected":{"post":{"summary":"bidder.kyc_rejected","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.visit_confirmed":{"post":{"summary":"bidder.visit_confirmed","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.visit_cancelled":{"post":{"summary":"bidder.visit_cancelled","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.question_answered":{"post":{"summary":"bidder.question_answered","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.second_chance":{"post":{"summary":"bidder.second_chance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.payment_to_wallet":{"post":{"summary":"bidder.payment_to_wallet","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.withdrawal_paid":{"post":{"summary":"bidder.withdrawal_paid","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}},"bidder.withdrawal_rejected":{"post":{"summary":"bidder.withdrawal_rejected","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"any 2xx within 10 s; otherwise retried for about a day"}}}}}}