Actions58
- Client Actions
- Company Actions
- Contact Actions
- Expense Actions
- Expense Category Actions
- Invoice Actions
- Project Actions
- Project Task Assignment Actions
- Project User Assignment Actions
- Report Actions
- Task Actions
- Time Entry Actions
- User Actions
Expense → Create
AI-generatedSummary
Create a new expense entry in Harvest by specifying the project, expense category, and date the expense was incurred, optionally including user, quantity, cost, notes, and billable status.
Inputs
- Project ID (required) — The ID of the project associated with this expense
- Expense Category ID (required) — The ID of the expense category this expense is categorized under
- Spent Date (required) — The date the expense was incurred (YYYY-MM-DD format)
- User ID — The ID of the user associated with this expense (defaults to the authenticated user)
- Units — The quantity of units for unit-based expense categories
- Total Cost — The total cost of the expense
- Notes — Notes about the expense
- Billable — Whether this expense is billable, defaults to true
Output shape
a single record containing the created expense object
Returns the newly created expense details as a JSON object. Errors result in an exception.
Examples
Example 1: Create an expense for project ID 123 with category ID 45, spent on 2024-01-15
Set Project ID to 123, Expense Category ID to 45, Spent Date to '2024-01-15' and optionally add any additional fields like Total Cost or Notes.