---
title: "Inline Edit an Expense"
method: PATCH
path: "/expenses/{expense_id}"
tags: ["Expenses"]
---

# Inline Edit an Expense

`PATCH /expenses/{expense_id}`

## Request

- Base URL: `http://localhost/app4legal/api/v2/money`
- URL: `http://localhost/app4legal/api/v2/money/expenses/{expense_id}`
- Auth: OAuth 2
  - Password
  - Token URL: `http://localhost/app4legal/api/v2/core/login`
- TypeScript: <https://skmtc.dev/app4legal/apis/a4l-money-api/docs/expenses/:expense_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Inline Edit an Expense

## Path parameters

- `expense_id` integer, required

## Request body

- object

## Response `201`

Resource has been updated successfully.

- object
  - `message` string
  - `expense` object
    - `id` integer
    - `voucher_header_id` integer
    - `expense_number` string
    - `paid_on` string, date
    - `expense_reference` string
    - `expense_category_id` integer
    - `amount` number, float
    - `payment_method` string
    - `billing_status` string
    - `status` string
    - `paid_through_account_id` integer
    - `currency_id` integer
    - `currency` string
    - `tax_id` integer, nullable
    - `comments` string
    - `supplier` object
      - `id` integer
      - `name` string
      - `type` string
      - `tax_number` string
    - `matter` string, nullable
    - `contract` string, nullable
    - `task` string, nullable
    - `hearing` string, nullable
    - `event` string, nullable
    - `client` string, nullable
    - `client_account_id` integer, nullable
    - `exchange_rate` string
    - `analytic_accounts` object[]
    - `task_code_id` integer, nullable
    - `attachment` string, nullable
    - `expense_category` string
    - `paid_through` string
    - `tax` string, nullable
    - `client_account` string, nullable
    - `custom_field_values` object
    - `custom_fields` object[]

## Other responses

- `401`: Unauthenticated
- `403`: Forbidden
- `500`: Internal Server Error

## Changes

- **2026-08-06** `e0d144609998`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/app4legal/apis/a4l-money-api/changes/expenses/:expense_id/patch.md)

---

[API](https://skmtc.dev/app4legal/apis/a4l-money-api.md) - [All operations](https://skmtc.dev/app4legal/apis/a4l-money-api/llms.txt) - [OpenAPI document](https://skmtc.dev/app4legal/apis/a4l-money-api/revisions/e0d144609998?raw)
