Journal Entries
Retrieve journal entries
General
Server Side SDKs
Core API
- Companies
- Invite Links
- Integrations
- Sync
- Jobs
- Passthrough
Unified API
- Accounting
- Accounts
- Bank Accounts
- Bank Transactions
- Bills
- Bill Payments
- Bill Credit Notes
- Contacts
- Company Info
- Currencies
- Documents
- Expenses
- Invoice Credit Notes
- Invoices
- Invoice Payments
- Items
- Journal Entries
- Purchase Orders
- Sales Orders
- Goods Receipt Notes
- Projects
- Tax Rates
- Tracking Categories
- Balance Sheet
- Cash Flow Statements
- Income Statements
Journal Entries
Retrieve journal entries
Retrieve journal entries from the database based on the ID
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
Body
application/json
Response
200 - application/json
The response is of type object
.
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"
}