GET
/
accounting
/
expenses
curl --request GET \
  --url https://api.rootfi.dev/v3/accounting/expenses \
  --header 'api_key: <api-key>'
{
  "data": [
    {
      "rootfi_id": 123,
      "rootfi_deleted_at": null,
      "rootfi_created_at": "2024-01-25T09:00:00Z",
      "rootfi_updated_at": "2024-01-25T09:00:00Z",
      "rootfi_company_id": 456,
      "platform_id": "123456_1",
      "platform_unique_id": "123456",
      "currency_id": "AED",
      "account_id": "acc_56S9s4tRcvkHJBCrgzj3YM",
      "contact_id": "co_UVH2BXam9VXbtZzJXa4Ctr",
      "sub_total": 400,
      "tax_amount": 2.5,
      "total_amount": 400,
      "document_number": "testttt expense",
      "memo": "Testttt",
      "updated_at": "2023-06-03T00:00:00.000Z",
      "payment_mode": "cash",
      "currency_rate": 1.5,
      "posted_date": "2023-06-03T00:00:00.000Z",
      "line_items": [
        {
          "rootfi_id": 157,
          "platform_id": "123456",
          "line_item_type": "INVOICES",
          "line_item_type_id": "123456",
          "tracking_category_ids": [
            "123456"
          ],
          "project_id": "123456",
          "item_id": "123456",
          "tax_id": "123456",
          "account_id": "123456",
          "description": "This is a description",
          "quantity": 1,
          "unit_amount": 100,
          "total_amount": 100,
          "sub_total": 100,
          "tax_amount": 100,
          "total_discount": 100,
          "updated_at": "2024-01-22T05:07:31.000Z"
        }
      ]
    }
  ],
  "prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
  "next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
  "total_count": 123
}

Expenses are Payment made by a business at the time of purchase (ex. a credit card payment)

Authorizations

api_key
string
header
required

Query Parameters

limit
integer | null

The number of objects you want to retrieve

next
string | null

The next page of objects to retrieve

prev
string | null

The previous page of objects to retrieve

expand
string | null

Comma separated fields to expand. Supported values are account, line_items, contact, currency, documents

select
string | null

Comma separated fields to select. Supported values are raw_data, data_hash

rootfi_updated_at[gte]
string | null

Filter by rootfi_updated_at Greater than or Equal To.

rootfi_company_id[eq]
integer | null

Filter by rootfi_company_id. You can filter by any field using this syntax field_name[operator]

include_deleted_records
string | null

Include deleted records. By default, deleted records are not included. Supported values are true and false

return_count
string | null

Return the count of the objects. Supported values are true and false

sort[rootfi_created_at]
enum<string>

Sort by rootfi_created_at

Available options:
ASC,
DESC
sort[rootfi_updated_at]
enum<string>

Sort by rootfi_updated_at

Available options:
ASC,
DESC

Response

200
application/json

The data of the Expenses endpoint

data
object[]
required
prev
string | null

The previous page of objects to retrieve

next
string | null

The next page of objects to retrieve

total_count
integer | null

The total count of the objects