GET
/
accounting
/
accounts
curl --request GET \
  --url https://api.rootfi.dev/v3/accounting/accounts \
  --header 'api_key: <api-key>'
{
  "data": [
    {
      "rootfi_id": 157,
      "rootfi_deleted_at": null,
      "rootfi_created_at": "2024-01-22T05:07:31.465Z",
      "rootfi_updated_at": "2024-01-22T05:07:31.000Z",
      "rootfi_company_id": 1089,
      "platform_id": "123456_1",
      "platform_unique_id": "123456",
      "name": "Rootfi Test Account",
      "description": "Rootfi Test Account",
      "nominal_code": "123456",
      "current_balance": 0,
      "updated_at": "2021-08-10T14:00:00.000Z",
      "status": "active",
      "category": "ASSET",
      "sub_category": "Test",
      "currency_id": "123456",
      "parent_account_id": "1234567"
    }
  ],
  "prev": "eyJyb290ZmlfaWQiOjQ0MDA2MX0=",
  "next": "eyJyb291ZmlfaWQiOjQ0MDA2MX0=",
  "total_count": 123
}

The Accounts Data Model is designed to streamline the management and retrieval of account-related information across various accounting platforms.

Authorizations

api_key
string
headerrequired

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 currency

select
string | null

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

rootfi_company_id[eq]
integer | null

Filter by rootfi_company_id

include_deleted_records
boolean | null

Include deleted records. By default, deleted records are not included.

return_count
boolean | null

Return the count of the objects

sort[rootfi_created_at]
enum<string> | null

Sort by rootfi_created_at

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

Sort by rootfi_updated_at

Available options:
ASC,
DESC

Response

200 - application/json
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

data
object[]
required