Create a stock item
Create a new stock item. Stock items are considered unique as combination of customerId
+ VRM
.
This means a VRM can only be added once per customer account.
When a stock item is created, we generate a unique identifier and return it to you as part of the stock response.
Body Required
-
Additional vendor specific identifiers. You can associate your own vendor and stock identifier to our stock record via these fields. Child fields are optional, however this top level field is mandatory.
Additional properties are allowed.
-
Our customer ID that has been assigned to you. Depending on account setup, you may have multiple customer account IDs assigned to you.
-
Write-off categories and insurance group values are based on industry standards.
More information is available here
Additional properties are allowed.
-
advert object
An advert portion of the stock item is not mandatory.
However, if there is no advert against the stock item then it will not be advertised and so will not be visible to customers browsing the DA platform.
Once the advert portion is added, it can never be removed, however the advert can be deactivated by patching its state.
Additional properties are allowed.
-
List of features. If you don't have any, just provide an empty list
-
conditionReportUrl string
An externally hosted condition report can be associated to the stock item. This report must be in PDF format. When a condition report is added to a stock item, it will be asynchronously downloaded. The report is then scanned for viruses before being uploaded to our CDN.
Maximum length is
500
. -
condition object
A block of data containing optional information on the condition of the vehicle. Empty values indicate no corresponding grading. Can contain a list of damage items that are displayed as a visual diagram on our platform. These are sometimes referred to as "splat" diagrams.
Additional properties are allowed.
-
videoUrl string
An externally hosted video URL that we will embed in our listing page. Currently we only support YouTube.
-
A list of image URLs that will be downloaded and then uploaded to our CDN. Images must be publicly accessible. We will require at least one image.
Images will be displayed on the advert in the order that they are given. If you wish to reorder the images then resubmit the URLs in the order you would like.
-
availableUntil string(date-time)
We will not attempt to sell the vehicle past this point in time. If an availableUntil is specified, auction time must end before or at this point. Any ongoing negotiations for provisional vehicles will also be abandoned past this point.
-
requestedNetwork string
The network that you would like the vehicle to be placed into.
Depending on your account configuration, there may be multiple networks available to you. If no network is specified, then we will choose the most suitable network for the vehicle.
-
advertiser object
Specifying an advertiser allows the sender to override default contact and location based information held against our customer record.
This is useful when the vehicle needs to be collected from an alternative location or be handled by an alternative contact.
Additional properties are allowed.
-
additionalData object
A collection of questions and answers and notes from consumers selling vehicles through Consumer Direct
Additional properties are NOT allowed.
curl \
-X POST https://api.dealerauction.co.uk/v1/stock \
-H "Content-Type: application/json" \
-d '{"metadata":{"externalStockId":"string","externalVendorId":"string"},"customerId":123456,"vehicle":{"vrm":"AB17ABC","category":"Car","mileage":51234,"yearOfManufacture":2018,"dateOfRegistration":"2018-06-01","ownershipCondition":"NEW","vin":"AAAAA81KLJU982170","make":"Citroen","model":"Saxo","derivative":1.5,"trim":"SX","bodyType":"Hatchback","fuelType":"Petrol","transmissionType":"Manual","driveTrain":"Front Wheel Drive","doors":3,"keys":2,"insuranceGroup":10,"insuranceSecurityCode":"U","v5CertificationSupplied":true,"colour":"Blue","engineNumber":"FY6H0409181","cylinders":2,"engineSize":{"unit":"LITRE","value":1200},"motExpiry":"2017-01-01","serviceHistory":"FULL_SERVICE_HISTORY","plate":17,"previousOwners":2,"exDemo":false,"stolen":false,"imported":false,"exported":false,"scrapped":false,"writeoffCategory":"C"},"advert":{"state":"ACTIVE","auction":{"type":"BID","lotId":12,"startingPrice":{"value":1500,"currency":"GBP"},"reservePrice":{"value":1500,"currency":"GBP"},"askingPrice":{"value":1500,"currency":"GBP"},"buyNowPrice":{"value":1500,"currency":"GBP"},"startDate":"2023-04-19T11:07:18.883Z","endDate":"2023-04-21T11:07:18.883Z"},"startDate":"2023-04-19T11:07:18.883Z","endDate":"2023-04-23T11:07:18.883Z","attentionGrabber":"This is a really great car","description":"Some information about a car.\n\nAnd some more information with a line break.","tradeVatStatus":"MARGINAL","externalUrl":"https://some-url.com/a-page"},"features":[{"description":"DAB Radio","standard":false,"category":"electronics"}],"conditionReportUrl":"https://your-domain.com/condition-report.pdf","condition":{"externalConditionGrade":"1","surecheckGrade":"BRONZE","damageItems":[{"zone":"WINDSCREEN","damageType":"BROKEN"}]},"videoUrl":"https://www.youtube.com/watch?v=yIQd2Ya0Ziw\u0026ab_channel=Calm","images":[{"url":"https://howtodrawforkids.com/wp-content/uploads/2022/01/9-cartoon-car-drawing-tutorial.jpg","tags":["string"]}],"availableUntil":"2025-05-04T09:42:00+00:00","requestedNetwork":"string","advertiser":{"address":{"address1":"Line1","address2":"Line2","town":"Manchester","county":"Manchester","postcode":"A Postcode","country":"United Kingdom","latLong":{"latitude":51.518562,"longitude":-0.143826}},"contact":{"email":"test.user@example.com","title":"Mr","firstName":"Test","lastName":"User","mobileNumber":"07222222222","landlineNumber":"01611111111"}},"additionalData":{"mechanical_fails_start":true,"mechanical_bad_gearbox":true,"mechanical_unusual_noise":true,"mechanical_veers":true,"mechanical_warning_light":true,"mechanical_exhaust_smoke":true,"mechanical_leaks":true,"mechanical_note":"string","electrical_aircon_not_cold":true,"electrical_dashboard_not_working":true,"electrical_speakers_not_working":true,"electrical_satnav_not_working":true,"electrical_note":"string","odour_smoke":true,"odour_pet":true,"odour_damp":true,"odour_note":"string","bodywork_repairs":true,"bodywork_repairs_note":"string","bodywork_issues":true,"bodywork_issues_note":"string","vehicle_modifications":true,"vehicle_modifications_note":"string","c2b_top_nav_journey":true}}'
{
"metadata": {
"externalStockId": "string",
"externalVendorId": "string"
},
"customerId": 123456,
"vehicle": {
"vrm": "AB17ABC",
"category": "Car",
"mileage": 51234,
"yearOfManufacture": 2018,
"dateOfRegistration": "2018-06-01",
"ownershipCondition": "NEW",
"vin": "AAAAA81KLJU982170",
"make": "Citroen",
"model": "Saxo",
"derivative": 1.5,
"trim": "SX",
"bodyType": "Hatchback",
"fuelType": "Petrol",
"transmissionType": "Manual",
"driveTrain": "Front Wheel Drive",
"doors": 3,
"keys": 2,
"insuranceGroup": 10,
"insuranceSecurityCode": "U",
"v5CertificationSupplied": true,
"colour": "Blue",
"engineNumber": "FY6H0409181",
"cylinders": 2,
"engineSize": {
"unit": "LITRE",
"value": 1200
},
"motExpiry": "2017-01-01",
"serviceHistory": "FULL_SERVICE_HISTORY",
"plate": 17,
"previousOwners": 2,
"exDemo": false,
"stolen": false,
"imported": false,
"exported": false,
"scrapped": false,
"writeoffCategory": "C"
},
"advert": {
"state": "ACTIVE",
"auction": {
"type": "BID",
"lotId": 12,
"startingPrice": {
"value": 1500,
"currency": "GBP"
},
"reservePrice": {
"value": 1500,
"currency": "GBP"
},
"askingPrice": {
"value": 1500,
"currency": "GBP"
},
"buyNowPrice": {
"value": 1500,
"currency": "GBP"
},
"startDate": "2023-04-19T11:07:18.883Z",
"endDate": "2023-04-21T11:07:18.883Z"
},
"startDate": "2023-04-19T11:07:18.883Z",
"endDate": "2023-04-23T11:07:18.883Z",
"attentionGrabber": "This is a really great car",
"description": "Some information about a car.\n\nAnd some more information with a line break.",
"tradeVatStatus": "MARGINAL",
"externalUrl": "https://some-url.com/a-page"
},
"features": [
{
"description": "DAB Radio",
"standard": false,
"category": "electronics"
}
],
"conditionReportUrl": "https://your-domain.com/condition-report.pdf",
"condition": {
"externalConditionGrade": "1",
"surecheckGrade": "BRONZE",
"damageItems": [
{
"zone": "WINDSCREEN",
"damageType": "BROKEN"
}
]
},
"videoUrl": "https://www.youtube.com/watch?v=yIQd2Ya0Ziw&ab_channel=Calm",
"images": [
{
"url": "https://howtodrawforkids.com/wp-content/uploads/2022/01/9-cartoon-car-drawing-tutorial.jpg",
"tags": [
"string"
]
}
],
"availableUntil": "2025-05-04T09:42:00+00:00",
"requestedNetwork": "string",
"advertiser": {
"address": {
"address1": "Line1",
"address2": "Line2",
"town": "Manchester",
"county": "Manchester",
"postcode": "A Postcode",
"country": "United Kingdom",
"latLong": {
"latitude": 51.518562,
"longitude": -0.143826
}
},
"contact": {
"email": "test.user@example.com",
"title": "Mr",
"firstName": "Test",
"lastName": "User",
"mobileNumber": "07222222222",
"landlineNumber": "01611111111"
}
},
"additionalData": {
"mechanical_fails_start": true,
"mechanical_bad_gearbox": true,
"mechanical_unusual_noise": true,
"mechanical_veers": true,
"mechanical_warning_light": true,
"mechanical_exhaust_smoke": true,
"mechanical_leaks": true,
"mechanical_note": "string",
"electrical_aircon_not_cold": true,
"electrical_dashboard_not_working": true,
"electrical_speakers_not_working": true,
"electrical_satnav_not_working": true,
"electrical_note": "string",
"odour_smoke": true,
"odour_pet": true,
"odour_damp": true,
"odour_note": "string",
"bodywork_repairs": true,
"bodywork_repairs_note": "string",
"bodywork_issues": true,
"bodywork_issues_note": "string",
"vehicle_modifications": true,
"vehicle_modifications_note": "string",
"c2b_top_nav_journey": true
}
}
{
"id": "a10ab562-c0cd-4072-88eb-4115811f5aa1",
"listingId": "cf17d47a-3ba5-452d-a18f-f03225aa6c27",
"createdDate": "2023-04-19T11:07:18.883Z",
"updatedDate": "2023-04-19T11:07:18.883Z",
"publicReference": 202304198054016,
"metadata": {
"externalStockId": "string",
"externalVendorId": "string"
},
"lifecycleState": "FORECOURT",
"customerId": 123456,
"vehicle": {
"vrm": "AB17ABC",
"category": "Car",
"mileage": 51234,
"yearOfManufacture": 2018,
"dateOfRegistration": "2018-06-01",
"ownershipCondition": "NEW",
"vin": "AAAAA81KLJU982170",
"make": "Citroen",
"model": "Saxo",
"derivative": 1.5,
"derivativeId": "4965f54cdaea4226acde95e0d99b1acf",
"trim": "SX",
"bodyType": "Hatchback",
"fuelType": "Petrol",
"transmissionType": "Manual",
"driveTrain": "Front Wheel Drive",
"doors": 3,
"keys": 2,
"insuranceGroup": 10,
"insuranceSecurityCode": "U",
"v5CertificationSupplied": true,
"colour": "Blue",
"engineNumber": "FY6H0409181",
"cylinders": 2,
"engineSize": {
"unit": "LITRE",
"value": 1200
},
"motExpiry": "2017-01-01",
"serviceHistory": "FULL_SERVICE_HISTORY",
"plate": 17,
"previousOwners": 2,
"exDemo": false,
"stolen": false,
"imported": false,
"exported": false,
"scrapped": false,
"writeoffCategory": "C"
},
"advert": {
"state": "ACTIVE",
"createdDate": "2023-04-19T11:07:18.883Z",
"updatedDate": "2023-04-19T11:07:18.883Z",
"auction": {
"type": "BID",
"lotId": 12,
"startingPrice": {
"value": 1500,
"currency": "GBP"
},
"reservePrice": {
"value": 1500,
"currency": "GBP"
},
"askingPrice": {
"value": 1500,
"currency": "GBP"
},
"buyNowPrice": {
"value": 1500,
"currency": "GBP"
},
"startDate": "2023-04-19T11:07:18.883Z",
"endDate": "2023-04-21T11:07:18.883Z"
},
"startDate": "2023-04-19T11:07:18.883Z",
"endDate": "2023-04-23T11:07:18.883Z",
"attentionGrabber": "This is a really great car",
"description": "Some information about a car.\n\nAnd some more information with a line break.",
"tradeVatStatus": "MARGINAL",
"externalUrl": "https://some-url.com/a-page"
},
"features": [
{
"description": "DAB Radio",
"standard": false,
"category": "electronics"
}
],
"conditionReportUrl": "https://your-domain.com/condition-report.pdf",
"condition": {
"externalConditionGrade": "1",
"surecheckGrade": "BRONZE",
"damageItems": [
{
"zone": "WINDSCREEN",
"damageType": "BROKEN"
}
]
},
"videoUrl": "https://www.youtube.com/watch?v=yIQd2Ya0Ziw&ab_channel=Calm",
"images": [
{
"url": "https://howtodrawforkids.com/wp-content/uploads/2022/01/9-cartoon-car-drawing-tutorial.jpg",
"platformUrl": "https://howtodrawforkids.com/wp-content/uploads/2022/01/9-cartoon-car-drawing-tutorial.jpg",
"uploaded": true,
"tags": [
"string"
]
}
],
"capTaxonomy": {
"id": "string",
"code": "string",
"make": "string",
"model": "string",
"variant": "string",
"derivative": "string"
},
"availableUntil": "2025-05-04T09:42:00+00:00",
"requestedNetwork": "string",
"advertiser": {
"address": {
"address1": "Line1",
"address2": "Line2",
"town": "Manchester",
"county": "Manchester",
"postcode": "A Postcode",
"country": "United Kingdom",
"latLong": {
"latitude": 51.518562,
"longitude": -0.143826
}
},
"contact": {
"email": "test.user@example.com",
"title": "Mr",
"firstName": "Test",
"lastName": "User",
"mobileNumber": "07222222222",
"landlineNumber": "01611111111"
}
},
"additionalData": {
"mechanical_fails_start": true,
"mechanical_bad_gearbox": true,
"mechanical_unusual_noise": true,
"mechanical_veers": true,
"mechanical_warning_light": true,
"mechanical_exhaust_smoke": true,
"mechanical_leaks": true,
"mechanical_note": "string",
"electrical_aircon_not_cold": true,
"electrical_dashboard_not_working": true,
"electrical_speakers_not_working": true,
"electrical_satnav_not_working": true,
"electrical_note": "string",
"odour_smoke": true,
"odour_pet": true,
"odour_damp": true,
"odour_note": "string",
"bodywork_repairs": true,
"bodywork_repairs_note": "string",
"bodywork_issues": true,
"bodywork_issues_note": "string",
"vehicle_modifications": true,
"vehicle_modifications_note": "string",
"c2b_top_nav_journey": true
}
}
{
"errorCode": "INVALID_STOCK_ITEM",
"errorMessage": "An error message",
"errors": [
{
"message": "An error has occurred",
"key": "string"
}
]
}
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}
{
"errorCode": "STOCK_ALREADY_EXISTS",
"vrm": "AB17ABC"
}
{
"errorCode": "SERVER_ERROR",
"errorMessage": "An unexpected error has occurred"
}