Income
Manage income
Last updated
Manage income
Last updated
POST
https://api.pesatime.com/v1/income
Record a new sale
Name | Type | Description |
---|---|---|
PUT
https://api.pesatime.com/v1/income/:incomeId
Update an income
DELETE
https://api.pesatime.com/v1/income/:incomeId
Delete a sale
GET
https://api.pesatime.com/v1/income
Retrieve all sales made
GET
https://api.pesatime.com/v1/income/:incomeId
Retrieve contents of one sale item
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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
incomeId
string
The ID of the income
date
string
Date in format YYYY-MM-DD
description
string
The new description
amount
number
The new amount
category
number
New category ID
incomeId
string
ID of the sale to delete
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
incomeId
string
The ID of the item to pull