POST
/
income
/
add
Create an Income Source
curl --request POST \
  --url https://cashboard-f5x2.onrender.com/income/add \
  --header 'Content-Type: application/json' \
  --data '{
  "source": "Side Hustle: Selling Shoes",
  "payDate": "11/02/2024",
  "category": "side hustle",
  "account": "662fbf9eac827e370c18d4b9",
  "amount": "7000"
}'
{
  "income": [
    {
      "source": "Side Hustle: Selling Shoes",
      "payDate": "2024-11-02T00:00:00.000Z",
      "account": "662fbf9eac827e370c18d4b9",
      "category": "side hustle",
      "amount": 7000,
      "_id": "662fbfcaac827e370c18d4bf"
    }
  ]
}

Query Parameters

user
string

required

Body

application/json · object

Response

201
application/json

Created

The response is of type object.