v1

latestOpenAPI 3.0.02026-07-26866217.8 KB
Incomes & Expenses

Update Transaction

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.

patch/transactions/{id}

Path parameters

idinteger required

Id of the transaction entry returned by GET /transactions or POST /transactions.

Request body

amountnumber

New absolute amount. Always provide a positive value; the original direction (income or expense) is preserved.

item_idinteger

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_idinteger

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_atstring

New action time. Accepts ISO 8601 (YYYY-MM-DDTHH:MM:SSZ).

notestring

New free-form note (max 500 characters).

Response

The transaction entry has been successfully updated.

request_idstring required

Unique identifier for the request.

error_codeinteger required

Numeric error code representing the status of the response. A value of 200 indicates success. <br> See the Error Codes section for more information.

error_msgstring required

Message detailing the status of the response.

Example response

{
  "error_msg": "Done."
}