Fred Current Account Interest Api (v1)

Download OpenAPI specification:

Fred Current Account Interest API

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.

Authentication

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.

Environments

Environment Base URL
Production https://api.inqom.com/current-account-interest
Staging https://api-staging.inqom.com/current-account-interest

AccountingFolderInterestRate

Get accounting folder interest rate by identifier

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Update an accounting folder interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate

Request Body schema:
required

Accounting folder interest rate data

Rate
required
number <decimal>

Responses

Request samples

Content type
{
  • "Rate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Delete an accounting folder interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate

Responses

Get accounting folder interest rate by period

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
startDate
required
string <date-time>

Start date of the exercise

endDate
required
string <date-time>

End date of the exercise

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Create an accounting folder interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

Request Body schema:
required

Accounting folder interest rate data

Rate
required
number <decimal>
StartDate
required
string <date-time>
EndDate
required
string <date-time>

Responses

Request samples

Content type
{
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

AccountingFolderInterestRateCeiling

Get accounting folder interest rate ceiling by identifier

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate ceiling

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Update an accounting folder interest rate ceiling

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate ceiling

Request Body schema:
required

Accounting folder interest rate ceiling data

Rate
required
number <decimal>

Responses

Request samples

Content type
{
  • "Rate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Delete an accounting folder interest rate ceiling

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the accounting folder interest rate ceiling

Responses

Get accounting folder interest rate ceiling by period

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
startDate
required
string <date-time>

Start date of the exercise

endDate
required
string <date-time>

End date of the exercise

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Create an accounting folder interest rate ceiling

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

Request Body schema:
required

Accounting folder interest rate ceiling data

Rate
required
number <decimal>
StartDate
required
string <date-time>
EndDate
required
string <date-time>

Responses

Request samples

Content type
{
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

AccountInterestRate

Get all account interest rates

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
startDate
required
string <date-time>

Start date of the exercise

endDate
required
string <date-time>

End date of the exercise

Responses

Response samples

Content type
[
  • {
    }
]

Create an account interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

Request Body schema:
required

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>

Responses

Request samples

Content type
{
  • "AccountId": 0,
  • "SubAccountId": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "AccountId": 0,
  • "SubAccountId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "Rate": 0
}

Update an account interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the account interest rate

Request Body schema:
required

Account interest rate data

Rate
required
number <decimal>

Responses

Request samples

Content type
{
  • "Rate": 0
}

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "AccountId": 0,
  • "SubAccountId": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "Rate": 0
}

Delete an account interest rate

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

id
required
integer <int32>

Identifier of the account interest rate

Responses

CurrentAccountInterest

Search current account interests from an accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
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

Request Body schema:
required

Body containing search parameters

object (GetCurrentAccountInterestsSearch)

Responses

Request samples

Content type
{
  • "Search": {
    }
}

Response samples

Content type
{
  • "Data": [
    ],
  • "Metadata": {
    }
}

Generate entries from current account interests

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
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

Responses

Response samples

Content type
{
  • "EntryGeneratedCount": 0,
  • "LineGeneratedCount": 0
}

Get some values related to current account interests

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Identifier of the accounting folder

query Parameters
startDate
required
string <date-time>

Start date of the exercise

endDate
required
string <date-time>

End date of the exercise

Request Body schema:
required

Array of account keys

Array
AccountId
required
integer <int32>
SubAccountId
integer or null <int32>

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
{
  • "AccountSums": {
    },
  • "MaxRate": 0.1
}

CurrentAccountInterestReport

Retrieves the comparison table for current account interest reports.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

The ID of the accounting folder.

query Parameters
startDate
required
string <date-time>

The start date of the period.

endDate
required
string <date-time>

The end date of the period.

Responses

Response samples

Content type
{
  • "Rows": [
    ],
  • "Total": {
    },
  • "Period": {
    },
  • "IsEmpty": true
}

Export the list of current account interests.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Id of the accounting folder

query Parameters
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)

Request Body schema:
required

Body containing search parameters

object (GetCurrentAccountInterestsSearch)

Responses

Request samples

Content type
{
  • "Search": {
    }
}

Response samples

Content type
"string"

Exports the comparison table for current account interest reports.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Id of the accounting folder

query Parameters
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)

Responses

Response samples

Content type
"string"

InterestRateCeiling

Get all interest rate ceilings

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

Create latest interest rate ceiling

Authorizations:
oauth2
Request Body schema:
required

Interest rate ceiling data

Rate
required
number <decimal>
StartDate
required
string <date-time>

Responses

Request samples

Content type
{
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
{
  • "Id": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Replace all interest rate ceilings

Authorizations:
oauth2
Request Body schema:
required

Interest rate ceilings data

Array
Rate
required
number <decimal>
StartDate
required
string <date-time>
EndDate
string or null <date-time>

Responses

Request samples

Content type
[
  • {
    }
]

Response samples

Content type
[
  • {
    }
]

Get interest rate ceiling by identifier

Authorizations:
oauth2
path Parameters
id
required
integer <int32>

Identifier of the interest rate ceiling

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Get interest rate ceiling by date

Authorizations:
oauth2
query Parameters
date
required
string <date-time>

Date occurring in the period of an interest rate ceiling

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Rate": 0,
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z"
}

Shareholders

Get the current account interest for shareholders

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
query Parameters
accountId
required
integer <int32>
subAccountId
integer or null <int32>
startDate
required
string <date-time>
endDate
required
string <date-time>

Responses

Response samples

Content type
{
  • "Id": 0,
  • "Shareholders": [
    ],
  • "Remuneration": {
    }
}

Create a new account interest for shareholders

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
AccountId
required
integer <int32>
SubAccountId
integer or null <int32>
PersonId
required
integer <int32>
PersonType
required
string
Enum: "Unknown" "Legal" "Natural"

Responses

Request samples

Content type
{
  • "AccountId": 0,
  • "SubAccountId": 0,
  • "PersonId": 0,
  • "PersonType": "Unknown"
}

Response samples

Content type
{
  • "Id": 0,
  • "Shareholders": [
    ],
  • "Remuneration": {
    }
}

Add a shareholder to an existing current account interest

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
CurrentAccountInterestId
required
integer <int32>
PersonId
required
integer <int32>
PersonType
required
string
Enum: "Unknown" "Legal" "Natural"

Responses

Request samples

Content type
{
  • "CurrentAccountInterestId": 0,
  • "PersonId": 0,
  • "PersonType": "Unknown"
}

Response samples

Content type
{
  • "PersonId": 0,
  • "Name": "string",
  • "PersonType": "Unknown"
}

Remove a shareholder from a current account interest

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
currentAccountInterestId
required
integer <int32>
personId
required
integer <int32>

Responses

Set the remuneration for a shareholders current account interest

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
currentAccountInterestId
required
integer <int32>
Request Body schema:
required
StartDate
required
string <date-time>
EndDate
required
string <date-time>
ProvisionRemuneration
number or null <double>
CurrentAccountRemuneration
number or null <double>
ShareholderWorkRemuneration
number or null <double>

Responses

Request samples

Content type
{
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "ProvisionRemuneration": 0.1,
  • "CurrentAccountRemuneration": 0.1,
  • "ShareholderWorkRemuneration": 0.1
}

Get the state of shareholders current account interests for a given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
query Parameters
startDate
required
string <date-time>
endDate
required
string <date-time>

Responses

Response samples

Content type
{
  • "Accounts": [
    ],
  • "Total": {
    }
}

Get the state of shareholders current account interests for a given accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
required
StartDate
required
string <date-time>
EndDate
required
string <date-time>
ExportType
required
string
Enum: "Html" "Pdf"

Responses

Request samples

Content type
{
  • "StartDate": "2019-08-24T14:15:22Z",
  • "EndDate": "2019-08-24T14:15:22Z",
  • "ExportType": "Html"
}

Response samples

Content type
"string"