Skip to main content

Retrieve Journal Entries

Retrieves a paginated and filterable list of journal entries with detailed account information.

Command Name

RetrieveJournalEntriesQuery

Endpoint

POST /api/core/cmd

Request Parameters

ParameterTypeRequiredDescription
currencyCodestringNoFilter by currency code (e.g., "NGN", "USD")
startDatedatetimeNoStart date for filtering (inclusive)
endDatedatetimeNoEnd date for filtering (inclusive)
searchTextstringNoSearch by GL Code or Transaction Reference
glCodestringNoFilter by specific General Ledger code
branchIdlongNoFilter by branch ID (omit for all branches)
pageNumberintegerNoPage number for pagination (default: 1)
pageSizeintegerNoNumber of items per page (default: 20)
isExportbooleanNoExport all results without pagination (default: false)

Request Example

{
"Cmd": "RetrieveJournalEntriesQuery",
"Data": {
"currencyCode": "NGN",
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"searchText": "SAL",
"pageNumber": 1,
"pageSize": 50
}
}

Response Structure

{
"IsSuccessful": true,
"StatusCode": "00",
"Message": "Journal entries retrieved successfully.",
"Data": {
"items": [
{
"Id": 12345,
"GLCode": "1001",
"AccountName": "Cash at Bank",
"AccountTypeId": 1,
"AccountTypeDescription": "Asset",
"JournalEntryType": 1,
"JournalEntryTypeDescription": "Debit",
"DebitAmount": "50000.00",
"CreditAmount": "",
"CurrencyCode": "NGN",
"BranchName": "Head Office",
"TransactionReference": "SAL/2024/001",
"AccountDescription": "Salary Payment January 2024",
"BookingDate": "2024-01-15 10:30:00",
"JournalTransactionId": 789,
"TransactionEncodedKey": "8a8e8e8e8e8e8e8e",
"Notes": "Monthly salary disbursement"
}
],
"totalRows": 150,
"totalPages": 3,
"pageSize": 50,
"currentPage": 1
},
"HasNext": true,
"HasPrevious": false
}

Response Fields

FieldTypeDescription
IdlongUnique journal entry ID
GLCodestringGeneral ledger account code
AccountNamestringName of the GL account
AccountTypeIdintegerAccount type enum value (1=Asset, 2=Liability, 3=Equity, 4=Income, 5=Expense)
AccountTypeDescriptionstringHuman-readable account type
JournalEntryTypeintegerEntry type (1=Debit, 2=Credit)
JournalEntryTypeDescriptionstring"Debit" or "Credit"
DebitAmountstringFormatted debit amount (empty if credit)
CreditAmountstringFormatted credit amount (empty if debit)
CurrencyCodestringThree-letter currency code
BranchNamestringName of the branch
TransactionReferencestringUnique transaction reference
AccountDescriptionstringDescription/narration of the entry
BookingDatestringFormatted booking date
JournalTransactionIdlongParent transaction ID (groups related entries)
TransactionEncodedKeystringEncoded key for the entry
NotesstringAdditional notes

Use Case Example

Retrieve all journal entries for month-end reporting:

{
"Cmd": "RetrieveJournalEntriesQuery",
"Data": {
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"isExport": true,
"currencyCode": "NGN"
}
}