URL: {{base_url}}/modules/expenses/addCategory

Method: POST

Bearer Token: Replace this with an actual token in the request

Headers

Subscription: Replace this with the subscription value

Access_Token: Replace this with the actual access token value

Request Body

KeyValuesRequired
nameEnter the category nameYes
categoryValue should either be direct or indirectYes

Below is an example of json request body

{
    "name":"Rent",
    "category":"indirect"
}


## Response Codes

| Code | Description                        |
| ---- | ---------------------------------- |
| 201  | Successful                         |
| 500  | Internal Server Error              |
| 400  | Invalid entry  |
| 401  | Unauthorized: Check error message  |