Mark as sold
Support selling of a "provisional" vehicle for specified price.
The sale will be attributed to the highest bidder. The buyer cannot be changed. An auction needs at least one bidder for a sale to be made. The sale cannot be undone
POST
/v1/listings/{listingId}/mark-as-sold
curl \
--request POST 'https://api.dealerauction.co.uk/v1/listings/{listingId}/mark-as-sold' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"salePrice":5000}'
Request examples
{
"salePrice": 5000
}
Response examples (200)
{
"id": "cf17d47a-3ba5-452d-a18f-f03225aa6c27",
"stockId": "a10ab562-c0cd-4072-88eb-4115811f5aa1",
"status": "IN_PROGRESS",
"auction": {
"created": "2023-04-19T11:07:18.883Z",
"startTime": "2023-04-19T11:07:18.883Z",
"endTime": "2023-04-19T11:07:18.883Z",
"cancelTime": "2023-04-21T11:07:18.883Z",
"bids": [
{
"value": 6000,
"time": "2023-04-20T11:07:18.883Z"
}
],
"buyNowPrice": 10000,
"reservePrice": 5000,
"reserveMet": true,
"currentPrice": 6000,
"type": "BID"
},
"negotiation": {
"askingPrice": 5000,
"price": 5000,
"buyer": {
"tradingName": "Test Dealer Cars UK",
"contacts": [
{
"type": "USER",
"title": "Mr",
"firstName": "Test",
"lastName": "User",
"email": "test.user@example.com",
"mobileNumber": "07777777777",
"landlineNumber": "01611111111"
}
],
"address": {
"line1": "string",
"line2": "string",
"town": "string",
"county": "string",
"postcode": "string"
},
"externalAccountIds": {
"providerName": "exampleID"
}
}
},
"sale": {
"buyer": {
"tradingName": "Test Dealer Cars UK",
"contacts": [
{
"type": "USER",
"title": "Mr",
"firstName": "Test",
"lastName": "User",
"email": "test.user@example.com",
"mobileNumber": "07777777777",
"landlineNumber": "01611111111"
}
],
"address": {
"line1": "string",
"line2": "string",
"town": "string",
"county": "string",
"postcode": "string"
},
"externalAccountIds": {
"providerName": "exampleID"
}
},
"price": 5000
}
}
Response examples (400)
{
"errorCode": "INVALID_STOCK_ITEM",
"errorMessage": "An error message",
"errors": [
{
"message": "An error has occurred",
"key": "string"
}
]
}
Response examples (403)
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}
Response examples (404)
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}
Response examples (409)
{
"errorCode": "STOCK_ALREADY_EXISTS",
"vrm": "AB17ABC"
}
Response examples (502)
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}