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

Get Category by User

Developing
GET
/category
Maintainer:Sofyan R.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:3000/category'
Response Response Example
{
    "success": true,
    "message": "Categories fetched successfully",
    "data": [
        {
            "id": "0855def1-8644-4cec-8b00-d15b73166312",
            "name": "Belanja",
            "type": "income",
            "icon": "😊",
            "color": "#EF4444",
            "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
            "createdAt": "2025-07-24T06:09:45.983Z",
            "modifiedAt": "2025-07-24T06:10:06.803Z"
        },
        {
            "id": "09a28a95-0b55-4c90-a491-cedf15339578",
            "name": "Shopping",
            "type": "expense",
            "icon": "🛍️",
            "color": "#96CEB4",
            "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
            "createdAt": "2025-07-24T06:04:43.688Z",
            "modifiedAt": "2025-07-24T06:04:43.688Z"
        },
        {
            "id": "2d30b915-241f-4959-976b-6da1f96105d5",
            "name": "Salary",
            "type": "income",
            "icon": "💰",
            "color": "#45B7D1",
            "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
            "createdAt": "2025-07-24T06:04:43.687Z",
            "modifiedAt": "2025-07-24T06:04:43.687Z"
        },
        {
            "id": "2af38021-7f6e-4706-aa06-5f9b1f4a2029",
            "name": "Food",
            "type": "expense",
            "icon": "🍔",
            "color": "#FF6B6B",
            "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
            "createdAt": "2025-07-24T06:04:43.686Z",
            "modifiedAt": "2025-07-24T06:04:43.686Z"
        },
        {
            "id": "81da5cd5-6d17-46de-9f1e-f57df42e855e",
            "name": "Transport",
            "type": "expense",
            "icon": "🚗",
            "color": "#4ECDC4",
            "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
            "createdAt": "2025-07-24T06:04:43.686Z",
            "modifiedAt": "2025-07-24T06:04:43.686Z"
        }
    ]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

Responses

🟢200OK
application/json
Body

Modified at 2025-07-24 06:42:38
Previous
Update Category
Next
Delete Category
Built with