<!-- dev-portal
method: GET
title: Trip
path: /v1/vehicle/:vin/trip
-->

<div style="background-color:#fff3cd; border-left:6px solid #ffeeba; padding:16px; margin-bottom:24px;">
<strong>Note:</strong> The API listed on this page will be deprecated soon and will no longer receive updates or support. Please refer to the <a href="../../NEW Ford Telematics REST API V2/V2 Migration Guide"><u>Migration Guide</u></a> to learn about the new endpoints and how to transition your integration.
</div>

### GET /v1/vehicle/:vin/trip

Retrieves a paged list of Trip History for vehicle(s) in your fleet between a start time and end time. 

#### Request Parameters

| Name       | Type    | Required | Description                                                                                                                           |
|------------|---------|----------|---------------------------------------------------------------------------------------------------------------------------------------|
| vin        | string  | Yes      | Vehicle Identification Number.                                                                                                        |
| start-time | string  | Yes      | ISO 8601 UTC timestamp representing the earliest time for which to return trip data. (inclusive)                                      |
| end-time   | string  | Yes      | ISO 8601 UTC timestamp representing the latest time for which to return trip data. (inclusive)                                        |
| page       | string  | No       | Page cursor.  On first request should be null, and on subsequent requests should be set from next_page value of response if not null. |
| page-size  | integer | No       | Page size of limit.  If null, default is 500, maximum is 1000.                                                                        |

#### Response

| Name          | Type                                         | Description                                                                        |
|---------------|----------------------------------------------|------------------------------------------------------------------------------------|
| page          | string                                       | Current page cursor.                                                               |
| next_page     | string                                       | Page cursor that can be used to fetch next page if available; Otherwise, null.     |
| previous_page | string                                       | Page cursor that can be used to fetch previous page if available; Otherwise, null. |
| page_size     | integer                                      | Page size requested.                                                               |
| page_count    | integer                                      | Number vehicles returned for this page.                                            | vin           | string                                                         | Vehicle Identification Number.
| vehicle_name  | string                                       | Custom name assigned to the vehicle.                                               |
| start_time    | string                                       | Request start given in ISO 8601 UTC timestamp (inclusive).                         |
| end_time      | string                                       | Request end given in ISO 8601 UTC timestamp (inclusive).                           |
| trips         | Array[[TripSummary](../Schemas#tripsummary)] | List of trip summaries for a vehicle.   Will return empty list if no trips found.  |

##### Response Codes

| Name | Description                                                                                                                                 |
|------|---------------------------------------------------------------------------------------------------------------------------------------------|
| 200  | Ok.                                                                                                                                         |

#### Example

```bash
curl -X GET -H "Authorization: \"Bearer ${AUTH_TOKEN}\"" "https://${HOST}/vehicle-status-api/v1/vehicle/${VIN}/trip?start-time=2023-01-01T00:00:00Z&endTime=2023-02-01T00:00:00Z"

{
    "vin": "1FMEU111111111111",
    "vehicle_name": "My New Vehicle",
    "start_time": "2023-01-01T00:00:00Z",
    "end_time": "2023-02-01T00:00:00Z",
    "page": "MA==",
    "next_page": "MQ==",
    "previous_page": null,
    "page_size": 500,
    "page_count": 1,
    "trips": [
        {
            "trip_start_time": "2023-10-02T00:00:00Z",
            "start_position": {
                "latitude": -46.93843,
                "longitude": 75.98473
            },
            "start_odometer": 216.0,
            "trip_end_time": "2023-10-02T01:00:00Z",
            "end_position": {
                "latitude": -46.93843,
                "longitude": 75.98473
            },
            "end_odometer": 241.0,
            "trip_distance": 42.0
        }
    ]
}
```
