Edit an expense.
PATCH
/api/expenses/{expenseId}
const url = 'https://api.tradr.cloud/api/expenses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"amount":"example","category":"data_subscription","currency":"example","description":"example","notes":"example","occurredAt":"2026-04-15"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.tradr.cloud/api/expenses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "amount": "example", "category": "data_subscription", "currency": "example", "description": "example", "notes": "example", "occurredAt": "2026-04-15" }'Authed. A partial update — only the fields you send change.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”expenseId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amount
Positive decimal
string
category
string
currency
string
description
string
notes
string
occurredAt
string format: date
Responses
Section titled “Responses”The updated expense.
Validation error
No such expense for this user.