log_mileage
Log a vehicle travel trip with automatic trip-date IRS rate calculations. Supports confirm and idempotency validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Optional trip date (YYYY-MM-DD) | |
| notes | No | Optional notes | |
| farmId | Yes | The unique farm ID | |
| confirm | No | Set to true to commit, false for dry-run preview | |
| purpose | Yes | The business purpose of the trip | |
| category | No | Tax category (defaults to BUSINESS) | |
| distance | Yes | The travel distance in miles (positive finite number <= 5000) | |
| vehicleId | No | Optional ID of the vehicle used | |
| destination | Yes | The trip destination location | |
| vehicleName | No | Optional name of the vehicle | |
| idempotencyKey | No | Unique request idempotency key |