Costs

Add an expense

Spending that is not a booking: meals, tickets, shopping. Bookings carry their own price_raw.

post/api/trips/{id}/expenses

Request

  • Base URL: https://trvlrr.app
  • URL: https://trvlrr.app/api/trips/{id}/expenses
  • Auth: HTTP bearer

Path parameters

idstring required

The trip id.

Request body

descriptionstring required

What the money went on.

price_rawstring required

Amount with currency, e.g. "JPY 3400" or "$25".

categorystring

food, transport, stay, activity, shopping or other (anything else counts as other).

datestring nullable

Date, YYYY-MM-DD. Optional.

Response

The new expense.

idstring required
trip_idstring required
category'food' | 'transport' | 'stay' | 'activity' | 'shopping' | 'other' required
descriptionstring required
price_rawstring required
datestring nullable required
sourcestring required
created_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.