Overview / Finance / Update an entry

Update an entry

patch https://api.flactrum.com/v1/transactions/{transaction}
Required scope transactions.write
Success status200
Returns One Transaction object

Parameters

NameInTypeDescription
transaction * path string ULID of the record.

Request body

FieldTypeDescription
branch_id * string —
type * string —
category * string Free text: rent, utilities, tips…
amount * number —
affects_cash boolean —
payment_method_id string|null —
description string|null —
transaction_date * string —
receipt string Receipt photo or PDF (jpg, png, webp, pdf; max 5 MB). Send as multipart/form-data; on update use POST with _method=PATCH.
remove_receipt boolean Removes the attached receipt.

Response fields

FieldTypeDescription
id string —
branch_id string —
type string —
category string —
amount number Always positive; the direction comes from type.
affects_cash boolean Whether it passes through the till. A bill paid by bank transfer is an expense but does not change the day-end cash count.
payment_method_id string|null —
order_id string|null Set when the entry came from a sale rather than being typed in.
transaction_date string —
receipt_url string|null Photo or PDF of the receipt, when one was attached.

Examples

No recorded example yet.