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
| Field | Type | Description |
|---|---|---|
trip | Trip | The complete trip, including its missions and trip information. |
trip.id | Guid | Unique identifier of the trip. |
trip.organizationId | Guid | Identifier of the organization that owns the trip. |
trip.status | String | Current status. |
trip.externalId | String | Identifier assigned to the trip or mission by the external system. |
trip.name | String | Name of the trip, place, or person. |
trip.ecmrData | EcmrData | Electronic consignment note information associated with the trip. |
trip.ecmrData.ecmrs | List<Ecmr> | Electronic consignment notes associated with the trip. |
trip.ecmrData.ecmrs[].status | String | Current status. |
trip.ecmrData.ecmrs[].orders | List<Order> | Orders associated with the electronic consignment note. |
trip.ecmrData.ecmrs[].orders[].comment | String | Comment provided with the feedback. |
trip.ecmrData.ecmrs[].orders[].weight | Integer | Reported weight, when provided. |
trip.ecmrData.ecmrs[].id | Guid | Unique identifier of the record. |
trip.ecmrData.ecmrs[].externalId | String | Identifier assigned to the trip or mission by the external system. |
trip.ecmrData.ecmrs[].feedbackType | String | Feedback category requested for the electronic consignment note. |
trip.missions | List<Mission> | Missions associated with the trip. |
trip.missions[].id | Guid | Unique identifier of the mission. |
trip.missions[].address | String | Address of the mission location. |
trip.missions[].place | Place | Place where the mission takes place. |
trip.missions[].place.name | String | Name of the trip, place, or person. |
trip.missions[].place.address | Address | Address of the mission location. |
trip.missions[].place.address.addressLine | String | Street address. |
trip.missions[].place.address.city | String | City of the address. |
trip.missions[].place.address.postalCode | String | Postal code of the address. |
trip.missions[].place.address.country | String | Country of the address. |
trip.missions[].externalId | String | Identifier assigned to the trip or mission by the external system. |
trip.missions[].action | String | Action to perform at the mission, such as loading or unloading. |
trip.missions[].ecmr | EcmrMission | Electronic consignment note associated with the mission. |
trip.missions[].ecmr.externalId | String | Identifier assigned to the trip or mission by the external system. |
trip.missions[].driverInfo | String | Instructions or other information for the driver. |
trip.missions[].executionTime | DateTime | Scheduled or reported execution time of the mission. |
trip.missions[].signatures | List<SignatureFeedbackBase> | Signatures attached to the feedback. |
trip.missions[].signatures[].kind | String | Category of the feedback or signature. |
trip.missions[].signatures[].signatureType | String | Type of the signature. |
trip.missions[].signatures[].name | String | Name of the trip, place, or person. |
trip.missions[].signatures[].id | Guid | Unique identifier of the record. |
trip.missions[].signatures[].serverTime | DateTime | UTC timestamp when the server received the feedback. |
trip.missions[].feedback | List<Feedback> | Feedback submitted for the mission. |
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 5 days ago
Did this page help you?