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

Create Category

Developing
POST
/category
Maintainer:Sofyan R.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/category' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Belanja",
  "type": "expense", // income | expense
  "icon": "😊",
  "color": "#EF4444"
}'
Response Response Example
{
    "success": true,
    "message": "Category created successfully",
    "data": {
        "id": "0855def1-8644-4cec-8b00-d15b73166312",
        "name": "Belanja",
        "type": "expense",
        "icon": "😊",
        "color": "#EF4444",
        "userId": "1a951327-7814-402e-a1f6-0cf1faefa68b",
        "createdAt": "2025-07-24T06:09:45.983Z",
        "modifiedAt": "2025-07-24T06:09:45.983Z"
    }
}

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 06:42:42
Previous
Get Password Status
Next
Update Category
Built with