Get expenses
get_expensesA trip’s expenses, everyone’s balance, and who should pay whom to square up (the fewest payments): for “who owes whom?” or “what have we spent?”. Amounts are decimal strings in major units (“12.50”); balances and payments are in the trip’s currency. Planned expenses are activities’ costs, not paid yet. A surprise kept from the user shows as “Surprise”: don’t guess at it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tripId | Yes | The trip’s id, from list_trips |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| balances | Yes | Everyone’s, from what’s paid and paid back. With the trip’s Families setting, a guest’s is in theirs who looks after them | |
| currency | Yes | The trip’s currency, which balances are in; null until its first expense | |
| expenses | Yes | By day, planned ones last | |
| transfers | Yes | The fewest payments that square everyone |