v1

latestOpenAPI 3.0.0HERE Documentation License2026-07-142162791.8 MB
Shipments

Creates a shipment

Creates a new shipment. A shipment consists of segments each representing a part of the logistics journey. A segment spans from a location to another and each segment may be assigned a different tracking device.

The segments of the shipment must form a continuous chain of locations, that is the origin of a segment must match the destination of a previous segment.

post/shipments/v4

Request body

OR

Example request

{
  "autoStart": true,
  "description": "A shipment consisting of four segments",
  "name": "From Portugal to Panama",
  "ruleIds": [
    "712dde2c-20e6-4903-82f1-0beb0dd9e4bd",
    "6d1da24b-5187-42ab-9eb5-1e43c61b6bae"
  ],
  "segments": [
    {
      "description": "From factory to port",
      "destination": "LOC-7b6b15cc-2307-4875-9f66-99deb5227e92",
      "name": "Truck transport",
      "origin": "LOC-54531862-f87a-4b70-99a4-0e8224a56be4",
      "trackingId": "HERE-540bb24b-0d57-4f8c-aeaf-6c91cd0aff8d",
      "transportMode": "truck"
    },
    {
      "description": "From port to another port",
      "destination": "LOC-a2dc2c70-cc3e-4fa5-ac77-4c63558e7f97",
      "name": "Marine transport",
      "origin": "LOC-7b6b15cc-2307-4875-9f66-99deb5227e92",
      "trackingId": "VRTR-8b9fd950-ce19-4aaf-98d5-840a76652658",
      "transportMode": "sea"
    },
    {
      "description": "From port to storage",
      "destination": "LOC-733deb91-efa3-41b6-9003-92845866b511",
      "name": "Truck transport",
      "origin": "LOC-a2dc2c70-cc3e-4fa5-ac77-4c63558e7f97",
      "trackingId": "HERE-540bb24b-0d57-4f8c-aeaf-6c91cd0aff8d",
      "transportMode": "truck"
    }
  ],
  "subShipment": false
}

Response

Created.

The shipment has been successfully created.

shipmentIdstring required

Shipment ID

Example response

{
  "shipmentId": "SHP-d306beb9-e110-450e-9f81-3db9de1ac001"
}