Income categories
Shows you how to manage income categories
CREATE
POST https://api.pesatime.com/v1/income_categories
Create a new category
Request Body
Name
Type
Description
name
string
The name of the category
{
"status": 1,
"message": "Saved",
"data": {
"_id": "5dce4b8a4d44af36f693cd2b"
}
}{
"status": 0,
"message": "Error description here"
}UPDATE
PUT https://api.pesatime.com/v1/income_categories/:categoryId
Update category
Path Parameters
Name
Type
Description
categoryId
string
The ID of the category to update
Request Body
Name
Type
Description
name
string
The new name
RETRIEVE
GET https://api.pesatime.com/v1/income_categories/:categoryId
Get category details
Path Parameters
Name
Type
Description
categoryId
string
The ID of the category to get details for
DELETE
DELETE https://api.pesatime.com/v1/expense_categories/:categoryId
Delete category
Path Parameters
Name
Type
Description
categoryId
string
The ID of the category to delete
Last updated
Was this helpful?