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
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