Log a trip
trip_addLog one drive in the mileage log: the date, where from and to, the distance in miles or km, the purpose, and the category (business, medical, moving, charitable, personal). Returns its TR-YYYY-NNNN id. Free tier: 20 trips per calendar month, counted on the month of the trip date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Where it ended, e.g. Client site, 2 Mill Lane | |
| date | Yes | The day the trip was driven, YYYY-MM-DD. A future date is refused: the trip cannot have been driven yet | |
| from | Yes | Where the trip started, e.g. Home office, 14 Nowa Street | |
| note | No | ||
| unit | Yes | miles or km; spellings like mi and kilometre are accepted | |
| purpose | Yes | Why the trip was made, e.g. Site visit for the Kowalski refit | |
| category | Yes | One of: business, medical, moving, charitable, personal. Personal trips are kept for the record and priced only if a rate exists | |
| distance | Yes | How far, to the thousandth of the unit, e.g. 12.5 | |
| jurisdiction | No | Which rate set prices this trip, when more than one jurisdiction has a rate for its category. Omit when only one does |