---
title: "Create expense item"
method: POST
path: "/users/{user_id}/expense_items"
tags: ["expense items"]
---

# Create expense item

`POST /users/{user_id}/expense_items`

Creates a new expense item for a user.

## Path parameters

- `user_id` integer, required

## Request body

- union
  - object
    - `date` string, date, required — The date the expense was reported.
    - `amount` number, required — The amount of the expense.
    - `project_id` integer, required — The ID of the project.
    - `leave_type_id` integer — The ID of the leave type.
    - `assignable_id` integer — The ID of the assignable (project or leave type).
    - `category` string, nullable — The category of the expense.
    - `notes` string, nullable — Notes for the expense item.
  - object
    - `date` string, date, required — The date the expense was reported.
    - `amount` number, required — The amount of the expense.
    - `project_id` integer — The ID of the project.
    - `leave_type_id` integer, required — The ID of the leave type.
    - `assignable_id` integer — The ID of the assignable (project or leave type).
    - `category` string, nullable — The category of the expense.
    - `notes` string, nullable — Notes for the expense item.
  - object
    - `date` string, date, required — The date the expense was reported.
    - `amount` number, required — The amount of the expense.
    - `project_id` integer — The ID of the project.
    - `leave_type_id` integer — The ID of the leave type.
    - `assignable_id` integer, required — The ID of the assignable (project or leave type).
    - `category` string, nullable — The category of the expense.
    - `notes` string, nullable — Notes for the expense item.

## Response `201`

The expense item was created successfully.

- ExpenseItem
  - `expense_item_id` integer — Unique identifier for the expense item.
  - `assignable_id` integer, required — ID of the item being assigned.
  - `assignable_type` 'Project' | 'LeaveType' | 'Phase' — The type of the assignable item.
  - `user_id` integer, required — ID of the user to whom the item is assigned.
  - `amount` number, float, required — The assigned amount.
  - `date` string, date, required — The date of the expense item.
  - `category` string, nullable — The category of the expense item. Can be null.
  - `notes` string, nullable — Additional notes for the expense item.
  - `created_at` string, date-time — Timestamp when the expense item was created.
  - `updated_at` string, date-time — Timestamp when the expense item was last updated.

## Other responses

- `404` — The user ID was not found.

---

[API](https://skmtc.net/smartsheet/apis/resource-management-openapi-reference.md) · [All operations](https://skmtc.net/smartsheet/apis/resource-management-openapi-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartsheet/resource-management-openapi-reference/versions/e4c439ac13f2/schema)
