OTM v5b1 - Deprecated

You are reading documentation for a deprecated version

Full message example

Following all previous pages for this guide, you will end up with a full message example like underneath. In case you still need more detail on each field: feel free to visit the full OTM specification on https://www.opentripmodel.org

Copy
Copied
{
  "id": "66b99f4c-b9d3-5af7-b2ca-9baa98fd50fc",
  "name": "DCT|2020|43-4-109",
  "externalAttributes": {
    "displayName": "DCT|43-4-109",
    "plannedStart": "2020-10-13T23:19Z",
    "groupingAddressIdentifier": "46553",
    "oneWay": "false",
    "requestedTractorType": "EURO_13_60",
    "insertDate": "2020-10-13T14:27:53.977Z",
    "administrativeKm": "62",
    "requestedVehicleType": "EURO_13_60",
    "plannedEnd": "2020-10-14T02:02Z",
    "cancelled": "false",
    "department": "DCT-PJ",
    "customer_data_taskNumber": "3556",
    "mutated": "false",
    "plannedDeparture": "2020-10-13T23:59Z",
    "requestedFuelType": "EURO_6_DIESEL",
    "planningLastModified": "2020-10-14T00:22:29.315Z",
    "activity": "NOT_EXECUTED",
    "routeNumber": "43-4-109",
    "superLorry": "false",
    "requestedTrailerType": "EURO_13_60",
    "administrativeTime": "02:43",
    "realizedLicensePlate": "47-ABC-3",
    "totalVolume": "0.0",
    "requestedVehicleCapacity": "54.0"
  },
  "vehicle": {
    "entity": {
      "id": "8e410040-1b36-4179-a216-63fcd2e9c39e",
      "externalAttributes": {
        "deviceName": "TEST01",
        "customerDeviceIdentifier": "TEST01",
        "licensePlate": "47-ABC-3",
        "externalSystemIdentifier": "transpy-118007-55",
        "externalDeviceIdentifier": "TEST01"
      },
      "vehicleType": "Tractor",
      "fuel": "EURO_5_DIESEL",
      "actors": [
        {
          "entity": {
            "id": "f7be99bf-e7a3-3651-9e71-0d95f9138044",
            "name": "Walter Ulanski"
          },
          "associationType": "inline"
        }
      ]
    },
    "associationType": "inline"
  },
  "actors": [
    {
      "entity": {
        "id": "66cbe2e0-3f0e-5b19-85e8-f0fb7302a0e3",
        "name": "Janszoon Transport B.V.",
        "externalAttributes": {
          "code": "janszoon",
          "description": "carrier"
        }
      },
      "associationType": "inline"
    },
    {
      "entity": {
        "id": "79b50ea6-b390-528e-9920-efe260a1bcfa",
        "externalAttributes": {
          "code": "supermercado",
          "description": "shipper"
        }
      },
      "associationType": "inline"
    }
  ],
  "actions": [
    {
      "entity": {
        "id": "9a8a1b09-69dc-5dd0-95ba-6269c2e62d50",
        "externalAttributes": {
          "exceptionLateThreshold": "2020-10-13T23:36Z",
          "stopType": "DC",
          "externalStopId": "1871",
          "label": "1",
          "returnFlowAllowed": "true",
          "cancelled": "false",
          "customer_data_taskNumber": "3556",
          "sequence": "1",
          "exceptionEarlyThreshold": "2020-10-13T22:21Z",
          "mutated": "false",
          "isOriginallyPlanned": "true",
          "administrative": "false"
        },
        "lifecycle": "planned",
        "location": {
          "entity": {
            "id": "8f14e45f-ceea-367a-9a36-dedd4bea8899",
            "name": "DCT",
            "externalAttributes": {
              "locationId": "7",
              "unloadingStreet": "Hoofdweg 1",
              "globalLocationNumber": "8710400000327",
              "customerLocationIdentifier": "NL1234AB0001"
            },
            "geoReference": {
              "lat": 51.578341131918414,
              "lon": 5.117661544209009,
              "type": "latLonPointGeoReference"
            },
            "administrativeReference": {
              "name": "DCT",
              "street": "Hoofdweg 1",
              "postalCode": "1234AB",
              "city": "Hoofddorp",
              "country": "NLD"
            },
            "contactDetails": [
              {
                "value": "035-497411",
                "type": "phone"
              },
              {
                "value": "operatiecentrum@supermercado.nl",
                "type": "email"
              }
            ]
          },
          "associationType": "inline"
        },
        "startTime": "2020-10-13T23:21:00Z",
        "endTime": "2020-10-13T23:53:00Z",
        "actions": [
          {
            "entity": {
              "id": "f4a24ddc-3d9e-3064-ad7b-732d474c583a",
              "transportEquipment": {
                "entity": {
                  "id": "7a64b236-a0a1-39d5-954b-809a398ac093",
                  "externalAttributes": {
                    "licensePlate": "AB-36-CD",
                    "trailerType": "EURO_13_60_KOEL"
                  },
                  "equipmentType": "trailer"
                },
                "associationType": "inline"
              },
              "actionType": "attachTransportEquipment"
            },
            "associationType": "inline"
          },
          {
            "entity": {
              "id": "6aba0be2-1373-3a03-9e53-dbe092d031aa",
              "lifecycle": "planned",
              "consignment": {
                "uuid": "3eeee837-45e4-5513-be76-47fb1bf63322",
                "entityType": "consignment",
                "associationType": "reference"
              },
              "actionType": "load"
            },
            "associationType": "inline"
          }
        ],
        "actionType": "stop"
      },
      "associationType": "inline"
    },
    {
      "entity": {
        "id": "758a44be-0e9f-3f3d-ac20-9e0549bfa0d8",
        "from": {
          "uuid": "8f14e45f-ceea-367a-9a36-dedd4bea8899",
          "entityType": "location",
          "associationType": "reference"
        },
        "to": {
          "entity": {
            "id": "e9b82e4d-55c9-3c6a-bbf9-dedf898172b3",
            "name": "8977",
            "externalAttributes": {
              "locationId": "8977",
              "unloadingStreet": "Industriestraat 15",
              "globalLocationNumber": "8710400089773",
              "customerLocationIdentifier": "NL4321DB015X"
            },
            "geoReference": {
              "lat": 51.46860736884603,
              "lon": 5.410192876182254,
              "type": "latLonPointGeoReference"
            },
            "administrativeReference": {
              "name": "8977",
              "street": "Industriestraat 15",
              "postalCode": "4321DB",
              "city": "Oss",
              "country": "NLD"
            },
            "contactDetails": [
              {
                "value": "085-2100227",
                "type": "phone"
              },
              {
                "value": "0",
                "type": "email"
              }
            ]
          },
          "associationType": "inline"
        },
        "actions": [

        ],
        "actionType": "move"
      },
      "associationType": "inline"
    },
    {
      "entity": {
        "id": "a2a2ee1a-b7c2-5dcf-ac4a-fad589e42687",
        "externalAttributes": {
          "exceptionLateThreshold": "2020-10-14T00:42Z",
          "timeWindowStart": "2020-10-13T23:45Z",
          "stopType": "WINKEL",
          "timeWindowEnd": "2020-10-14T01:15Z",
          "externalStopId": "897730315",
          "label": "2",
          "returnFlowAllowed": "true",
          "cancelled": "false",
          "customer_data_taskNumber": "2996",
          "sequence": "2",
          "exceptionEarlyThreshold": "2020-10-13T23:27Z",
          "mutated": "false",
          "isOriginallyPlanned": "true",
          "expectedTrafficDelay": "0",
          "administrative": "false"
        },
        "lifecycle": "planned",
        "location": {
          "uuid": "e9b82e4d-55c9-3c6a-bbf9-dedf898172b3",
          "entityType": "location",
          "associationType": "reference"
        },
        "startTime": "2020-10-14T00:27:00Z",
        "endTime": "2020-10-14T01:15:00Z",
        "actions": [
          {
            "entity": {
              "id": "46668558-0382-32a8-988a-895133a462bf",
              "lifecycle": "planned",
              "consignment": {
                "entity": {
                  "id": "d9e8619f-565b-336f-97a7-d509542b8fc4",
                  "externalAttributes": {
                    "externalShipmentId": "597730315AS-drop",
                    "externalOrderId": "ac9fcaea-ea91-36ee-8111-384524511399",
                    "shipmentNumber": "1",
                    "cancelled": "false"
                  },
                  "type": "HB",
                  "goods": [

                  ]
                },
                "associationType": "inline"
              },
              "actionType": "unload"
            },
            "associationType": "inline"
          },
          {
            "entity": {
              "id": "005f7c79-6dbc-37e2-974c-a4c2280e0a5f",
              "lifecycle": "planned",
              "consignment": {
                "uuid": "9d4a8e98-566b-5864-bcc1-84a3d0ae29ff",
                "entityType": "consignment",
                "associationType": "reference"
              },
              "actionType": "load"
            },
            "associationType": "inline"
          }
        ],
        "actionType": "stop"
      },
      "associationType": "inline"
    },
    {
      "entity": {
        "id": "91c70481-cd85-3129-b326-9476c97a0df6",
        "from": {
          "uuid": "e9b82e4d-55c9-3c6a-bbf9-dedf898172b3",
          "entityType": "location",
          "associationType": "reference"
        },
        "to": {
          "entity": {
            "id": "868a4b62-023a-3d9d-b827-6152d8c5b877",
            "name": "John's shop",
            "externalAttributes": {
              "locationId": "99907",
              "unloadingStreet": "Aurorastraat 7",
              "globalLocationNumber": "8710400000952",
              "customerLocationIdentifier": "NL5544BT07RH"
            },
            "geoReference": {
              "lat": 51.579218561914466,
              "lon": 5.1144329796437615,
              "type": "latLonPointGeoReference"
            },
            "administrativeReference": {
              "name": "John's shop",
              "street": "Aurorastraat 7",
              "postalCode": "5544BT",
              "city": "Eindhoven",
              "country": "NLD"
            },
            "contactDetails": [
              {
                "value": "0",
                "type": "phone"
              },
              {
                "value": "0",
                "type": "email"
              }
            ]
          },
          "associationType": "inline"
        },
        "actions": [

        ],
        "actionType": "move"
      },
      "associationType": "inline"
    },
    {
      "entity": {
        "id": "f8d15afa-c77b-5cad-91b0-6e7f32e7a665",
        "externalAttributes": {
          "exceptionLateThreshold": "2020-10-14T01:59Z",
          "stopType": "MC",
          "externalStopId": "DCT|2020|43-4-109|MC",
          "label": "3",
          "returnFlowAllowed": "true",
          "cancelled": "false",
          "customer_data_taskNumber": "2996",
          "sequence": "3",
          "mutated": "false",
          "isOriginallyPlanned": "true",
          "administrative": "false"
        },
        "lifecycle": "planned",
        "location": {
          "uuid": "868a4b62-023a-3d9d-b827-6152d8c5b877",
          "entityType": "location",
          "associationType": "reference"
        },
        "startTime": "2020-10-14T01:44:00Z",
        "endTime": "2020-10-14T02:02:00Z",
        "actions": [
          {
            "entity": {
              "id": "cb9d59fe-ef07-34cf-ae5e-8da602216e81",
              "lifecycle": "planned",
              "consignment": {
                "entity": {
                  "id": "f4f8d025-6c47-3f5b-98b6-6d6ae04b3488",
                  "externalAttributes": {
                    "externalShipmentId": "DCT|2020|43-4-109|MC|1",
                    "externalOrderId": "50483990-9809-3468-873a-46c06de14244",
                    "shipmentNumber": "1",
                    "cancelled": "false"
                  },
                  "type": "emballage",
                  "goods": [

                  ]
                },
                "associationType": "inline"
              },
              "actionType": "unload"
            },
            "associationType": "inline"
          }
        ],
        "actionType": "stop"
      },
      "associationType": "inline"
    }
  ]
}