---
title: "Lists all shipment plans"
method: GET
path: "/shipments/v4/plans"
tags: ["Shipments"]
---

# Lists all shipment plans

`GET /shipments/v4/plans`

Gets all shipment plans of the project.

## Query parameters

- `pageToken` string
- `limit` integer
- `name` string
- `shipmentPlanId` string
- `locationId` string
- `createdBefore` string, date-time
- `createdAfter` string, date-time
- `isSubShipment` boolean
- `sort` union
  - string
  - string[]

## Response `200`

Response body contains an array of shipment plan objects, `count` indicates the number of
returned items, `limit` indicates the requested maximum amount of records to be returned
and `pageToken` is the next page token if available.

- object
  - `count` integer, required — Number of items returned in the response
  - `items` object[], required
    - `autoStart` boolean — A boolean parameter defining whether the shipment starts upon exiting the first origin location.
    - `createdAt` string, date-time — Timestamp indicating when the shipment plan has been created
    - `description` string — Description of the shipment
    - `name` string — Name of the shipment
    - `ruleIds` string[] — Array of `ruleId`s to associate with the shipment
    - `segments` object[], required — Array of objects each defining the origin and destination of the segment
      - `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
    - `shipmentPlanId` string, required — Shipment plan ID
    - `subShipment` boolean — Flag telling if shipment is a subShipment.
  - `limit` integer, required — Maximum number of items as specified in request
  - `nextPageToken` string — Token to fetch the next page (if exists)
  - `total` integer, required — Total count of matching results

## 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

---

[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)
