Motorbase
V1Inventory

Get Vehicle by id

Get the details of a vehicle in the inventory

GET
/api/v1/{organizationSlug}/inventory/{id}
AuthorizationBearer <token>

In: header

Scope: *

Path Parameters

idstring

Response Body

curl -X GET "https://api.motorbase.io/api/v1/{organizationSlug}/inventory/string"
{
  "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"
      }
    ]
  }
}
Get Vehicle by id