Skip to main content
POST
/
api
/
bills
Create bill
curl --request POST \
  --url https://api.ai2fin.com/api/bills \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "amount": 123,
  "dueDate": "2023-12-25",
  "categoryId": "<string>",
  "notes": "<string>"
}'

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Body

application/json
name
string
required
amount
number
required
dueDate
string<date>
required
categoryId
string
notes
string

Response

201

Bill created successfully