---
updatedAt: 2026-06-02T13:36:45.000Z
agentTools:
  projectIndex: https://developers.forto.com/llms.txt
---

# Get Transport Plan

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/shipments/{shipmentId}/transportPlan": {
      "get": {
        "deprecated": true,
        "operationId": "getShipmentTransportPlan[1]v1",
        "parameters": [
          {
            "name": "shipmentId",
            "required": true,
            "in": "path",
            "description": "ID of the Shipment",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shipment Transport Plan Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ShipmentTransportPlanV1"
                }
              }
            }
          },
          "400": {
            "description": "Request is malformed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIValidationError"
                }
              }
            }
          },
          "401": {
            "description": "Authorization failed for this request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIAuthenticationError"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIAuthorizationError"
                }
              }
            }
          },
          "404": {
            "description": "Requested resource cannot be found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APINotFoundError"
                }
              }
            }
          },
          "default": {
            "description": "Default Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIError"
                }
              }
            }
          }
        },
        "security": [
          {
            "Authorization": []
          }
        ],
        "summary": "Get Transport Plan",
        "tags": [
          "Shipment"
        ]
      }
    }
  },
  "info": {
    "title": "Forto Platform API",
    "description": "Public API schema",
    "version": "1.0",
    "contact": {
      "name": "Customer Integrations Team",
      "url": "",
      "email": ""
    }
  },
  "servers": [
    {
      "url": "https://public-api.forto.io",
      "description": "Our Sandbox API"
    },
    {
      "url": "https://public-api.forto.com",
      "description": "Our Production API"
    }
  ],
  "components": {
    "securitySchemes": {
      "Authorization": {
        "scheme": "bearer",
        "bearerFormat": "Forto API Key Format",
        "type": "http",
        "description": "API Key"
      }
    },
    "schemas": {
      "ErrorDetails": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "description": "Field causing the issue"
          },
          "value": {
            "type": "object",
            "description": "Value of the field causing the issue"
          },
          "location": {
            "type": "string",
            "description": "Location of the field causing the issue",
            "enum": [
              "path",
              "body",
              "query"
            ]
          },
          "issue": {
            "type": "string",
            "description": "The reason for the error"
          }
        },
        "required": [
          "field",
          "issue"
        ]
      },
      "APIValidationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "default": "ValidationException",
            "description": "Name of ValidationException",
            "enum": [
              "ValidationException"
            ]
          },
          "debugID": {
            "type": "string",
            "description": "Internal identifier used for correlation purposes."
          },
          "message": {
            "type": "string",
            "description": "Message describing the error."
          },
          "informationLink": {
            "type": "string",
            "description": "URI for detailed information related to this error for the developer."
          },
          "details": {
            "description": "Additional details for the error. ",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        },
        "required": [
          "name",
          "debugID",
          "message",
          "details"
        ]
      },
      "APIAuthenticationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "default": "AuthenticationException",
            "description": "Name of AuthenticationException",
            "enum": [
              "AuthenticationException"
            ]
          },
          "debugID": {
            "type": "string",
            "description": "Internal identifier used for correlation purposes."
          },
          "message": {
            "type": "string",
            "description": "Message describing the error."
          },
          "informationLink": {
            "type": "string",
            "description": "URI for detailed information related to this error for the developer."
          },
          "details": {
            "description": "Additional details for the error. ",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        },
        "required": [
          "name",
          "debugID",
          "message"
        ]
      },
      "APIAuthorizationError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "default": "AuthorizationException",
            "description": "Name of AuthorizationException",
            "enum": [
              "AuthorizationException"
            ]
          },
          "debugID": {
            "type": "string",
            "description": "Internal identifier used for correlation purposes."
          },
          "message": {
            "type": "string",
            "description": "Message describing the error."
          },
          "informationLink": {
            "type": "string",
            "description": "URI for detailed information related to this error for the developer."
          },
          "details": {
            "description": "Additional details for the error. ",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        },
        "required": [
          "name",
          "debugID",
          "message"
        ]
      },
      "APINotFoundError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "default": "NotFoundException",
            "description": "Name of NotFoundException",
            "enum": [
              "NotFoundException"
            ]
          },
          "debugID": {
            "type": "string",
            "description": "Internal identifier used for correlation purposes."
          },
          "message": {
            "type": "string",
            "description": "Message describing the error."
          },
          "informationLink": {
            "type": "string",
            "description": "URI for detailed information related to this error for the developer."
          },
          "details": {
            "description": "Additional details for the error. ",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        },
        "required": [
          "name",
          "debugID",
          "message"
        ]
      },
      "APIError": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Human readable, unique name of the error."
          },
          "debugID": {
            "type": "string",
            "description": "Internal identifier used for correlation purposes."
          },
          "message": {
            "type": "string",
            "description": "Message describing the error."
          },
          "informationLink": {
            "type": "string",
            "description": "URI for detailed information related to this error for the developer."
          },
          "details": {
            "description": "Additional details for the error. ",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        },
        "required": [
          "name",
          "debugID",
          "message"
        ]
      },
      "CustomerTag": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "TransportPlanStatus": {
        "type": "object",
        "properties": {
          "timestamp": {
            "type": "string",
            "nullable": true,
            "description": "Timestamp of the last time this milestone had a change",
            "format": "date-time"
          },
          "isConfirmed": {
            "type": "boolean",
            "description": "Is this status confirmed by a human"
          },
          "isActual": {
            "type": "boolean",
            "description": "Did this status actually happened"
          },
          "delay": {
            "type": "number",
            "description": "Number of days delayed"
          }
        },
        "required": [
          "timestamp",
          "isConfirmed",
          "isActual"
        ]
      },
      "TransportPlanSegmentAddressPort": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Port"
          },
          "id": {
            "type": "string",
            "description": "ID of the port"
          }
        },
        "required": [
          "type",
          "id"
        ]
      },
      "TransportPlanSegmentAddressAddress": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "Address"
          },
          "fullString": {
            "type": "string",
            "description": "The full address in string format"
          },
          "streetNumber": {
            "type": "string",
            "description": "Street number"
          },
          "street": {
            "type": "string",
            "description": "Street"
          },
          "district": {
            "type": "string",
            "description": "District"
          },
          "city": {
            "type": "string",
            "description": "City"
          },
          "state": {
            "type": "string",
            "description": "State"
          },
          "country": {
            "type": "string",
            "description": "Country"
          },
          "countryCode": {
            "type": "string",
            "description": "Country code"
          },
          "postalCode": {
            "type": "string",
            "description": "Postal code"
          }
        },
        "required": [
          "type",
          "fullString",
          "streetNumber",
          "street",
          "district",
          "city",
          "state",
          "country",
          "countryCode",
          "postalCode"
        ]
      },
      "TransportPlanSegmentAddressDepot": {
        "type": "object",
        "properties": {
          "fullString": {
            "type": "string",
            "description": "The full address in string format"
          },
          "streetNumber": {
            "type": "string",
            "description": "Street number"
          },
          "street": {
            "type": "string",
            "description": "Street"
          },
          "district": {
            "type": "string",
            "description": "District"
          },
          "city": {
            "type": "string",
            "description": "City"
          },
          "state": {
            "type": "string",
            "description": "State"
          },
          "country": {
            "type": "string",
            "description": "Country"
          },
          "countryCode": {
            "type": "string",
            "description": "Country code"
          },
          "postalCode": {
            "type": "string",
            "description": "Postal code"
          },
          "type": {
            "type": "string",
            "description": "Depot"
          },
          "name": {
            "type": "string",
            "description": "Name of the depot"
          }
        },
        "required": [
          "fullString",
          "streetNumber",
          "street",
          "district",
          "city",
          "state",
          "country",
          "countryCode",
          "postalCode",
          "type"
        ]
      },
      "TransportPlanSegment": {
        "type": "object",
        "properties": {
          "origin": {
            "description": "Starting point of this segment",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressPort",
                "title": "Port"
              },
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressAddress",
                "title": "Address"
              },
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressDepot",
                "title": "Depot"
              }
            ]
          },
          "destination": {
            "description": "Final point of this segment",
            "oneOf": [
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressPort",
                "title": "Port"
              },
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressAddress",
                "title": "Address"
              },
              {
                "$ref": "#/components/schemas/TransportPlanSegmentAddressDepot",
                "title": "Depot"
              }
            ]
          },
          "shipName": {
            "type": "string",
            "description": "Name of the vessel"
          },
          "duration": {
            "type": "number",
            "description": "Duration of this segment in days",
            "minimum": 1
          },
          "type": {
            "type": "string",
            "description": "Type of the segment",
            "enum": [
              "preRoute",
              "mainRoute",
              "postRoute",
              "haulageRoute",
              "customsRoute",
              "depotRoute"
            ]
          },
          "airline": {
            "type": "string",
            "description": "Airline"
          },
          "airlineCode": {
            "type": "string",
            "description": "Airline Code"
          },
          "flightNumber": {
            "type": "string",
            "description": "Flight number"
          }
        },
        "required": [
          "origin",
          "destination"
        ]
      },
      "TransportPlanV1": {
        "type": "object",
        "properties": {
          "cargoReady": {
            "description": "Status of cargo ready milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "departure": {
            "description": "Status of departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "arrival": {
            "description": "Status of arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "pickup": {
            "description": "Status of pickup milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "delivery": {
            "description": "Status of delivery milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateIn": {
            "description": "Status of container gate in milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateOut": {
            "description": "Status of container gate out milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentArrival": {
            "description": "Status of transshipment port arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentDeparture": {
            "description": "Status of transshipment port departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentArrival2": {
            "description": "Status of second transshipment port arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentDeparture2": {
            "description": "Status of second transshipment port departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentArrival3": {
            "description": "Status of third transshipment port arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentDeparture3": {
            "description": "Status of third transshipment port departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentArrival4": {
            "description": "Status of fourth transshipment port arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transshipmentDeparture4": {
            "description": "Status of fourth transshipment port departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerEmptyPickup": {
            "description": "Status of container empty pickup milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerEmptyReturn": {
            "description": "Status of container empty return milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDischargedDestination": {
            "description": "Status of container discharge at destination milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "customsStopOrigin": {
            "description": "Status of customs stop at origin milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "customsStopDestination": {
            "description": "Status of customs stop at destination milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDischargedTransshipment1": {
            "description": "Status of container discharge on first transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDischargedTransshipment2": {
            "description": "Status of container discharge on second transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDischargedTransshipment3": {
            "description": "Status of container discharge on third transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDischargedTransshipment4": {
            "description": "Status of container discharge on forth transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerLoadedTransshipment1": {
            "description": "Status of container load on first transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerLoadedTransshipment2": {
            "description": "Status of container load on second transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerLoadedTransshipment3": {
            "description": "Status of container load on third transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerLoadedTransshipment4": {
            "description": "Status of container load on forth transshipment port milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportArrival": {
            "description": "Status of arrival to first transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportArrival2": {
            "description": "Status of arrival to second transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportArrival3": {
            "description": "Status of arrival to third transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportArrival4": {
            "description": "Status of arrival to fourth transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportDeparture": {
            "description": "Status of departure from first transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportDeparture2": {
            "description": "Status of departure from second transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportDeparture3": {
            "description": "Status of departure from third transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "transitAirportDeparture4": {
            "description": "Status of departure from fourth transit airport milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateInMultimodalTerminalOrigin": {
            "description": "Status of container gate in from origin multimodal terminal milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateOutMultimodalTerminalOrigin": {
            "description": "Status of container gate out from origin multimodal terminal milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateInMultimodalTerminalDestination": {
            "description": "Status of container gate in from destination multimodal terminal milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerGateOutMultimodalTerminalDestination": {
            "description": "Status of container gate out from destination multimodal terminal milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDepartureAtShipper": {
            "description": "Status of departure at shipper milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "verifiedGrossMarginStop": {
            "description": "Status of verified gross margin stop milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "departureFromPointOfReceipt": {
            "description": "Status of departure from point of receipt milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerLoadingOrigin": {
            "description": "Status of container origin loading milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerEmptyDeparture": {
            "description": "Status of container empty departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerDepartureDelivery": {
            "description": "Status of departure from container delivery milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "arrivalPartner": {
            "description": "Status of partner arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "departurePartner": {
            "description": "Status of partner departure milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "arrivalOrigin": {
            "description": "Status of origin arrival milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "receivedFromFlight": {
            "description": "Status of received from flight milestone",
            "allOf": [
              {
                "$ref": "#/components/schemas/TransportPlanStatus"
              }
            ]
          },
          "containerNumber": {
            "type": "string",
            "description": "Physical Container Number"
          },
          "customerReference": {
            "type": "string",
            "description": "Reference for the customer"
          },
          "tags": {
            "description": "User-defined array of tags, in key-value format",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerTag"
            }
          },
          "trackableId": {
            "type": "string",
            "description": "Trackable ID of this container for correlation purposes"
          },
          "preCarriageSegments": {
            "description": "Pre Carriage segments",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransportPlanSegment"
            }
          },
          "segments": {
            "description": "Main Carriage segments",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransportPlanSegment"
            }
          },
          "onCarriageSegments": {
            "description": "On Carriage segments",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransportPlanSegment"
            }
          },
          "containerYardCutoff": {
            "type": "string",
            "description": "Date of container yard cutoff",
            "format": "date-time"
          }
        },
        "required": [
          "cargoReady",
          "departure",
          "arrival",
          "pickup",
          "delivery",
          "trackableId",
          "segments"
        ]
      },
      "ShipmentTransportPlanV1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the shipment"
          },
          "customerReference": {
            "type": "string",
            "nullable": true,
            "description": "Reference given to the shipment by the customer"
          },
          "transportPlans": {
            "description": "Transport planning of the shipment",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransportPlanV1"
            }
          }
        },
        "required": [
          "id",
          "customerReference",
          "transportPlans"
        ]
      }
    }
  }
}
```