Finance Tracker API
Github
Github
  1. Transaction
  • Auth
    • Login
      POST
    • Register
      POST
    • Login Google
      GET
    • Login Google Callback
      GET
  • User
    • Get Me
      GET
    • Update Profile
      PUT
    • Change Password
      PUT
    • Set Password for User Register by Google
      PUT
    • Get Password Status
      GET
  • Category
    • Create Category
      POST
    • Update Category
      PUT
    • Get Category by User
      GET
    • Delete Category
      DELETE
  • Wallet
    • Create Wallet
      POST
    • Update Wallet
      PUT
    • Get Wallet by User
      GET
    • Delete Wallet
      DELETE
  • Transaction
    • Delete Transaction
      DELETE
    • Get Transaction by User
      GET
    • Update Transaction
      PUT
    • Create Transaction
      POST
  • Setting
    • Get Setting
      GET
    • Update Setting
      PUT
  • Report
    • Get Wallet Summary
    • Get Chart Line Data
    • Get Chart Pie Data
  1. Transaction

Update Transaction

Developing
PUT
/transaction/7d5339c3-ceee-460e-9466-07ca81c48c65
Maintainer:Sofyan R.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:3000/transaction/7d5339c3-ceee-460e-9466-07ca81c48c65' \
--header 'Content-Type: application/json' \
--data-raw '{
  "title": "Salary Payment",
  "amount": 5000000,
  "type": "income",
  "date": "2024-01-15T09:00:00.000Z",
  "categoryId": "0ed0dc90-5317-4d8d-bb1b-8a039f4e6d86",
  "walletId": "9127d67b-d84e-4455-ad91-6008971950d2"
}'
Response Response Example
{
    "success": true,
    "message": "Transaction updated successfully",
    "data": {
        "id": "7d5339c3-ceee-460e-9466-07ca81c48c65",
        "title": "Salary Payment",
        "amount": 5000000,
        "type": "income",
        "date": "2024-01-15T09:00:00.000Z",
        "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
        "categoryId": "0ed0dc90-5317-4d8d-bb1b-8a039f4e6d86",
        "walletId": "9127d67b-d84e-4455-ad91-6008971950d2",
        "category": {
            "id": "0ed0dc90-5317-4d8d-bb1b-8a039f4e6d86",
            "name": "Salary",
            "type": "income",
            "icon": "💰",
            "color": "#45B7D1",
            "userId": "dfa5a62f-0a5d-431c-ae61-9bf077721a1c",
            "createdAt": "2025-07-23T02:30:30.378Z",
            "modifiedAt": "2025-07-23T02:30:30.378Z"
        },
        "wallet": {
            "id": "9127d67b-d84e-4455-ad91-6008971950d2",
            "name": "Bank BCA",
            "balance": 0,
            "type": "bank",
            "color": "#3357FF",
            "userId": "dfa5a62f-0a5d-431c-ae61-9bf077721a1c",
            "createdAt": "2025-07-23T02:58:06.286Z",
            "modifiedAt": "2025-07-23T03:49:34.324Z"
        },
        "createdAt": "2025-07-25T02:22:25.082Z",
        "modifiedAt": "2025-07-25T02:22:58.102Z"
    }
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

Modified at 2025-07-25 02:23:37
Previous
Get Transaction by User
Next
Create Transaction
Built with