get_member_drivers
Status: Implemented | Module: trip
List enrolled mileage-reimbursement drivers for the verified member. Returns enrollment_id, name, phone, and approval status for both self and friend_or_family enrollments.
Workflow
Section titled “Workflow”- Call BEFORE enroll_driver to check whether the member already has an approved driver —
enroll_driveris idempotent but a read first avoids the round-trip. - Call BEFORE assign_driver to obtain a valid
enrollment_id(onlystatus=approvedrows are accepted byassign_driver).
Annotations
Section titled “Annotations”| Hint | Value |
|---|---|
| readOnlyHint | true |
| Field | Type | Required |
|---|---|---|
session_id |
string | yes |
Output: DriverInfo[]
Section titled “Output: DriverInfo[]”| Field | Type | Description |
|---|---|---|
enrollment_id |
string | UUID (use in assign_driver) |
member_id |
string | Driver’s member UUID |
driver_name |
string | Full name |
relationship |
string | self, spouse, parent, friend, etc. |
status |
string | approved, pending, denied |
is_primary |
bool | Suggested primary driver |
driver_type |
string | self_drive or friends_family |
Example Response
Section titled “Example Response”{ "drivers": [ { "enrollment_id": "enr-uuid-001", "driver_name": "John Doe", "relationship": "self", "status": "approved", "is_primary": true, "driver_type": "self_drive" }, { "enrollment_id": "enr-uuid-002", "driver_name": "Jane Doe", "relationship": "spouse", "status": "approved", "is_primary": false, "driver_type": "friends_family" } ]}