Expense Categories
Show all categories
GET https://YOURACCOUNT.harvestapp.com/expense_categories
To show a single expense category, update your request as follows:
GET https://YOURACCOUNT.harvestapp.com/expense_categories/{EXPENSECATEGORYID}
HTTP Response: 200 OK
Examples
Create new expense category
POST https://YOURACCOUNT.harvestapp.com/expense_categories
After a successful request, we’ll return
LOCATION: /expense_categories/{NEWEXPENSECATEGORYID}
, as well asHTTP Response: 201 Created
Note: unit-name
and unit-price
are only required for expense categories based on unit values.
Examples
Update expense category
PUT https://YOURACCOUNT.harvestapp.com/expense_categories/{EXPENSECATEGORYID}
After a successful request, we’ll return LOCATION: /expense_categories/{NEWEXPENSECATEGORYID}
, as well as HTTP Response: 200 OK
.
Examples
Delete expense category
DELETE https://YOURACCOUNT.harvestapp.com/expense_categories/{EXPENSECATEGORYID}
If the category has no expenses tracked to it, HTTP Response: 200 OK
will be returned. Otherwise, HTTP Response: 400 Bad Request
will be returned if the category is unable to be deleted.