spotSubcontracting.trip.updated

spotSubcontracting.trip.updated

Published when a spot subcontracting trip is updated. The payload contains the organization identifier and the complete updated trip.

Payload JSON

The event is delivered in the standard Datahub event batch envelope:

{
  "eventBatchId": "550e8400-e29b-41d4-a716-446655440000",
  "eventSubscriptionId": "660e8400-e29b-41d4-a716-446655440001",
  "eventBatchTime": "2026-05-27T14:30:00Z",
  "eventsData": [
    {
      "eventType": "spotSubcontracting.trip.updated",
      "eventVersion": 1,
      "eventData": {
        "trip": {
          "id": "770e8400-e29b-41d4-a716-000000000001",
          "organizationId": "770e8400-e29b-41d4-a716-000000000002",
          "status": "created",
          "externalId": "TRIP-1001",
          "name": "Morning delivery route",
          "ecmrData": {
            "ecmrs": [
              {
                "status": "none",
                "orders": [
                  {
                    "comment": "Delivered in good condition",
                    "weight": 1
                  }
                ],
                "id": "770e8400-e29b-41d4-a716-000000000003",
                "externalId": "TRIP-1001",
                "feedbackType": "all"
              }
            ]
          },
          "missions": [
            {
              "id": "770e8400-e29b-41d4-a716-000000000004",
              "address": "Ter Waarde 49, 8900 Ieper",
              "place": {
                "name": "Morning delivery route",
                "address": {
                  "addressLine": "Ter Waarde 49",
                  "city": "Ieper",
                  "postalCode": "8900",
                  "country": "Belgium"
                }
              },
              "externalId": "TRIP-1001",
              "action": "loading",
              "ecmr": {
                "externalId": "TRIP-1001"
              },
              "driverInfo": "Load 15 pallets of water",
              "executionTime": "2026-05-27T14:30:00Z",
              "signatures": [
                {
                  "signatureType": "none",
                  "name": "Morning delivery route",
                  "id": "770e8400-e29b-41d4-a716-000000000005",
                  "serverTime": "2026-05-27T14:30:00Z"
                }
              ],
              "feedback": []
            }
          ]
        },
        "organizationId": "770e8400-e29b-41d4-a716-000000000006",
        "registeredOn": "2026-05-27T14:30:00Z",
        "eventId": "770e8400-e29b-41d4-a716-000000000007",
        "occurredOn": "2026-05-27T14:30:00Z"
      }
    }
  ]
}

Field descriptions

FieldTypeDescription
tripTripThe complete trip, including its missions and trip information.
trip.idGuidUnique identifier of the trip.
trip.organizationIdGuidIdentifier of the organization that owns the trip.
trip.statusStringCurrent status.
trip.externalIdStringIdentifier assigned to the trip or mission by the external system.
trip.nameStringName of the trip, place, or person.
trip.ecmrDataEcmrDataElectronic consignment note information associated with the trip.
trip.ecmrData.ecmrsList<Ecmr>Electronic consignment notes associated with the trip.
trip.ecmrData.ecmrs[].statusStringCurrent status.
trip.ecmrData.ecmrs[].ordersList<Order>Orders associated with the electronic consignment note.
trip.ecmrData.ecmrs[].orders[].commentStringComment provided with the feedback.
trip.ecmrData.ecmrs[].orders[].weightIntegerReported weight, when provided.
trip.ecmrData.ecmrs[].idGuidUnique identifier of the record.
trip.ecmrData.ecmrs[].externalIdStringIdentifier assigned to the trip or mission by the external system.
trip.ecmrData.ecmrs[].feedbackTypeStringFeedback category requested for the electronic consignment note.
trip.missionsList<Mission>Missions associated with the trip.
trip.missions[].idGuidUnique identifier of the mission.
trip.missions[].addressStringAddress of the mission location.
trip.missions[].placePlacePlace where the mission takes place.
trip.missions[].place.nameStringName of the trip, place, or person.
trip.missions[].place.addressAddressAddress of the mission location.
trip.missions[].place.address.addressLineStringStreet address.
trip.missions[].place.address.cityStringCity of the address.
trip.missions[].place.address.postalCodeStringPostal code of the address.
trip.missions[].place.address.countryStringCountry of the address.
trip.missions[].externalIdStringIdentifier assigned to the trip or mission by the external system.
trip.missions[].actionStringAction to perform at the mission, such as loading or unloading.
trip.missions[].ecmrEcmrMissionElectronic consignment note associated with the mission.
trip.missions[].ecmr.externalIdStringIdentifier assigned to the trip or mission by the external system.
trip.missions[].driverInfoStringInstructions or other information for the driver.
trip.missions[].executionTimeDateTimeScheduled or reported execution time of the mission.
trip.missions[].signaturesList<SignatureFeedbackBase>Signatures attached to the feedback.
trip.missions[].signatures[].kindStringCategory of the feedback or signature.
trip.missions[].signatures[].signatureTypeStringType of the signature.
trip.missions[].signatures[].nameStringName of the trip, place, or person.
trip.missions[].signatures[].idGuidUnique identifier of the record.
trip.missions[].signatures[].serverTimeDateTimeUTC timestamp when the server received the feedback.
trip.missions[].feedbackList<Feedback>Feedback submitted for the mission.
organizationIdGuidIdentifier of the organization that owns the trip.
registeredOnDateTimeUTC timestamp when this event was registered.
eventIdGuidUnique identifier of this event.
occurredOnDateTimeUTC timestamp when this event occurred.

Did this page help you?