v1

latestOpenAPI 3.1.02026-07-2438302.6 MB

Get All Expenses

get/expenses

Query parameters

pageinteger
countinteger
filter.keywordstring
filter.expense_categorystring

Expense category UID

filter.expense_date_fromstring date
filter.expense_date_tostring date
filter.jobstring

job_uid

filter.projectstring

project_uid

filter.created_bystring

user_uid

filter.reimbursable_tostring

Reimbursable to User Uid

Response

200

typestring
messagestring

Example response

{
  "type": "success",
  "message": "success",
  "data": [
    {
      "is_reimbursable": true,
      "is_billable": true,
      "attachments": [
        {
          "attachment_uid": "7cfa15d8-a81d-4c79-8545-a72ed6f83328",
          "file_name": "test file new",
          "url": "kjbk",
          "file_size": 200,
          "created_by": 9,
          "_id": "66f3d688f2242e2f40c834f3",
          "created_at": "2024-09-25T09:23:20.560Z"
        }
      ],
      "expense_uid": "93b7db05-b687-45a8-ac5d-10bcf89bb735",
      "expense_title": "Updated expense 1",
      "expense_category": {
        "expense_category_uid": "3aa05de4-358c-4769-b518-e4bf67df1bff",
        "category_name": "Category 1",
        "category_color": "#000000"
      },
      "expense_date": "2024-10-20T09:00:45.000Z",
      "description": "new description",
      "expense_amount": 25,
      "reimbursable_to": {
        "first_name": "Zayn",
        "last_name": "Malik",
        "user_uid": "548f253d-29f2-4419-9abc-07eb1e5e7154"
      },
      "created_by": {
        "first_name": "Delvin",
        "last_name": "joseph",
        "user_uid": "0af4f566-aa7a-4fdb-839a-ee42821a87a0"
      },
      "project": {
        "project_uid": "4737c8a3-65cb-4dc7-97d0-1370edd35622",
        "project_name": "Expense Category",
        "project_number": 2
      },
      "created_at": "2024-09-25T08:51:32.012Z",
      "updated_at": "2024-09-25T09:24:03.864Z"
    }
  ]
}