spotSubcontracting.mission.finished

spotSubcontracting.mission.finished

Published when a driver reports that a mission is finished. The payload identifies the organization, trip, and mission, and includes the reported completion details.

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.mission.finished",
      "eventVersion": 1,
      "eventData": {
        "comment": "Delivered in good condition",
        "weight": 1,
        "palletsHaveBeenSwapped": true,
        "files": [
          {
            "fileId": "770e8400-e29b-41d4-a716-000000000001",
            "fileName": "sample",
            "contentType": "application/pdf",
            "virusDetected": true
          }
        ],
        "signatures": [
          {
            "id": "770e8400-e29b-41d4-a716-000000000002",
            "name": "Morning delivery route",
            "signatureType": "none"
          }
        ],
        "location": {
          "x": 4.3517,
          "y": 50.8503,
          "validity": "invalid"
        },
        "tripId": "770e8400-e29b-41d4-a716-000000000003",
        "missionId": "770e8400-e29b-41d4-a716-000000000004",
        "feedbackId": "770e8400-e29b-41d4-a716-000000000005",
        "serverTime": "2026-05-27T14:30:00Z",
        "tripExternalId": "sample",
        "missionExternalId": "sample",
        "tripStatus": "created",
        "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
commentStringComment provided with the feedback.
weightIntegerReported weight, when provided.
palletsHaveBeenSwappedBooleanIndicates whether the pallets were swapped, when reported.
filesList<FinishFeedbackFile>Files attached to the feedback.
files[].fileIdGuidUnique identifier of the file.
files[].fileNameStringName of the file.
files[].contentTypeStringMedia type of the file.
files[].virusDetectedBooleanIndicates whether the file was detected as infected.
signaturesList<FinishFeedbackSignature>Signatures attached to the feedback.
signatures[].idGuidUnique identifier of the record.
signatures[].nameStringName of the trip, place, or person.
signatures[].signatureTypeStringType of the signature.
locationCoordinateCoordinates and validity of the reported location.
location.xNumberLongitude coordinate.
location.yNumberLatitude coordinate.
location.validityStringIndicates whether the location coordinates are valid.
tripIdGuidUnique identifier of the trip.
missionIdGuidUnique identifier of the mission.
feedbackIdGuidUnique identifier of the feedback submitted for this mission.
serverTimeDateTimeUTC timestamp when the server received the feedback.
tripExternalIdStringExternal identifier of the trip, when provided.
missionExternalIdStringExternal identifier of the mission, when provided.
tripStatusStringCurrent status of the trip.
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?