A journal entry is an accounting transaction recorded in the general ledger of a company.
How to get the list of Journal Entries
There are two ways to fetch the list of journal entries from your integrations:
1. Syncs (Webhook-based Bulk Reads)
Syncs provide an automated, push-based approach for bulk data retrieval. Once you set up a sync for an integration, Knit polls the source app for changes and sends updates straight to your webhook. This webhook-based model eliminates the need for you to continuously pull data.
Note: The data models sync does not start automatically. To initiate the synchronization process, you must explicitly call the Sync Start API for the initial sync.
Read more about syncs and webhooks here: https://developers.getknit.dev/docs/register-webhook-url#/
2. Read APIs (On-demand Individual Reads)
Read APIs provide on-demand access to specific data through request-response calls. These are standard GET/List operations that allow you to retrieve journal entry information whenever needed.
You can refer to accounting APIs here: https://developers.getknit.dev/reference/list-journal-entries#/
Data Model
| Model ID | Event Key | Description |
|---|---|---|
accounting_journalEntry_info | info | |
accounting_journalEntry_lineItems | lineItems |
JournalEntry Info
Model ID: accounting_journalEntry_info
| Field | Type | Description |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List of company Ids associated with object. (Applicable for multi subsidiary apps like Netsuite.) |
|
|
One of among Currency Codes (ISO 4217) like- |
|
|
|
|
|
JournalEntry LineItems
Model ID: accounting_journalEntry_lineItems
| Field | Type | Description |
|---|---|---|
id | String | |
accountId | String | |
contactId | String | |
amount | Double | |
type | Enum | [DEBIT, CREDIT] |
description | String |
Event Data Example
{
"info": {
"id": "81436930-df53-468b-8eac-38ea7d49bde8",
"name": "Merchandise Transaction",
"date": "2024-05-23T00:00:00Z",
"status": "PUBLISHED",
"createdAt": "2024-05-22T19:01:07Z",
"updatedAt": "2024-05-22T19:01:07Z",
"description": "This is Tshirt payment.",
"companyId": "ac19c8f9-a901-4db3-bef1-5aaca2a7c15a",
"currency": "USD",
"exchangeRate": "1.0",
"referenceNumber": "7"
},
"lineItems": [
{
"id": "184bcff6-80b9-4d9d-a5eb-80c0df11cf36",
"accountId": "72411c77-e640-4336-9e2d-ed3c7617a7af",
"contactId": "72411c77-72411c77",
"amount": 100,
"type": "CREDIT",
"description": "Recived for Tshirt Payment"
},
{
"id": "a0db14b9-2473-496d-b36a-de05b213821e",
"accountId": "cab8b832-d89e-4274-9a1d-d0e0de62657c",
"contactId": "72411c77",
"amount": 100,
"type": "DEBIT",
"description": "Tshirt of medium size and black color from Knit Pvt. Ltd."
}
]
}