POST
/
expense
/
add
Create an Expense
curl --request POST \
  --url https://cashboard-f5x2.onrender.com/expense/add \
  --header 'Content-Type: application/json' \
  --data '{
  "desc": "Electricity bill",
  "category": "Utility",
  "account": "662fbf9eac827e370c18d4b9",
  "date": "2/04/2024",
  "amount": 1000
}'
{
  "expenses": [
    {
      "desc": "Electricity bill",
      "category": "Utility",
      "date": "2024-02-04T00:00:00.000Z",
      "account": "662fbf9eac827e370c18d4b9",
      "amount": 1000,
      "_id": "662fce008f1d17198913a0ab"
    }
  ]
}

Query Parameters

user
string

required

Body

application/json · object

Response

200
application/json

OK

The response is of type object.