---
title: "Retrieve Vehicle Purchase Details"
method: GET
path: "/vehicles/{id}/purchase_detail"
tags: ["Vehicles"]
---

# Retrieve Vehicle Purchase Details

`GET /vehicles/{id}/purchase_detail`

## Request

- Base URL: `https://secure.fleetio.com/api`
- URL: `https://secure.fleetio.com/api/vehicles/{id}/purchase_detail`
- Auth: API key in header `Authorization` and API key in header `Account-Token`
- TypeScript: <https://skmtc.dev/fleetio/apis/fleetio-developer-api/docs/vehicles/:id/purchase_detail/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve the details of a Vehicle's Purchase Detail.

## Path parameters

- `id` string, required

## Response `200`

OK

- PurchaseDetail, nullable: A set of Purchase Details belonging to a Vehicle
  - `id` integer, required
  - `created_at` string, date-time: The date and time at which this record was created.
  - `updated_at` string, date-time: The date and time at which this record was most recently updated.
  - `comment` string, nullable, required: Any additional information about the purchase.
  - `date` string, nullable, required: The date of the purchase.
  - `meter_entry_value` number, float, nullable, required: The meter value at the time of purchase.
  - `meter_entry` VehicleMeterEntry, nullable: A Meter Entry
    - `id` integer
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `auto_voided_at` string, date-time, nullable: The date and time at which this Meter Entry was automatically voided. Formatted according to ISO-8601 in `User`'s local time.
    - `category` 'starting' | 'ending' | 'nightly' | 'manual', nullable: A category to describe the function of this Meter Entry.
    - `meter_type` 'secondary', nullable: Indicates whether or not this Meter is a secondary Meter.
    - `meterable_id` integer, nullable
    - `meterable_type` 'FuelEntry' | 'Issue' | 'PurchaseDetail' | 'ServiceEntry' | 'SubmittedInspectionItem' | 'VehicleAssignment' | 'WorkOrder', nullable: The type of the object with which this Meter Entry is associated.
    - `value` string: The current value of the meter.
    - `vehicle_id` integer, nullable
    - `void` boolean: Indicates whether or not this Meter Entry has been voided.
    - `type` 'GpsMeterEntry', nullable
    - `date` string, date: The date on which this Meter Entry was recorded. Formatted according to ISO-8601.
  - `vehicle_id` integer, nullable, required
  - `vehicle_name` string, nullable, required: The name of the `Vehicle`.
  - `vendor_id` integer, nullable, required
  - `vendor_name` string, nullable, required: The name of the `Vendor`.
  - `warranty_expiration_date` string, nullable, required: The expiration date of the warranty, if applicable.
  - `warranty_expiration_meter_value` integer, nullable, required: The meter value at which the warranty would expire, if applicable.
  - `price` number, float, nullable, required: The price of the `Vehicle`.
  - `custom_fields` CustomFields, nullable, required: *Full details on working with Custom Fields [here](/docs/overview/custom-fields).

## Other responses

- `401`: Request could not be authenticated
- `403`: Insufficient permission to perform this operation
- `404`: The requested resource could not be located
- `500`: Something unexpected happened

---

[API](https://skmtc.dev/fleetio/apis/fleetio-developer-api.md) - [All operations](https://skmtc.dev/fleetio/apis/fleetio-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fleetio/apis/fleetio-developer-api/revisions/49558d744bd7?raw)
