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 \
-X POST https://api.dealerauction.co.uk/v1/testing/set-auction-end-time \
-H "Content-Type: application/json" \
-d '{"listingId":"string","stockId":"string","endTime":"2025-05-04T09:42:00+00:00"}'
Request examples
{
"listingId": "string",
"stockId": "string",
"endTime": "2025-05-04T09:42:00+00:00"
}
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"
}