transactions

Update a transaction

Updates an existing transaction

put/transactions/{id}

Request

  • Base URL: http://localhost:3001
  • URL: http://localhost:3001/transactions/{id}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required

Transaction ID

Request body

type'expense' | 'transfer' | 'income'

Type of transaction

descriptionstring

Description of the transaction

amountnumber

Total amount of the transaction

currencystring

Currency code (e.g., USD, EUR)

categoryIdstring

Category ID for the transaction

transactionDatestring

Date of the transaction (ISO string)

billDataobject

Bill splitter data (JSONB), null to clear

Example request

{
  "description": "Dinner at restaurant",
  "amount": 50,
  "currency": "USD",
  "transactionDate": "2024-01-15"
}

Response

Transaction updated successfully

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Success"
}

Changes

No recorded changes to this operation across all 1 revision of this API.