End listing early
This endpoint can be used to end your listing early which can be useful for end to end testing.
This endpoint will only work in our test environment.
POST
/v1/testing/set-auction-end-time
curl \
--request POST 'https://api.dealerauction.co.uk/v1/testing/set-auction-end-time' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"listingId":"string","stockId":"string","endTime":"2025-05-04T09:42:00Z"}'
Request examples
{
"listingId": "string",
"stockId": "string",
"endTime": "2025-05-04T09:42:00Z"
}
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"
}