GET Vehicles

Gets all Pool cars for this account.
See Employee to get Employee-owned cars.


Response body formats

A GetVehiclesResponse containing all the Vehicles that are pool cars.

application/json, text/json

Sample:
{
  "List": [
    {
      "Id": 1,
      "Make": "sample string 2",
      "Model": "sample string 3",
      "Registration": "sample string 4",
      "UnitOfMeasure": 0,
      "FuelType": 5,
      "EngineSize": 6,
      "IsActive": true,
      "IsExemptFromHomeToLocationMileage": true,
      "CarUsageStartDate": "2025-01-26T07:16:10.5791454+00:00",
      "CarUsageEndDate": "2025-01-26T07:16:10.5791454+00:00",
      "FinancialYearId": 1,
      "MileageCategoryIds": [
        1,
        2,
        3
      ],
      "OdometerReadings": {
        "OdometerReadingRequired": true,
        "StartOdometerReading": 2,
        "EndOdometerReading": 3,
        "OdometerReadingList": [
          1,
          2,
          3
        ]
      },
      "Approved": true,
      "EmployeeId": 1,
      "PoolCarUsers": [
        1,
        2,
        3
      ],
      "UserDefined": null,
      "VehicleTypeId": 0,
      "VehicleDescription": "sample string 10",
      "IsPoolVehicle": true,
      "PreviousVehicleId": 12,
      "UnapprovedVehicleCount": 13,
      "TaxExpiry": "sample string 14",
      "IsTaxValid": true,
      "MotExpiry": "sample string 16",
      "IsMotValid": true,
      "MotStart": "sample string 18"
    },
    {
      "Id": 1,
      "Make": "sample string 2",
      "Model": "sample string 3",
      "Registration": "sample string 4",
      "UnitOfMeasure": 0,
      "FuelType": 5,
      "EngineSize": 6,
      "IsActive": true,
      "IsExemptFromHomeToLocationMileage": true,
      "CarUsageStartDate": "2025-01-26T07:16:10.5791454+00:00",
      "CarUsageEndDate": "2025-01-26T07:16:10.5791454+00:00",
      "FinancialYearId": 1,
      "MileageCategoryIds": [
        1,
        2,
        3
      ],
      "OdometerReadings": {
        "OdometerReadingRequired": true,
        "StartOdometerReading": 2,
        "EndOdometerReading": 3,
        "OdometerReadingList": [
          1,
          2,
          3
        ]
      },
      "Approved": true,
      "EmployeeId": 1,
      "PoolCarUsers": [
        1,
        2,
        3
      ],
      "UserDefined": null,
      "VehicleTypeId": 0,
      "VehicleDescription": "sample string 10",
      "IsPoolVehicle": true,
      "PreviousVehicleId": 12,
      "UnapprovedVehicleCount": 13,
      "TaxExpiry": "sample string 14",
      "IsTaxValid": true,
      "MotExpiry": "sample string 16",
      "IsMotValid": true,
      "MotStart": "sample string 18"
    },
    {
      "Id": 1,
      "Make": "sample string 2",
      "Model": "sample string 3",
      "Registration": "sample string 4",
      "UnitOfMeasure": 0,
      "FuelType": 5,
      "EngineSize": 6,
      "IsActive": true,
      "IsExemptFromHomeToLocationMileage": true,
      "CarUsageStartDate": "2025-01-26T07:16:10.5791454+00:00",
      "CarUsageEndDate": "2025-01-26T07:16:10.5791454+00:00",
      "FinancialYearId": 1,
      "MileageCategoryIds": [
        1,
        2,
        3
      ],
      "OdometerReadings": {
        "OdometerReadingRequired": true,
        "StartOdometerReading": 2,
        "EndOdometerReading": 3,
        "OdometerReadingList": [
          1,
          2,
          3
        ]
      },
      "Approved": true,
      "EmployeeId": 1,
      "PoolCarUsers": [
        1,
        2,
        3
      ],
      "UserDefined": null,
      "VehicleTypeId": 0,
      "VehicleDescription": "sample string 10",
      "IsPoolVehicle": true,
      "PreviousVehicleId": 12,
      "UnapprovedVehicleCount": 13,
      "TaxExpiry": "sample string 14",
      "IsTaxValid": true,
      "MotExpiry": "sample string 16",
      "IsMotValid": true,
      "MotStart": "sample string 18"
    }
  ],
  "ResponseInformation": {
    "Errors": [
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      },
      {
        "ErrorCode": "sample string 1",
        "Message": "sample string 2"
      }
    ],
    "Status": 0,
    "Links": [
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      },
      {
        "Rel": "sample string 1",
        "Href": "sample string 2",
        "Title": "sample string 3",
        "IsTemplated": true
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetVehiclesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
  <ResponseInformation xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <Errors>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
      <ApiErrorDetail>
        <ErrorCode>sample string 1</ErrorCode>
        <Message>sample string 2</Message>
      </ApiErrorDetail>
    </Errors>
    <Links>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
      <Link>
        <Href>sample string 2</Href>
        <IsTemplated>true</IsTemplated>
        <Rel>sample string 1</Rel>
        <Title>sample string 3</Title>
      </Link>
    </Links>
    <Status>Failure</Status>
  </ResponseInformation>
  <List xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
    <d2p1:Vehicle>
      <d2p1:Approved>true</d2p1:Approved>
      <d2p1:CarUsageEndDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageEndDate>
      <d2p1:CarUsageStartDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageStartDate>
      <d2p1:EmployeeId>1</d2p1:EmployeeId>
      <d2p1:EngineSize>6</d2p1:EngineSize>
      <d2p1:FinancialYearId>1</d2p1:FinancialYearId>
      <d2p1:FuelType>5</d2p1:FuelType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsExemptFromHomeToLocationMileage>true</d2p1:IsExemptFromHomeToLocationMileage>
      <d2p1:IsMotValid>true</d2p1:IsMotValid>
      <d2p1:IsPoolVehicle>true</d2p1:IsPoolVehicle>
      <d2p1:IsTaxValid>true</d2p1:IsTaxValid>
      <d2p1:Make>sample string 2</d2p1:Make>
      <d2p1:MileageCategoryIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:MileageCategoryIds>
      <d2p1:Model>sample string 3</d2p1:Model>
      <d2p1:MotExpiry>sample string 16</d2p1:MotExpiry>
      <d2p1:MotStart>sample string 18</d2p1:MotStart>
      <d2p1:OdometerReadings>
        <d2p1:EndOdometerReading>3</d2p1:EndOdometerReading>
        <d2p1:OdometerReadingRequired>true</d2p1:OdometerReadingRequired>
        <d2p1:StartOdometerReading>2</d2p1:StartOdometerReading>
      </d2p1:OdometerReadings>
      <d2p1:PoolCarUsers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:PoolCarUsers>
      <d2p1:PreviousVehicleId>12</d2p1:PreviousVehicleId>
      <d2p1:Registration>sample string 4</d2p1:Registration>
      <d2p1:TaxExpiry>sample string 14</d2p1:TaxExpiry>
      <d2p1:UnapprovedVehicleCount>13</d2p1:UnapprovedVehicleCount>
      <d2p1:UnitOfMeasure>Mile</d2p1:UnitOfMeasure>
      <d2p1:UserDefined i:nil="true" />
      <d2p1:VehicleDescription>sample string 10</d2p1:VehicleDescription>
      <d2p1:VehicleTypeId>None</d2p1:VehicleTypeId>
    </d2p1:Vehicle>
    <d2p1:Vehicle>
      <d2p1:Approved>true</d2p1:Approved>
      <d2p1:CarUsageEndDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageEndDate>
      <d2p1:CarUsageStartDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageStartDate>
      <d2p1:EmployeeId>1</d2p1:EmployeeId>
      <d2p1:EngineSize>6</d2p1:EngineSize>
      <d2p1:FinancialYearId>1</d2p1:FinancialYearId>
      <d2p1:FuelType>5</d2p1:FuelType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsExemptFromHomeToLocationMileage>true</d2p1:IsExemptFromHomeToLocationMileage>
      <d2p1:IsMotValid>true</d2p1:IsMotValid>
      <d2p1:IsPoolVehicle>true</d2p1:IsPoolVehicle>
      <d2p1:IsTaxValid>true</d2p1:IsTaxValid>
      <d2p1:Make>sample string 2</d2p1:Make>
      <d2p1:MileageCategoryIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:MileageCategoryIds>
      <d2p1:Model>sample string 3</d2p1:Model>
      <d2p1:MotExpiry>sample string 16</d2p1:MotExpiry>
      <d2p1:MotStart>sample string 18</d2p1:MotStart>
      <d2p1:OdometerReadings>
        <d2p1:EndOdometerReading>3</d2p1:EndOdometerReading>
        <d2p1:OdometerReadingRequired>true</d2p1:OdometerReadingRequired>
        <d2p1:StartOdometerReading>2</d2p1:StartOdometerReading>
      </d2p1:OdometerReadings>
      <d2p1:PoolCarUsers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:PoolCarUsers>
      <d2p1:PreviousVehicleId>12</d2p1:PreviousVehicleId>
      <d2p1:Registration>sample string 4</d2p1:Registration>
      <d2p1:TaxExpiry>sample string 14</d2p1:TaxExpiry>
      <d2p1:UnapprovedVehicleCount>13</d2p1:UnapprovedVehicleCount>
      <d2p1:UnitOfMeasure>Mile</d2p1:UnitOfMeasure>
      <d2p1:UserDefined i:nil="true" />
      <d2p1:VehicleDescription>sample string 10</d2p1:VehicleDescription>
      <d2p1:VehicleTypeId>None</d2p1:VehicleTypeId>
    </d2p1:Vehicle>
    <d2p1:Vehicle>
      <d2p1:Approved>true</d2p1:Approved>
      <d2p1:CarUsageEndDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageEndDate>
      <d2p1:CarUsageStartDate>2025-01-26T07:16:10.5791454+00:00</d2p1:CarUsageStartDate>
      <d2p1:EmployeeId>1</d2p1:EmployeeId>
      <d2p1:EngineSize>6</d2p1:EngineSize>
      <d2p1:FinancialYearId>1</d2p1:FinancialYearId>
      <d2p1:FuelType>5</d2p1:FuelType>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsActive>true</d2p1:IsActive>
      <d2p1:IsExemptFromHomeToLocationMileage>true</d2p1:IsExemptFromHomeToLocationMileage>
      <d2p1:IsMotValid>true</d2p1:IsMotValid>
      <d2p1:IsPoolVehicle>true</d2p1:IsPoolVehicle>
      <d2p1:IsTaxValid>true</d2p1:IsTaxValid>
      <d2p1:Make>sample string 2</d2p1:Make>
      <d2p1:MileageCategoryIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:MileageCategoryIds>
      <d2p1:Model>sample string 3</d2p1:Model>
      <d2p1:MotExpiry>sample string 16</d2p1:MotExpiry>
      <d2p1:MotStart>sample string 18</d2p1:MotStart>
      <d2p1:OdometerReadings>
        <d2p1:EndOdometerReading>3</d2p1:EndOdometerReading>
        <d2p1:OdometerReadingRequired>true</d2p1:OdometerReadingRequired>
        <d2p1:StartOdometerReading>2</d2p1:StartOdometerReading>
      </d2p1:OdometerReadings>
      <d2p1:PoolCarUsers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>2</d4p1:int>
        <d4p1:int>3</d4p1:int>
      </d2p1:PoolCarUsers>
      <d2p1:PreviousVehicleId>12</d2p1:PreviousVehicleId>
      <d2p1:Registration>sample string 4</d2p1:Registration>
      <d2p1:TaxExpiry>sample string 14</d2p1:TaxExpiry>
      <d2p1:UnapprovedVehicleCount>13</d2p1:UnapprovedVehicleCount>
      <d2p1:UnitOfMeasure>Mile</d2p1:UnitOfMeasure>
      <d2p1:UserDefined i:nil="true" />
      <d2p1:VehicleDescription>sample string 10</d2p1:VehicleDescription>
      <d2p1:VehicleTypeId>None</d2p1:VehicleTypeId>
    </d2p1:Vehicle>
  </List>
</GetVehiclesResponse>
URI parameters
=
Headers | Add header
: Delete
Body
Samples:
Status
Headers
Body