Expenses
Add Expense Category
Endpoint for adding expense category.
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
Key | Values | Required |
---|---|---|
name | Enter the category name | Yes |
category | Value should either be direct or indirect | Yes |
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 |