Download OpenAPI specification:
This API computes and manages current account interest for accounting folders: shareholder current accounts, account and accounting-folder interest rates, interest rate ceilings, the interest computation itself and the resulting reports. It is part of the larger Fred platform and is consumed by other Fred services.
All endpoints are protected and require a valid Fred bearer token, except where explicitly marked as anonymous. Authentication and authorization follow the common Inqom mechanism shared by every Fred microservice.
See the shared Inqom authentication documentation for how to obtain a token and call the API behind the gateway.
| Environment | Base URL |
|---|---|
| Production | https://api.inqom.com/current-account-interest |
| Staging | https://api-staging.inqom.com/current-account-interest |
| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| id required | integer <int32> Identifier of the accounting folder interest rate |
{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| id required | integer <int32> Identifier of the accounting folder interest rate |
Accounting folder interest rate data
| Rate required | number <decimal> |
{- "Rate": 0
}{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
Accounting folder interest rate data
| Rate required | number <decimal> |
| StartDate required | string <date-time> |
| EndDate required | string <date-time> |
{- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| id required | integer <int32> Identifier of the accounting folder interest rate ceiling |
{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| id required | integer <int32> Identifier of the accounting folder interest rate ceiling |
Accounting folder interest rate ceiling data
| Rate required | number <decimal> |
{- "Rate": 0
}{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
Accounting folder interest rate ceiling data
| Rate required | number <decimal> |
| StartDate required | string <date-time> |
| EndDate required | string <date-time> |
{- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}{- "Id": 0,
- "AccountingFolderId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
[- {
- "Id": 0,
- "AccountingFolderId": 0,
- "AccountId": 0,
- "SubAccountId": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Rate": 0
}
]| accountingFolderId required | integer <int32> Identifier of the accounting folder |
Account interest rate data
| AccountId required | integer <int32> |
| SubAccountId | integer or null <int32> |
| Rate required | number <decimal> |
| StartDate required | string <date-time> |
| EndDate required | string <date-time> |
{- "AccountId": 0,
- "SubAccountId": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}{- "Id": 0,
- "AccountingFolderId": 0,
- "AccountId": 0,
- "SubAccountId": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Rate": 0
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| id required | integer <int32> Identifier of the account interest rate |
Account interest rate data
| Rate required | number <decimal> |
{- "Rate": 0
}{- "Id": 0,
- "AccountingFolderId": 0,
- "AccountId": 0,
- "SubAccountId": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z",
- "Rate": 0
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
| page required | integer <int32> Default: 1 The page |
| size required | integer <int32> Default: 100 The size |
Body containing search parameters
object (GetCurrentAccountInterestsSearch) |
{- "Search": {
- "AccountStartWith": "string",
- "AccountKey": {
- "AccountId": 0,
- "SubAccountId": 0
}, - "AccountIds": [
- 0
], - "Filter": "Impacted"
}
}{- "Data": [
- {
- "AccountId": 0,
- "SubAccountId": 0,
- "AccountName": "string",
- "Balance": 0,
- "DebitBalance": 0,
- "CreditBalance": 0,
- "Icne": 0,
- "Ceiling": 0,
- "Reintegrate": 0,
- "AccountInterestRate": {
- "Id": 0,
- "Rate": 0
}, - "Entries": [
- {
- "Id": 0,
- "JournalId": 0,
- "Date": "2019-08-24T14:15:22Z",
- "Balance": 0,
- "Icne": 0,
- "Lines": [
- {
- "Id": 0,
- "Label": "string",
- "Amount": 0,
- "Balance": 0,
- "Icne": 0
}
]
}
]
}
], - "Metadata": {
- "ItemCount": 0,
- "Ceiling": {
- "Id": 0,
- "Rate": 0
}, - "AccountingFolderCeiling": {
- "Id": 0,
- "Rate": 0
}, - "AccountingFolderInterestRate": {
- "Id": 0,
- "Rate": 0
}
}
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
| journalId required | integer <int32> Journal identifier |
{- "EntryGeneratedCount": 0,
- "LineGeneratedCount": 0
}| accountingFolderId required | integer <int32> Identifier of the accounting folder |
| startDate required | string <date-time> Start date of the exercise |
| endDate required | string <date-time> End date of the exercise |
Array of account keys
| AccountId required | integer <int32> |
| SubAccountId | integer or null <int32> |
[- {
- "AccountId": 0,
- "SubAccountId": 0
}
]{- "AccountSums": {
- "property1": 0,
- "property2": 0
}, - "MaxRate": 0.1
}| accountingFolderId required | integer <int32> The ID of the accounting folder. |
| startDate required | string <date-time> The start date of the period. |
| endDate required | string <date-time> The end date of the period. |
{- "Rows": [
- {
- "StartAccounting": 0.1,
- "EndAccounting": 0.1,
- "StartModule": 0.1,
- "EndModule": 0.1,
- "StartDiff": 0.1,
- "EndDiff": 0.1,
- "Label": "string",
- "Account": {
- "AccountId": 0,
- "AccountNumber": 0,
- "SubAccountId": 0,
- "SubAccountCode": "string",
- "AccountLabel": "string",
- "AccountName": "string"
}
}
], - "Total": {
- "StartAccounting": 0.1,
- "EndAccounting": 0.1,
- "StartModule": 0.1,
- "EndModule": 0.1,
- "StartDiff": 0.1,
- "EndDiff": 0.1,
- "Label": "string"
}, - "Period": {
- "Start": "2019-08-24T14:15:22Z",
- "End": "2019-08-24T14:15:22Z",
- "MonthCount": 0
}, - "IsEmpty": true
}| accountingFolderId required | integer <int32> Id of the accounting folder |
| startDate required | string <date-time> Start date of the period |
| endDate required | string <date-time> End date of the period |
| page required | integer <int32> Default: 1 The page |
| size required | integer <int32> Default: 100 The size |
| exportType required | string Default: "Pdf" Enum: "Html" "Pdf" Type of document export (html/pdf) |
Body containing search parameters
object (GetCurrentAccountInterestsSearch) |
{- "Search": {
- "AccountStartWith": "string",
- "AccountKey": {
- "AccountId": 0,
- "SubAccountId": 0
}, - "AccountIds": [
- 0
], - "Filter": "Impacted"
}
}"string"| accountingFolderId required | integer <int32> Id of the accounting folder |
| startDate required | string <date-time> Start date of the period |
| endDate required | string <date-time> End date of the period |
| exportType required | string Default: "Pdf" Enum: "Html" "Pdf" Type of document export (html/pdf) |
"string"Interest rate ceiling data
| Rate required | number <decimal> |
| StartDate required | string <date-time> |
{- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z"
}{- "Id": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}Interest rate ceilings data
| Rate required | number <decimal> |
| StartDate required | string <date-time> |
| EndDate | string or null <date-time> |
[- {
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}
][- {
- "Id": 0,
- "Rate": 0,
- "StartDate": "2019-08-24T14:15:22Z",
- "EndDate": "2019-08-24T14:15:22Z"
}
]