v1

latestOpenAPI 3.0.0HERE Documentation License2026-07-142162791.8 MB
Shipments

Updates a shipment details

Updates details of a shipment identified by the shipmentId. This is a partial update, meaning that only the provided fields will be updated, except when updating segments, the whole segments will be replaced fully.

Changing the status of the shipment affects the statuses of the segments. The following status changes are allowed:

  • pendingongoing
    • changes the status of the first segment to ongoing
  • pendingcancelled
    • changes the status of all segments to cancelled
  • ongoingcancelled
    • cancels the current ongoing segment and all the succeeding segments
  • ongoingcompleted
    • completes the current ongoing segment and cancels all the succeeding segments

Note: segments and autoStart can be updated via this API call only if the shipment is in pending state.

patch/shipments/v4/{shipmentId}

Request body

autoStartboolean

A boolean parameter defining whether the shipment starts upon exiting the first origin location.

descriptionstring

Description of the shipment

namestring

Name of the shipment

providedEtastring date-time

ETA for the shipment

providedEtdstring date-time

ETD for the shipment

ruleIdsstring[]

Array of ruleIds to associate with the shipment

status'pending' | 'ongoing' | 'completed' | 'cancelled'

Status of the shipment

subShipmentboolean

Flag telling if shipment is a subShipment.

Example request

{
  "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"
    }
  ]
}

Response

Successful (no content)

The shipment information was updated