V1Inventory
Get Related Vehicles
Get the related vehicles of a vehicle in the inventory. It will get vehicles with same model first, then vehicles with same vehicle type and brand, then same vehicle type (any brand) and finally any other vehicle until we have 12 vehicles. It will not include the vehicle itself in the list. Results will be sorted by createdAt in descending order.
curl -X GET "https://api.motorbase.io/api/v1/{organizationSlug}/inventory/string/related"[
{
"id": "string",
"brandId": "string",
"brandName": "string",
"modelId": "string",
"modelName": "string",
"vehicleTypeId": "string",
"vehicleTypeName": "string",
"versionId": "string",
"versionName": "string",
"year": -2147483648,
"mileage": -2147483648,
"interiorColorId": "string",
"interiorColorName": "string",
"exteriorColorId": "string",
"exteriorColorName": "string",
"price": "string",
"armorLevel": "string",
"transmission": "string",
"fuel": "string",
"engine": "string",
"condition": "string",
"images": [
"string"
],
"financingAvailable": true,
"specialOrder": true,
"priceOnRequest": true,
"agentId": "string",
"organizationId": "string",
"createdAt": "2019-08-24",
"updatedAt": "2019-08-24"
}
]{
"message": "Organization slug is missing"
}{
"message": "Unauthorized"
}{
"message": "Not Found"
}{
"success": false,
"error": {
"name": "ZodError",
"issues": [
{
"code": "invalid_type",
"path": [
"id"
],
"message": "Invalid input: expected string, received undefined"
}
]
}
}