spotSubcontracting.trip.created
Returns all information when you perform a “Get trip” datahub API call.
The integrator that creates the trip, gets the unique spot subcontracting trip URL as a response. The other integrators do not receive this information.
Example of trip.created message
{
"eventBatchId": "387b1aee-e824-41f5-aee6-be966cf997b8",
"eventSubscriptionId": "5b4c04e2-a027-4da6-8fe0-28bf268a6326",
"eventBatchTime": "2024-07-09T11:01:19.4702843Z",
"eventsData": [
{
"eventType": "spotSubcontracting.trip.created",
"eventVersion": 1,
"eventData": {
"trip": {
"id": "22c30edc-e9cf-4ee5-af1c-e7984062bf24",
"organizationId": "e6c0f169-6f7a-4981-8e1a-0ca8344c4a77",
"status": "created",
"name": "this is an ecmr trip",
"ecmrData": {
"ecmrs": [
{
"status": "created",
"orders": [
{
"comment": "order 1",
"weight": 1000
},
{
"comment": "order 2",
"weight": 2000
}
],
"id": "d09a114e-4b52-49f0-b6ad-c541e9c6b018",
"externalId": "Test_e0d77f5d-6b55-4c1b-b8a9-6ff04a905ee6",
"feedbackType": "all"
}
]
},
"missions": [
{
"id": "aa9a1504-ffff-452a-9d26-1d0f995f0033",
"address": "",
"place": {
"name": "name 1",
"address": {
"addressLine": "addressline 1",
"city": "city 1",
"postalCode": "1000",
"country": "BE"
}
},
"action": "loading",
"ecmr": {
"externalId": "Test_e0d77f5d-6b55-4c1b-b8a9-6ff04a905ee6"
},
"driverInfo": "Driver Info 1",
"executionTime": "2024-07-09T12:00:57.583Z",
"signatures": [],
"feedback": [
{
"kind": "arrival",
"location": {
"x": 0,
"y": 0,
"validity": "invalid"
},
"id": "017b59c9-a0a6-4fcf-9dee-f5a20ebb9518",
"serverTime": null
},
{
"kind": "finish",
"comment": null,
"location": {
"x": 0,
"y": 0,
"validity": "invalid"
},
"files": [],
"id": "9abe4826-9b92-442d-a455-8f605166a2fd",
"serverTime": null
}
]
},
{
"id": "e0a277ac-f182-45b1-8549-eee2c4f8cae1",
"address": "",
"place": {
"name": "name 2",
"address": {
"addressLine": "addressline 2",
"city": "city 2",
"postalCode": "1100",
"country": "BE"
}
},
"action": "unloading",
"ecmr": {
"externalId": "Test_e0d77f5d-6b55-4c1b-b8a9-6ff04a905ee6"
},
"driverInfo": "Driver Info 2",
"executionTime": "2024-07-09T13:00:57.583Z",
"signatures": [],
"feedback": [
{
"kind": "arrival",
"location": {
"x": 0,
"y": 0,
"validity": "invalid"
},
"id": "682daf48-3c17-4591-bf06-06ba413bb5d5",
"serverTime": null
},
{
"kind": "finish",
"comment": null,
"location": {
"x": 0,
"y": 0,
"validity": "invalid"
},
"files": [],
"id": "c22c4926-a74f-4a1c-b251-92805e97f75a",
"serverTime": null
}
]
}
]
},
"organizationId": "e6c0f169-6f7a-4981-8e1a-0ca8344c4a77",
"registeredOn": "2024-07-09T11:01:16.3065505Z",
"eventId": "3d014baa-7796-4abd-ab74-d88df01988f9",
"occurredOn": "2024-07-09T11:01:16.3065505Z"
}
}
]
}
Updated 9 days ago