Skip to content

assign_driver

Status: Implemented | Module: trip

Attach an approved mileage-reimbursement driver to the current booking draft. Requires an enrollment_id from get_member_drivers. Rejects enrollments that are not approved or do not belong to the verified member. The selected enrollment is written to the draft and consumed by confirm_trip.

Hint Value
readOnlyHint false
destructiveHint false
idempotentHint true
Field Type Required Description
session_id string yes Active session
enrollment_id string yes From get_member_drivers
Field Type Description
enrollment_id string Confirmed enrollment
driver DriverInfo Selected driver details
{
"enrollment_id": "enr-uuid-001",
"driver": { "enrollment_id": "enr-uuid-001", "driver_name": "John Doe", "relationship": "self", "status": "approved", "driver_type": "self_drive" }
}