---
title: "Gets a segment plan details"
method: GET
path: "/shipments/v4/plans/{shipmentPlanId}/{segmentPlanId}"
tags: ["Shipments"]
---

# Gets a segment plan details

`GET /shipments/v4/plans/{shipmentPlanId}/{segmentPlanId}`

Gets details of a segment plan identified by the `segmentPlanId`.

## Response `200`

Success.

The segment plan information was returned

- object — Segment plan details
  - `description` string — Description of the segment
  - `destination` string — Destination location of this segment
  - `durationS` integer — Segment duration in seconds.
  - `name` string — Name of the segment
  - `origin` string — Origin location of this segment
  - `segmentPlanId` string — Segment plan ID
  - `trackingId` string — This is a unique ID associated with the device data in HERE Tracking. For physical devices the `trackingId` gets assigned to a device when the device is claimed by a user, and for virtual devices it is an external device ID along with the device project `appId`.
  - `transportMode` 'car' | 'truck' | 'sea' | 'air' | 'undefined' — Transport mode of the segment

## Other responses

- `400` — Bad request The request object is in an incorrect format or has values that are invalid or out of range. If available, further error details are provided in the response body.
- `401` — Unauthorized The request did not provide correct authentication details
- `403` — Forbidden The account does not have the correct privileges
- `404` — Not Found The specified resource was not found

---

[API](https://skmtc.net/here/apis/tracking.md) · [All operations](https://skmtc.net/here/apis/tracking/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/here/tracking/versions/efa162f7023c/schema)
