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": [
      {
        "account_id": "1234567890123456789",
        "amount": 13495,
        "currency": {
          "data": {
            "code": null,
            "exchange_rate": null,
            "is_base_currency": null,
            "name": null,
            "platform_id": null,
            "symbol": null,
            "updated_at": null
          }
        },
        "currency_id": null,
        "currency_rate": 1,
        "description": "Opening Balance",
        "document_number": null,
        "journal_entry_type": "both",
        "journal_lines": {
          "data": [
            {
              "account_id": "3770712000000035001",
              "contact_id": "3770712000000080780",
              "description": "Test Description for Journal",
              "journal_entry_id": "3770712000001725026",
              "net_amount": 5,
              "platform_id": "3770712000001725038",
              "tax_amount": null,
              "tax_id": null,
              "tracking_category_ids": [
                "3770712000000000335_3770712000001122010"
              ],
              "type": "DEBIT",
              "updated_at": null
            }
          ]
        },
        "platform_id": "1234567890123456789",
        "posted_date": "2023-01-03T00:00:00.000Z",
        "rootfi_company_id": 1760,
        "rootfi_created_at": "2023-10-26T16:15:02.530Z",
        "rootfi_id": 4040342,
        "rootfi_integration_type": "ZOHO_BOOKS",
        "rootfi_organisation_id": 1,
        "rootfi_updated_at": "2023-10-26T16:15:02.517Z",
        "updated_at": "2023-01-15T00:00:00.000Z"
      }
    ],
    "total_count": 1
  },
  "request_id": "f5b0a0f0-5b1a-11ec-9c3a-0242ac130002",
  "request_timestamp": "2023-10-26T16:15:02.517Z",
  "response_timestamp": "2023-10-26T16:15:02.517Z"
}

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

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