Edit trip expense
trip_expense_updateChange an existing trip expense: amount, description, date, category, who paid, or how it is split (for example, make an expense 100% one person's). Get the expense ID and traveler IDs from trip_expenses_list. Send only the fields that change; a split replaces the whole split. Changing the amount of an equal or percentage split keeps the same people and proportions. Only the trip owner or an editor can edit expenses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Expense date, YYYY-MM-DD. | |
| notes | No | ||
| split | No | Who the cost belongs to. type payer = all of it is the payer's cost (no split). equal = divided evenly among participants (omit participants for everyone on the trip). percentage = each participant's percentage, summing to 100. exact = each participant's amount, summing to the expense amount. To make an expense 100% one person's: if they paid, use type payer with paid_by set to them; if someone else paid, use percentage with only that person at 100. | |
| amount | No | Total amount, greater than 0. | |
| vendor | No | Merchant or vendor. | |
| paid_by | No | Traveler ID from trip_expenses_list travelers, or "me". | |
| category | No | ||
| currency | No | 3-letter currency code. | |
| expense_id | Yes | Expense ID from trip_expenses_list. | |
| description | No | What the expense was for, e.g. Travel insurance. |