Expenses
Manage expenses
CREATE
POST
https://api.pesatime.com/v1/expenses
Record a new expense
Request Body
description
string
Add any other information here
category
string
The category ID
date
string
The date of the expense in format YYYY-MM-DD HH:MM
amount
number
The expense amount
UPDATE
PUT
https://api.pesatime.com/v1/expenses/:expenseId
Update an expense
Path Parameters
expenseId
string
The ID of the expense to update
Request Body
description
string
New description for the exp
category
string
The new category ID
date
string
Date in format YYYY-MM-DD
amount
number
The new amount
RETRIEVE - All
GET
https://api.pesatime.com/v1/expenses
Retrieves all expenses
Path Parameters
expenseID
string
The ID of the expense to retrieve details for
Query Parameters
description
string
Search part of the description
category
string
The ID of the category
date_to
string
Date expense incurred (YYYY-MM-DD) e.g. 2019-10-14
date_from
string
Date expense incurred (YYYY-MM-DD) e.g. 2019-10-13
RETRIEVE - single item
GET
https://api.pesatime.com/v1/expenses/:expenseId
Get details of one item
Path Parameters
expenseId
string
Id of the expense to get details for
DELETE
DELETE
https://api.pesatime.com/v1/expenses/:expenseId
Delete a category
Path Parameters
expenseId
string
The ID of the expense to delete
Last updated
Was this helpful?