---
title: "Trips of all vehicles of the fleet."
method: GET
path: "/fleets/{fid}/trips"
tags: ["Fleet"]
deprecated: true
---

# Trips of all vehicles of the fleet.

`GET /fleets/{fid}/trips`

## Request

- Base URL: `https://api-cert.groupe-psa.com/connectedcar/v3`
- URL: `https://api-cert.groupe-psa.com/connectedcar/v3/fleets/{fid}/trips`
- Auth: HTTP basic and API key in query parameter `client_id`
- TypeScript: <https://skmtc.dev/groupe-psa/apis/groupe-psa-connected-car-b2b-api/docs/fleets/:fid/trips/get.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

This method returns a list of all Trips. HyperLink (HAL) resolutions of resources within the returned collection are associate to vehicle.

## Path parameters

- `fid` string, required

## Query parameters

- `profile` 'fleet' | 'endUser'
- `timestamps` string[]
- `distance` string: value range
- `duration` string: value range
- `states` TripStateEnum[]
- `indexRange` string: Range index used to express the first (offset) and the last results index to retrieve. With the respect to the regex pattern '\d+(-\d*)?', the start of range is mandatory (use 0 for default). *Example:* * '0-9' : start=0, end=9 ==> offset=0 and number of items=10 * '5-' : start =5, no end ==> start at 5th to the end results.
- `pageSize` integer
- `pageToken` string

## Response `200`

A list of Trip

