scheduledTrips.leg.finished
scheduledTrips.leg.finished
The scheduledTrips.leg.finished event is triggered when execution of a scheduled trip leg completes.
Payload JSON
{
"eventBatchId": "550e8400-e29b-41d4-a716-446655440000",
"eventSubscriptionId": "660e8400-e29b-41d4-a716-446655440001",
"eventBatchTime": "2026-05-27T14:30:00Z",
"eventsData": [
{
"eventType": "scheduledTrips.leg.finished",
"eventVersion": 1,
"eventData": {
"participatingDriverIds": [],
"participatingAssetIds": [],
"actualEndTime": "2026-05-27T14:30:00Z",
"actualEndAssetId": "770e8400-e29b-41d4-a716-000000000001",
"actualEndDriverId": "770e8400-e29b-41d4-a716-000000000002",
"tripId": "770e8400-e29b-41d4-a716-000000000003",
"legId": "770e8400-e29b-41d4-a716-000000000004",
"status": "finished",
"organizationId": "770e8400-e29b-41d4-a716-000000000005",
"registeredOn": "2026-05-27T14:30:00Z",
"eventId": "770e8400-e29b-41d4-a716-000000000006",
"occurredOn": "2026-05-27T14:30:00Z"
}
}
]
}Field level Description
| Field | Type | Description |
|---|---|---|
| participatingDriverIds | List<Guid> | Unique identifiers of the drivers that participated in the leg |
| participatingAssetIds | List<Guid> | Unique identifiers of the assets that participated in the leg |
| actualEndTime | DateTime | Actual end time of the leg |
| actualEndAssetId | Guid | Represents the ID of the asset that finished this leg |
| actualEndDriverId | Guid | Represents the ID of the driver that Finished this leg. |
| tripId | Guid | Unique identifier for the trip |
| legId | Guid | Unique identifier for the leg |
| status | String | Current status of the leg, Created, Pending or Finished |
| organizationId | Guid | Organization identifier |
| registeredOn | DateTime | Registration timestamp |
| eventId | Guid | Event identifier |
| occurredOn | DateTime | Event occurrence timestamp |
Updated 3 months ago
Did this page help you?