POST
/
accounting
/
journal_entries
/
all
curl --request POST \
  --url https://api.rootfi.dev/accounting/journal_entries/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "amount": "asc"
  },
  "filter": {
    "account_id": {
      "eq": "1234567890123456789"
    }
  }
}'
{
  "data": {
    "data": [
      {
        "rootfi_id": 4040342,
        "rootfi_company_id": 1760,
        "rootfi_organisation_id": 1,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_updated_at": "2023-10-26T16:15:02.517Z",
        "rootfi_created_at": "2023-10-26T16:15:02.530Z",
        "platform_id": "1234567890123456789",
        "account_id": "1234567890123456789",
        "currency_id": null,
        "document_number": null,
        "description": "Opening Balance",
        "posted_date": "2023-01-03T00:00:00.000Z",
        "amount": 13495,
        "currency_rate": 1,
        "journal_entry_type": "both",
        "updated_at": "2023-01-15T00:00:00.000Z",
        "currency": {
          "data": {
            "platform_id": null,
            "name": null,
            "code": null,
            "symbol": null,
            "is_base_currency": null,
            "exchange_rate": null,
            "updated_at": null
          }
        },
        "journal_lines": {
          "data": [
            {
              "platform_id": "3770712000001725038",
              "journal_entry_id": "3770712000001725026",
              "account_id": "3770712000000035001",
              "contact_id": "3770712000000080780",
              "tax_id": null,
              "tracking_category_ids": [
                "3770712000000000335_3770712000001122010"
              ],
              "type": "DEBIT",
              "description": "Test Description for Journal",
              "net_amount": 5,
              "tax_amount": null,
              "updated_at": null
            }
          ]
        }
      }
    ],
    "total_count": 1
  },
  "request_timestamp": "2023-10-26T16:15:02.517Z",
  "response_timestamp": "2023-10-26T16:15:02.517Z",
  "request_id": "f5b0a0f0-5b1a-11ec-9c3a-0242ac130002"
}

The Journal Entries are basic records of a company’s financial transactions used to record the debits and credits of each transaction.

curl --request POST \
  --url https://api.rootfi.dev/accounting/journal_entries/all \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "take": 10,
  "skip": 0,
  "orderBy": {
    "amount": "asc"
  },
  "filter": {
    "account_id": {
      "eq": "1234567890123456789"
    }
  }
}'

Authorizations

api_key
string
header
required

Body

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

Response

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

request_id
string
required

The unique ID of the request