Log a stay
log_stayLog a new stay (optional accommodation/cost overlay — journeys remain the presence spine) for the authenticated user. Dates are ISO 8601 with an explicit offset (check-out must be after check-in). Country accepts an ISO alpha-2 code or an English name; the resolved value is echoed back in the result. Optionally pass costs (an array of { amountMinor, currency, category?, ... }) to log the price in the same entry — each line becomes an expense tied to this record (Pro). Use one line per charge: the main fare/room plus any addon (luggage, seat selection, breakfast) or upgrade lines. If a matching record already exists, this returns a warning naming its ID instead of inserting a duplicate — pass allowDuplicate: true to create it anyway. If unfamiliar with TripLedger semantics, call get_tripledger_guide first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | ||
| name | No | ||
| costs | No | ||
| notes | No | ||
| checkInDate | No | ||
| countryCode | No | ||
| checkOutDate | No | ||
| allowDuplicate | No | Set true to create even if a matching record already exists (see the duplicate-guard note above). Defaults to false. | |
| participantIds | No |