curl --request PATCH \
--url https://api.example.com/api/transactions/:id \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": {},
"amount": 123,
"accountId": "<string>",
"currency": "<string>",
"description": "<string>",
"date": "<string>",
"categoryId": "<string>"
}
'{
"400": {},
"401": {},
"404": {},
"id": "<string>",
"type": "<string>",
"amount": 123,
"currency": "<string>",
"description": "<string>",
"date": "<string>",
"account": {},
"category": {},
"updatedAt": "<string>"
}Update an existing transaction with partial data
curl --request PATCH \
--url https://api.example.com/api/transactions/:id \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"type": {},
"amount": 123,
"accountId": "<string>",
"currency": "<string>",
"description": "<string>",
"date": "<string>",
"categoryId": "<string>"
}
'{
"400": {},
"401": {},
"404": {},
"id": "<string>",
"type": "<string>",
"amount": 123,
"currency": "<string>",
"description": "<string>",
"date": "<string>",
"account": {},
"category": {},
"updatedAt": "<string>"
}accountId, the system will:
curl -X PATCH https://api.yourfinanceapp.com/api/transactions/a3c4e8f2-9d7b-4a1c-8e3f-2b5d9a7c1e4f \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": 1650.50,
"description": "Compra de comestibles (actualizado)"
}'
{
"id": "a3c4e8f2-9d7b-4a1c-8e3f-2b5d9a7c1e4f",
"type": "EXPENSE",
"amount": 1650.50,
"currency": "ARS",
"description": "Compra de comestibles (actualizado)",
"date": "2026-03-04T14:30:00.000Z",
"userId": "user-uuid-123",
"accountId": "uuid-de-la-cuenta",
"categoryId": "92b77be3-a14a-462c-a291-7eff27cbcf47",
"account": {
"id": "uuid-de-la-cuenta",
"name": "Cuenta Principal",
"type": "WALLET",
"balance": 8349.50,
"currency": "ARS"
},
"category": {
"id": "92b77be3-a14a-462c-a291-7eff27cbcf47",
"name": "Alimentos",
"type": "EXPENSE",
"icon": "🛒"
},
"createdAt": "2026-03-04T14:30:15.123Z",
"updatedAt": "2026-03-04T15:45:30.789Z",
"deletedAt": null
}