- Trips: List of a Trips response
  - `_links` TabLinks, required: [HAL](https://en.wikipedia.org/wiki/Hypertext_Application_Language#Convention) (Hypertext Application Language) link collection
    - `self` Link, required: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
      - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
      - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
      - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
      - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
      - `name` string
      - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
      - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
      - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
    - `first` Link, required: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
      - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
      - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
      - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
      - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
      - `name` string
      - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
      - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
      - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
    - `next` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
      - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
      - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
      - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
      - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
      - `name` string
      - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
      - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
      - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
    - `prev` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
      - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
      - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
      - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
      - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
      - `name` string
      - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
      - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
      - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
    - `last` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
      - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
      - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
      - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
      - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
      - `name` string
      - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
      - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
      - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
  - `total` integer, required
  - `totalPage` integer, required
  - `currentPage` integer, required
  - `_embedded` object, required
    - `trips` Trip[]
      - `createdAt` string, date-time, required: Date when the resource has been created.
      - `updatedAt` string, date-time: Date when the resource has been updated.
      - `_links` object, required
        - `self` Link, required: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
          - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
          - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
          - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
          - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
          - `name` string
          - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
          - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
          - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
        - `vehicle` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
          - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
          - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
          - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
          - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
          - `name` string
          - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
          - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
          - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
        - `waypoints` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
          - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
          - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
          - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
          - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
          - `name` string
          - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
          - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
          - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
        - `alerts` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
          - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
          - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
          - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
          - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
          - `name` string
          - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
          - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
          - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
        - `collisions` Link: A Link Object as defined by [JSONHAL#Link Object](https://tools.ietf.org/html/draft-kelly-json-hal-08#section-5).
          - `href` string, required: URL format follows [RFC 3986](https://tools.ietf.org/html/rfc3986) and usually looks like this ` scheme://host[:port][/Path] `
          - `templated` boolean: SHOULD be true when the Link Object's "href" property is an [URI Template](https://tools.ietf.org/html/rfc6570)
          - `type` string: a hint to indicate the media type expected when dereferencing the target resource.
          - `deprecation` string: indicates that the link is to be deprecated (i.e. removed) at a future date. Its value is a URL that SHOULD provide further information about the deprecation.
          - `name` string
          - `title` string: Its value is a string and is intended for labelling the link with a human-readable identifier (as defined by [RFC5988](https://tools.ietf.org/html/rfc5988)).
          - `profile` string: Its value is a string and is intended for indicating the language of the target resource (as defined by [RFC5988]).
          - `hreflang` string: Its value is a string which is a URI that hints about the profile (as defined by [I-D.wilde-profile-link](https://tools.ietf.org/html/draft-kelly-json-hal-08#ref-I-D.wilde-profile-link)) of the target resource.
      - `id` string, required: Identifier of a trip
      - `vin` string, required: Identifier of a vehicle. **Set when retrieving resource in batch mode**.
      - `startedAt` string, date-time: Date & Time when the trip started
      - `stoppedAt` string, date-time: Date & Time when the trip stopped
      - `startPosition` Position
        - `type` 'Feature', required
        - `geometry` Point, required: This object expresses a GeoJSON Point as specified by [rfc7946](https://tools.ietf.org/html/rfc7946#section-3.1.2).
          - `coordinates` number[], required: This is a simple 2 (or more) numbers vector used to define Geometry Point objects.
          - `type` 'Point', required
        - `properties` object, required
          - `createdAt` string, date-time, required: Date when the resource has been created.
          - `vin` string: Identifier of a vehicle. **Set when retrieving resource in batch mode**.
          - `heading` integer: Course angle expressed in degree.
          - `signalQuality` integer
          - `type` 'Estimated' | 'Acquire'
          - `fixStatus` '2D' | '3D': Fix status information is only returned when position type is set to Acquire. Horizontal & altitude position can be determined in 3D fix status mode where it is only horizontal position in 2D mode.
      - `stopPosition` Position
        - `type` 'Feature', required
        - `geometry` Point, required: This object expresses a GeoJSON Point as specified by [rfc7946](https://tools.ietf.org/html/rfc7946#section-3.1.2).
          - `coordinates` number[], required: This is a simple 2 (or more) numbers vector used to define Geometry Point objects.
          - `type` 'Point', required
        - `properties` object, required
          - `createdAt` string, date-time, required: Date when the resource has been created.
          - `vin` string: Identifier of a vehicle. **Set when retrieving resource in batch mode**.
          - `heading` integer: Course angle expressed in degree.
          - `signalQuality` integer
          - `type` 'Estimated' | 'Acquire'
          - `fixStatus` '2D' | '3D': Fix status information is only returned when position type is set to Acquire. Horizontal & altitude position can be determined in 3D fix status mode where it is only horizontal position in 2D mode.
      - `duration` integer: Duration in second of the trip
      - `distance` number, float: Distance in km of the trip
      - `startMileage` number, float: Vehicle mileage at the trip starting time.
      - `startEnergies` LiteEnergy[]: Vehicle energies levels and autonomies at the trip start time.
        - `type` 'Fuel' | 'Electric': Energy type present on the vehicle.
        - `subType` 'FossilEnergy' | 'ElectricEnergy' | 'Hydrogen': Energy subtype. This field is not mandatory and therefore if it is not present, it means that the resource consumer should only process the primary energy type. The enumeration of the subtypes is not exhaustive and may contain more elements depending on the evolution of the vehicles. The consumer of the data must take this constraint into account. The Fossil and Electric energy subtypes are only used to populate this subtype for the default Fuel and Electric types. * Electric and hydrogen type are considered as low emission vehicle whereas fuel(fossil) is associated to thermic energy
        - `level` number, float: Percentage of remaining energy (Fuel or electric) level. Expressed with a precision of 0.1%.
        - `autonomy` integer: Vehicle autonomy expressed in km for this energy class.
      - `endEnergies` LiteEnergy[]: Vehicle energies levels and autonomies at the trip end time.
        - `type` 'Fuel' | 'Electric': Energy type present on the vehicle.
        - `subType` 'FossilEnergy' | 'ElectricEnergy' | 'Hydrogen': Energy subtype. This field is not mandatory and therefore if it is not present, it means that the resource consumer should only process the primary energy type. The enumeration of the subtypes is not exhaustive and may contain more elements depending on the evolution of the vehicles. The consumer of the data must take this constraint into account. The Fossil and Electric energy subtypes are only used to populate this subtype for the default Fuel and Electric types. * Electric and hydrogen type are considered as low emission vehicle whereas fuel(fossil) is associated to thermic energy
        - `level` number, float: Percentage of remaining energy (Fuel or electric) level. Expressed with a precision of 0.1%.
        - `autonomy` integer: Vehicle autonomy expressed in km for this energy class.
      - `energyConsumptions` EnergyConsumption[]: The consumptions of different energies during this trip.
        - `consumption` number, float, required: Consumption value
        - `avgConsumption` number, float: Vehicle Average consumption per 100kms for specific enery type. For eletric in terms of Wh/100km or for fuel in terms of cl/100km respectively
        - `type` 'Fuel' | 'Electric', required: Energy type present on the vehicle.
        - `subType` 'FossilEnergy' | 'ElectricEnergy' | 'Hydrogen': Energy subtype. This field is not mandatory and therefore if it is not present, it means that the resource consumer should only process the primary energy type. The enumeration of the subtypes is not exhaustive and may contain more elements depending on the evolution of the vehicles. The consumer of the data must take this constraint into account. The Fossil and Electric energy subtypes are only used to populate this subtype for the default Fuel and Electric types. * Electric and hydrogen type are considered as low emission vehicle whereas fuel(fossil) is associated to thermic energy
      - `kinetic` object: Expresses the max and average vehicle speed during this trip.
        - `avgSpeed` number, float
        - `maxSpeed` number, float
      - `segments` TripSegment[]: The parts of the trip crossed for each type of propulsion.
        - `propulsion` 'Thermal' | 'Electric' | 'Hybrid': Propulsion during this trip segment.
        - `percent` number, float: Trip segment pecentage. _Unit: %_
        - `distance` number, float: Distance driven during this trip segment. _Unit: Km_
      - `done` boolean: Determines either this trip is finished or not.
      - `faults` object[]: Faults of this finished or in progress trip. This means that we lacked data from the vehicle to complete the trip description during one of its step (starting, progressing, or finishing).
        - `fault` 'Unstarted' | 'DataLacking' | 'Unfinished'
        - `cause` 'GeoPrivacy' | 'FullPrivacy' | 'Connection'

## Other responses

- `default` (unresolved $ref)

---

[API](https://skmtc.dev/groupe-psa/apis/groupe-psa-connected-car-b2b-api.md) - [All operations](https://skmtc.dev/groupe-psa/apis/groupe-psa-connected-car-b2b-api/llms.txt) - [OpenAPI document](https://skmtc.dev/groupe-psa/apis/groupe-psa-connected-car-b2b-api/revisions/023ff3e3fe51?raw)
