---
title: "Freight shipment updated"
method: POST
path: "freight-shipment.updated"
---

# Freight shipment updated

`POST freight-shipment.updated` (webhook)

When a Shipment is updated.

## Payload

- union
  - FreightShipmentsUpdatedFullWebhook
    - `connection_id` string, required
    - `data` FreightShipmentApiItemSchema, required
      - `id` string, required: The unique ID of the shipment.
      - `eta_date` string, date-time, nullable, required: The estimated arrival date of the shipment.
      - `created_date` string, date-time, required: The date the freight shipment was created.
      - `updated_date` string, date-time, required: The date the freight shipment was last updated.
      - `cost` number, nullable, required: The cost of the shipment.
      - `shipment_date` string, date-time, nullable, required: The date the shipment was sent from its origin.
      - `arrival_date` string, date-time, nullable, required: The actual date the shipment arrived at its destination.
      - `raw_status` string, nullable, required: The raw status of the shipment from the freight forwarder.
      - `status` 'pre_transit' | 'in_transit' | 'arrival_port' | 'en_route_to_destination' | 'final_destination', required: The status of the freight shipment. See the [freight shipment information](info) for more details.
      - `shipment_method` string, required: The mode by which the shipment was transported (e.g. air, ocean)
      - `external_system_url` string, nullable, required: URL link to the freight shipment in the external system (WMS/Freight etc).
      - `additional_fields` object, required: Integration-specific fields
      - `trackstar_created_date` string, date-time, required
      - `trackstar_updated_date` string, date-time, required
    - `event_type` 'freight-shipment.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` FreightShipmentsUpdatedPreviousAttributes, required
      - `id` string: The unique ID of the shipment.
      - `eta_date` string, date-time, nullable: The estimated arrival date of the shipment.
      - `created_date` string, date-time: The date the freight shipment was created.
      - `updated_date` string, date-time: The date the freight shipment was last updated.
      - `cost` number, nullable: The cost of the shipment.
      - `shipment_date` string, date-time, nullable: The date the shipment was sent from its origin.
      - `arrival_date` string, date-time, nullable: The actual date the shipment arrived at its destination.
      - `raw_status` string, nullable: The raw status of the shipment from the freight forwarder.
      - `status` 'pre_transit' | 'in_transit' | 'arrival_port' | 'en_route_to_destination' | 'final_destination': The status of the freight shipment. See the [freight shipment information](info) for more details.
      - `shipment_method` string: The mode by which the shipment was transported (e.g. air, ocean)
      - `external_system_url` string, nullable: URL link to the freight shipment in the external system (WMS/Freight etc).
      - `additional_fields` object: Integration-specific fields
      - `trackstar_created_date` string, date-time
      - `trackstar_updated_date` string, date-time
  - FreightShipmentsUpdatedTruncatedWebhook
    - `connection_id` string, required
    - `data` FreightShipmentsUpdatedTruncatedData, required
      - `id` string: The record this event is about. Absent on connection webhooks, which carry dates rather than a row.
    - `event_type` 'freight-shipment.updated', required
    - `integration_name` string, required
    - `integration_type` string, required
    - `previous_attributes` FreightShipmentsUpdatedTruncatedPreviousAttributes, required
    - `data_truncated` boolean, required: Always true on this shape. The event was too large to send in full, so `data` holds only the `id` and `previous_attributes` is empty.
    - `data_url` string, required: Called with your usual API key, it returns a download link for this event exactly as it would have been delivered.

## Acknowledgement `200`

Success

---

[API](https://skmtc.dev/trackstarhq/apis/trackstar-api.md) - [All operations](https://skmtc.dev/trackstarhq/apis/trackstar-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trackstarhq/apis/trackstar-api/revisions/08647f790594?raw)
