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

FieldTypeDescription
participatingDriverIdsList<Guid>Unique identifiers of the drivers that participated in the leg
participatingAssetIdsList<Guid>Unique identifiers of the assets that participated in the leg
actualEndTimeDateTimeActual end time of the leg
actualEndAssetIdGuidRepresents the ID of the asset that finished this leg
actualEndDriverIdGuidRepresents the ID of the driver that Finished this leg.
tripIdGuidUnique identifier for the trip
legIdGuidUnique identifier for the leg
statusStringCurrent status of the leg, Created, Pending or Finished
organizationIdGuidOrganization identifier
registeredOnDateTimeRegistration timestamp
eventIdGuidEvent identifier
occurredOnDateTimeEvent occurrence timestamp

Did this page help you?