# Retrieve seafreight shipment main carriage Retrieve the main carriage of the shipment with additional details. Endpoint: GET /cargosoft/shipment/{id}/seamaincarriage Version: 2025.1 Security: JavaWebToken ## Path parameters: - `id` (integer, required) ## Response 200 fields (application/json): - `origin` (object) The origin of this leg. This object contains several information about the location and its dates and times. - `origin.location` (object) The location of this leg. - `origin.location.codes` (array) A list of all location codes and their types of this location. - `origin.location.codes.type` (string, required) The type of this location code. Enum: "CARGOSOFT", "UNLOC", "IATA", "FOREIGN", "POSTAL_CODE", "UN_COUNTRY" - `origin.location.codes.code` (string, required) The code of this location. - `origin.location.name` (string) The written name of this location. - `origin.location.latitude` (number) The latitude of this location. - `origin.location.longitude` (number) The longitude of this location. - `origin.estimated_datetime` (object) The local estimated date and time related to the location. - `origin.estimated_datetime.date` (string) The date. - `origin.estimated_datetime.time` (object) The time. - `origin.estimated_datetime.time.hour` (integer) - `origin.estimated_datetime.time.minute` (integer) - `origin.estimated_datetime.time.second` (integer) - `origin.estimated_datetime.time.nano` (integer) - `origin.estimated_datetime.zone_offset` (object) The UTC time zone of this date and time. - `origin.estimated_datetime.zone_offset.totalSeconds` (integer) - `origin.estimated_datetime.zone_offset.id` (string) - `origin.estimated_datetime.zone_offset.rules` (object) - `origin.estimated_datetime.zone_offset.rules.fixedOffset` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions` (array) - `origin.estimated_datetime.zone_offset.rules.transitions.offsetBefore` (object) - `origin.estimated_datetime.zone_offset.rules.transitions.offsetAfter` (object) - `origin.estimated_datetime.zone_offset.rules.transitions.overlap` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.instant` (string) - `origin.estimated_datetime.zone_offset.rules.transitions.duration` (object) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.seconds` (integer) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.zero` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.negative` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.positive` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.units` (array) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.units.durationEstimated` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.units.timeBased` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.duration.units.dateBased` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.gap` (boolean) - `origin.estimated_datetime.zone_offset.rules.transitions.dateTimeAfter` (string) - `origin.estimated_datetime.zone_offset.rules.transitions.dateTimeBefore` (string) - `origin.estimated_datetime.zone_offset.rules.transitionRules` (array) - `origin.estimated_datetime.zone_offset.rules.transitionRules.month` (string) Enum: "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER" - `origin.estimated_datetime.zone_offset.rules.transitionRules.timeDefinition` (string) Enum: "UTC", "WALL", "STANDARD" - `origin.estimated_datetime.zone_offset.rules.transitionRules.standardOffset` (object) - `origin.estimated_datetime.zone_offset.rules.transitionRules.dayOfWeek` (string) Enum: "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" - `origin.estimated_datetime.zone_offset.rules.transitionRules.dayOfMonthIndicator` (integer) - `origin.estimated_datetime.zone_offset.rules.transitionRules.localTime` (object) - `origin.estimated_datetime.zone_offset.rules.transitionRules.midnightEndOfDay` (boolean) - `origin.actual_datetime` (object) The local actual date and time related to the location. - `origin.revised_datetime` (object) The local revised date and time related to the location. - `origin.estimated_datetime_until` (object) - `destination` (object) The destination of this leg. This object contains several information about the location and its dates and times. - `leg_no` (integer) The number for the correct order of the transport legs. Important if more than one leg is entered for the shipment. - `mot` (string, required) - `voyage_no` (string) - `imo_code` (string) - `vessel_name` (string) - `vessel_flag` (string) - `call_sign` (string) ## Response 500 fields (application/json): - `error_code` (object) - `error_code.errorMessage` (string) - `error_message` (string) - `error_source` (string)