Finance Tracker API
Github
Github
  1. Wallet
  • 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. Wallet

Update Wallet

Developing
PUT
/wallet/9622dd5b-524f-46f5-b58a-0f2785e2dbbf
Maintainer:Sofyan R.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:3000/wallet/9622dd5b-524f-46f5-b58a-0f2785e2dbbf' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Tunai",
  "balance": 0,
  "type": "cash", // cash | bank | ewallet | investment
  "color": "#EF4444"
}'
Response Response Example
{
    "success": true,
    "message": "Wallet updated successfully",
    "data": {
        "id": "9622dd5b-524f-46f5-b58a-0f2785e2dbbf",
        "name": "Tunai",
        "balance": 0,
        "income": 0,
        "expense": 0,
        "type": "cash",
        "color": "#EF4444",
        "userId": "dfa5a62f-0a5d-431c-ae61-9bf077721a1c",
        "createdAt": "2025-07-24T04:06:35.238Z",
        "modifiedAt": "2025-07-24T04:07:38.796Z"
    }
}

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-24 08:38:16
Previous
Create Wallet
Next
Get Wallet by User
Built with