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.
Annotations
Section titled “Annotations”| 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 |
Output
Section titled “Output”| Field | Type | Description |
|---|---|---|
enrollment_id |
string | Confirmed enrollment |
driver |
DriverInfo | Selected driver details |
Example Response
Section titled “Example Response”{ "enrollment_id": "enr-uuid-001", "driver": { "enrollment_id": "enr-uuid-001", "driver_name": "John Doe", "relationship": "self", "status": "approved", "driver_type": "self_drive" }}Related
Section titled “Related”- Booking Flow (MR variant)
- Prerequisite: get_member_drivers
- Next: review_trip