Search for stock items
If no search parameters are specified then no results will be returned. Search results are returned in paginated format.
More information on stock is available here
Query parameters
-
You will only be able to filter using your own customer ids
-
stockId array[string]
-
vrm array[string]
-
externalStockId array[string]
-
externalVendorId array[string]
-
deleted boolean
-
pageNumber integer(int32)
Default value is
1
. -
pageSize integer(int32)
Default value is
100
.
GET
/v1/stock
curl \
-X GET https://api.dealerauction.co.uk/v1/stock
Response examples (200)
{
"stockItems": [
{
"id": "a10ab562-c0cd-4072-88eb-4115811f5aa1",
"publicReference": 202304198054016,
"customerId": 123456,
"lifecycleState": "FORECOURT",
"externalStockId": "string",
"externalVendorId": "string",
"vrm": "AB17ABC",
"vin": "AAAAA81KLJU982170",
"createDate": "2023-04-19T11:07:18.883Z",
"availableUntil": "2025-05-04T09:42:00+00:00",
"advert": {
"state": "ACTIVE",
"auction": {
"type": "BID",
"startDate": "2023-04-19T11:07:18.883Z",
"endDate": "2023-04-21T11:07:18.883Z"
}
}
}
],
"paginator": {
"currentPage": 1,
"resultsPerPage": 10,
"totalResults": 23,
"lastPage": 3
}
}
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"
}