Create an Income Source
Income
Create an Income Source
This endpoint creates an income source for the specified user.
The details that should be specified in the request body are:
- the income source (string) - the income’s description
- the payDate (date) - the date the income was paid
- the category (string) - the category of the income
- the account’s id (string) - the account that was credited
- the amount (number) - the amount made from the income source
When you’re withdrawing from an investment, you can use this endpoint by assigning the investment ID to the income source. This will ensure the amount is deducted from the investment and credited to the account.
The response body is a JSON object that includes an array of all the user’s income sources. The individual income object contains:
- the income source (string) - the income’s description
- the payDate (date) - the date the income was paid
- the category (string) - the category of the income
- the account’s id (string) - the account that was credited
- the amount (number) - the amount made from the income source
- _id (string) - the unique identifier for the income
POST
Create an Income Source
Query Parameters
required
Body
application/json
The body is of type object.
Response
Created
The response is of type object.

