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
| Field | Type | Description |
|---|---|---|
comment | String | Comment provided with the feedback. |
weight | Integer | Reported weight, when provided. |
palletsHaveBeenSwapped | Boolean | Indicates whether the pallets were swapped, when reported. |
files | List<FinishFeedbackFile> | Files attached to the feedback. |
files[].fileId | Guid | Unique identifier of the file. |
files[].fileName | String | Name of the file. |
files[].contentType | String | Media type of the file. |
files[].virusDetected | Boolean | Indicates whether the file was detected as infected. |
signatures | List<FinishFeedbackSignature> | Signatures attached to the feedback. |
signatures[].id | Guid | Unique identifier of the record. |
signatures[].name | String | Name of the trip, place, or person. |
signatures[].signatureType | String | Type of the signature. |
location | Coordinate | Coordinates and validity of the reported location. |
location.x | Number | Longitude coordinate. |
location.y | Number | Latitude coordinate. |
location.validity | String | Indicates whether the location coordinates are valid. |
tripId | Guid | Unique identifier of the trip. |
missionId | Guid | Unique identifier of the mission. |
feedbackId | Guid | Unique identifier of the feedback submitted for this mission. |
serverTime | DateTime | UTC timestamp when the server received the feedback. |
tripExternalId | String | External identifier of the trip, when provided. |
missionExternalId | String | External identifier of the mission, when provided. |
tripStatus | String | Current status of the trip. |
organizationId | Guid | Identifier of the organization that owns the trip. |
registeredOn | DateTime | UTC timestamp when this event was registered. |
eventId | Guid | Unique identifier of this event. |
occurredOn | DateTime | UTC timestamp when this event occurred. |
Updated 8 days ago
Did this page help you?