Income
Manage income
CREATE
POST https://api.pesatime.com/v1/income
Record a new sale
Request Body
category
string
Category ID
amount
number
Amount
date
string
The date this sale was made YYYY-MM-DD e.g. 2019-11-03
description
string
Add any notes
{
"status": 1,
"message": "Saved",
"data": {
"_id": "5dce4b8a4d44af36f693cd2b"
}
}{
"status": 0,
"message": "Error message here"
}UPDATE
PUT https://api.pesatime.com/v1/income/:incomeId
Update an income
Path Parameters
incomeId
string
The ID of the income
Request Body
date
string
Date in format YYYY-MM-DD
description
string
The new description
amount
number
The new amount
category
number
New category ID
DELETE
DELETE https://api.pesatime.com/v1/income/:incomeId
Delete a sale
Path Parameters
incomeId
string
ID of the sale to delete
RETRIEVE - All
GET https://api.pesatime.com/v1/income
Retrieve all sales made
Query Parameters
category
string
Category ID
description
string
Contains any of what is put here
date_from
string
The date this sale was made
date_from
string
The date this sale was made
RETRIEVE - single item
GET https://api.pesatime.com/v1/income/:incomeId
Retrieve contents of one sale item
Query Parameters
incomeId
string
The ID of the item to pull
Last updated
Was this helpful?