Auction API
Auctions provide competitive bidding functionality where the highest bidder wins.Get Auction
Retrieve auction details and current status.GET /api/v1/auctions/:auctionId
Authentication
- Publishable key required
- Consumer authentication not required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 404 | Auction not found | The auction ID does not exist |
Place Bid
Place a bid on an auction.POST /api/v1/auctions/:auctionId/bid
Authentication
- Publishable key required
- Consumer authentication required
Headers
| Header | Required | Description |
|---|---|---|
X-Fingerprint | Recommended | Device fingerprint for bot mitigation |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Request Body
Response
Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | Consumer ID is required | Missing consumer authentication |
| 400 | Auction is closed | Auction has ended |
| 400 | Bid must be higher than current bid | Bid amount too low |
| 400 | Bid must meet minimum increment | Increment requirement not met |
| 404 | Auction not found | The auction ID does not exist |
| 423 | Auction is not open yet | Auction opens in the future |
Special Headers on Error
| Header | Value | Description |
|---|---|---|
Retry-After | ISO timestamp | When to retry (for 423) |
X-Fingerprint-Error | true | Fingerprint validation failed |
Get Bid Status
Get the current consumer’s bid status.GET /api/v1/auctions/:auctionId/status
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Response
Example
Get Highest Bid
Get the current highest bid amount.GET /api/v1/auctions/:auctionId/highest-bid
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Response
Example
Get Bid History
Get the consumer’s own bid history.GET /api/v1/auctions/:auctionId/bids/history
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 10 | Maximum number of bids to return |
Response
Example
Get All Bids
Get all bids for the auction (requires authentication).GET /api/v1/auctions/:auctionId/bids
Authentication
- Publishable key required
- Consumer authentication required
Path Parameters
| Parameter | Type | Description |
|---|---|---|
auctionId | string | The auction ID |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Maximum number of bids to return |
Response
Returns an array ofBidHistoryItem objects (consumer IDs may be anonymized).
Example
Bidder Statuses
| Status | Description |
|---|---|
ACTIVE | Consumer has placed bids but is not currently winning |
OUTBID | Consumer’s bid has been exceeded by another bidder |
WINNING | Consumer currently has the highest bid |
WON | Consumer won the auction (after settlement) |
LOST | Consumer did not win the auction (after settlement) |
Auction Lifecycle
- Pending: Auction created but not yet open
- Open: Bidding is active
- Closed: Bidding has ended, awaiting settlement
- Settled: Winners determined, payment tokens issued