Skip to main content
GET
/
api
/
bills
List bills
curl --request GET \
  --url https://api.ai2fin.com/api/bills \
  --header 'Authorization: Bearer <token>'
{
  "bills": [
    {
      "id": "<string>",
      "name": "<string>",
      "amount": 123,
      "dueDate": "2023-12-25",
      "paid": true,
      "categoryId": "<string>",
      "category": {
        "id": "<string>",
        "name": "<string>",
        "icon": "<string>",
        "color": "<string>",
        "isTaxDeductible": true,
        "taxCategory": "<string>",
        "defaultGstRate": 123
      },
      "recurring": true
    }
  ],
  "pagination": {
    "page": 123,
    "limit": 123,
    "total": 123,
    "pages": 123
  }
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/auth/login endpoint

Query Parameters

page
integer
default:1
limit
integer
default:50
paid
boolean
fromDate
string<date>
toDate
string<date>

Response

200 - application/json

Bills retrieved successfully

bills
object[]
pagination
object