---
title: "Update Transaction"
method: PATCH
path: "/transactions/{id}"
tags: ["Incomes & Expenses"]
---

# Update Transaction

`PATCH /transactions/{id}`

Update an existing transaction entry. Only the fields listed below can be modified. The entry's `direction`, link target (related property / reservation / operator) and `currency` are immutable; if you need to change any of these, delete the entry and create a new one.

## Path parameters

- `id` integer, required

## Request body

- object
  - `amount` number — New absolute amount. Always provide a positive value; the original `direction` (income or expense) is preserved.
  - `item_id` integer — New item categorization id. Must be a valid id from `GET /income_items` when the entry's direction is `income`, or `GET /expense_items` when it is `expense`.
  - `payment_method_id` integer — New payment method id. Must be a valid id from `GET /income_methods` when the entry's direction is `income`, or `GET /expense_methods` when it is `expense`.
  - `action_at` string — New action time. Accepts ISO 8601 (`YYYY-MM-DDTHH:MM:SSZ`).
  - `note` string — New free-form note (max 500 characters).

## Response `200`

The transaction entry has been successfully updated.

- CommonResponse
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.

---

[API](https://skmtc.net/hostex/apis/hostex-api.md) · [All operations](https://skmtc.net/hostex/apis/hostex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostex/hostex-api/revisions/a3fa555dee66/schema)
