Accounting
General ledger accounts, journal entries, accounting rules, and financial reporting
/fineract-provider/api/v1/glaccountsList ledger accounts
Retrieves all general ledger accounts in the chart of accounts.
Query Parameters
typeintegerFilter by account type (1=Asset, 2=Liability, 3=Equity, 4=Income, 5=Expense)
searchParamstringSearch by name or GL code
usageintegerFilter by usage (1=Detail, 2=Header)
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glaccounts" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"totalFilteredRecords": 25,
"pageItems": [
{
"id": 1,
"displayName": "Sample Item 1",
"status": "active"
},
{
"id": 2,
"displayName": "Sample Item 2",
"status": "active"
}
]
}/fineract-provider/api/v1/glaccounts/{glAccountId}Retrieve ledger account
Gets details of a specific general ledger account.
Path Parameters
glAccountIdintegerrequiredGL Account ID
Query Parameters
fetchRunningBalancebooleanInclude running balance
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glaccounts/:glAccountId" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"id": 1,
"status": {
"id": 300,
"code": "statusType.active",
"value": "Active"
},
"officeId": 1,
"officeName": "Head Office",
"createdDate": "2024-01-15",
"lastModifiedDate": "2024-01-20"
}/fineract-provider/api/v1/glaccountsCreate ledger account
Creates a new general ledger account in the chart of accounts.
Request Bodyrequired
GL account details
namestringAccount name
glCodestringUnique GL code
typeintegerAccount type (1-5)
usageintegerUsage type (1=Detail, 2=Header)
manualEntriesAllowedbooleandescriptionstringparentIdintegerParent account ID
tagIdintegerTag code value ID
Returns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glaccounts" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"name": "sample_name",
"glCode": "sample_glCode",
"type": 1,
"usage": 1,
"manualEntriesAllowed": true,
"description": "sample_description",
"parentId": 1,
"tagId": 1
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/glaccounts/{glAccountId}Update ledger account
Updates an existing general ledger account.
Path Parameters
glAccountIdintegerrequiredGL Account ID
Request Bodyrequired
Updated account details
namestringglCodestringdescriptionstringmanualEntriesAllowedbooleandisabledbooleanReturns
Request
curl --request PUT \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glaccounts/:glAccountId" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"name": "sample_name",
"glCode": "sample_glCode",
"description": "sample_description",
"manualEntriesAllowed": true,
"disabled": true
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/glaccounts/{glAccountId}Delete ledger account
Deletes a general ledger account. Only accounts without transactions can be deleted.
Path Parameters
glAccountIdintegerrequiredGL Account ID
Returns
Request
curl --request DELETE \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glaccounts/:glAccountId" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/journalentriesList journal entries
Retrieves journal entries with optional filtering by date range, office, and account.
Query Parameters
officeIdintegerFilter by office
glAccountIdintegerFilter by GL account
entryIdintegerFilter by entry ID
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/journalentries" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"totalFilteredRecords": 25,
"pageItems": [
{
"id": 1,
"displayName": "Sample Item 1",
"status": "active"
},
{
"id": 2,
"displayName": "Sample Item 2",
"status": "active"
}
]
}/fineract-provider/api/v1/journalentries/{entryId}Retrieve journal entry
Gets details of a specific journal entry.
Path Parameters
entryIdintegerrequiredEntry ID
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/journalentries/:entryId" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"id": 1,
"status": {
"id": 300,
"code": "statusType.active",
"value": "Active"
},
"officeId": 1,
"officeName": "Head Office",
"createdDate": "2024-01-15",
"lastModifiedDate": "2024-01-20"
}/fineract-provider/api/v1/journalentriesCreate journal entries
Creates a new journal entry with debit and credit lines. Debits must equal credits.
Request Bodyrequired
Journal entry details
officeIdintegerOffice ID
transactionDatestringcurrencyCodestringCurrency code (e.g., USD)
commentsstringreferenceNumberstringcreditsarraydebitsarraydateFormatstringlocalestringReturns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/journalentries" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"officeId": 1,
"transactionDate": "01 January 2024",
"currencyCode": "sample_currencyCode",
"comments": "sample_comments",
"referenceNumber": "sample_referenceNumber",
"credits": [],
"debits": [],
"dateFormat": "01 January 2024",
"locale": "sample_locale"
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/journalentries/{transactionId}?command=reverseReverse journal entry
Creates a reversal entry for an existing journal entry.
Path Parameters
transactionIdstringrequiredTransaction ID to reverse
Request Bodyrequired
Reversal details
commentsstringReversal reason
Returns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/journalentries/:transactionId?command=reverse" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"comments": "sample_comments"
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/glclosuresList accounting closures
Retrieves all accounting period closures.
Query Parameters
officeIdintegerFilter by office
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glclosures" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"totalFilteredRecords": 25,
"pageItems": [
{
"id": 1,
"displayName": "Sample Item 1",
"status": "active"
},
{
"id": 2,
"displayName": "Sample Item 2",
"status": "active"
}
]
}/fineract-provider/api/v1/glclosuresCreate accounting closure
Creates a new accounting period closure, preventing entries before the closure date.
Request Bodyrequired
Closure details
officeIdintegerclosingDatestringcommentsstringdateFormatstringlocalestringReturns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/glclosures" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"officeId": 1,
"closingDate": "01 January 2024",
"comments": "sample_comments",
"dateFormat": "01 January 2024",
"locale": "sample_locale"
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/accountingrulesList accounting rules
Retrieves all configured accounting rules for automatic journal entry creation.
Returns
Request
curl --request GET \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/accountingrules" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json"Response
{
"totalFilteredRecords": 25,
"pageItems": [
{
"id": 1,
"displayName": "Sample Item 1",
"status": "active"
},
{
"id": 2,
"displayName": "Sample Item 2",
"status": "active"
}
]
}/fineract-provider/api/v1/accountingrulesCreate accounting rule
Creates a new accounting rule for automatic GL mappings.
Request Bodyrequired
Accounting rule details
namestringofficeIdintegeraccountToDebitintegeraccountToCreditintegerdescriptionstringReturns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/accountingrules" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"name": "sample_name",
"officeId": 1,
"accountToDebit": 1,
"accountToCredit": 1,
"description": "sample_description"
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}/fineract-provider/api/v1/runaccrualsRun periodic accrual accounting
Executes periodic accrual accounting to recognize income and expenses.
Request Bodyrequired
Accrual parameters
tillDatestringAccrue up to this date
dateFormatstringlocalestringReturns
Request
curl --request POST \
--url "https://your-fineract-instance.com/fineract-provider/api/v1/runaccruals" \
--header "Authorization: Basic {credentials}" \
--header "Fineract-Platform-TenantId: default" \
--header "Content-Type: application/json" \
--data '{
"tillDate": "01 January 2024",
"dateFormat": "01 January 2024",
"locale": "sample_locale"
}'Response
{
"officeId": 1,
"resourceId": 1,
"changes": {}
}Was this page helpful?