POST
/
accounting
/
accounts
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/accounts/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api_key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "nominal_code": "asc"
  },
  "filter": {
    "name": {
      "eq": "Rootfi Test"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "category": "LIABILITY",
        "currency": {
          "data": {
            "code": "INR",
            "exchange_rate": 0,
            "is_base_currency": true,
            "name": "Indian Rupee",
            "platform_id": "3770712000000000099",
            "symbol": "₹",
            "updated_at": null
          }
        },
        "currency_id": "3770712000000000099",
        "current_balance": 12345,
        "description": "Test Description",
        "name": "Test Account",
        "nominal_code": "Rootfi 01",
        "parent_account": {},
        "parent_account_id": null,
        "platform_id": "1234567890123456789",
        "rootfi_company_id": 123456,
        "rootfi_created_at": "2021-09-28T15:00:00.000Z",
        "rootfi_id": 123456,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2021-09-28T15:00:00.000Z",
        "status": "ACTIVE",
        "sub_category": "long_term_liability",
        "updated_at": "2021-09-28T15:00:00.000Z"
      }
    ],
    "total_count": 0
  },
  "request_id": "7a1c0e42-9f85-4d6e-bb5d-358a72913c0b",
  "request_timestamp": "2021-09-28T15:00:00.000Z",
  "response_timestamp": "2021-09-28T15:00:00.000Z"
}

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

Body

application/json
filter
object
orderBy
object
skip
integer | null
take
integer | null

Response

200 - application/json
data
object
required
request_id
string
required

The unique ID of the request

request_timestamp
string
required

The time at which the request was received by the server

response_timestamp
string
required

The time at which the response was sent by the server