StabilityApi (v1)

Download OpenAPI specification:

Fred Stability API

This API hosts the Fred Stability service for the banking rules engine (MTR — Moteur de Règles): the per-accounting-folder allocation rule configuration, the bank stability (reconciliation) process and the consultation of interbank operations. 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/stability
Staging https://api-staging.inqom.com/stability

AccountingFolderSettings

Update rule engine activation for accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

query Parameters
isRuleEngineEnabled
boolean

Rule engine is activated or not

Responses

Accounts

Get applicable accounts and sub accounts for allocation rules

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "Accounts": [
    ]
}

AllocationRules

Get Allocation Rule Expression For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "RuleSetId": 0,
  • "Rules": [
    ],
  • "Definitions": {
    },
  • "ActionDefinitions": [
    ],
  • "IsActive": true,
  • "CreationDate": "2019-08-24T14:15:22Z"
}

Get Active Allocation Rule Expression For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "RuleSetId": 0,
  • "Rules": [
    ],
  • "Definitions": {
    },
  • "ActionDefinitions": [
    ],
  • "IsActive": true,
  • "CreationDate": "2019-08-24T14:15:22Z"
}

Get Inactive Allocation Rule Expression For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "RuleSetId": 0,
  • "Rules": [
    ],
  • "Definitions": {
    },
  • "ActionDefinitions": [
    ],
  • "IsActive": true,
  • "CreationDate": "2019-08-24T14:15:22Z"
}

Get Raw Allocation Rule For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "Id": 0,
  • "AccountingFolderId": 0,
  • "IsActive": true,
  • "Rules": [
    ]
}

Save allocation rules as the active rule set for accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Request Body schema:

Save command

Array of objects or null (CreateRuleFromExpressionCommand)
IsActive
required
boolean

Responses

Request samples

Content type
{
  • "CreateRuleFromExpressionCommands": [
    ],
  • "IsActive": true
}

Response samples

Content type
{
  • "SaveResult": {
    },
  • "IsSuccess": true,
  • "Errors": [
    ]
}

Get Allocation Rule History For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "RulesHistory": [
    ]
}

Get last Allocation Rule History For an Accounting Folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Response samples

Content type
{
  • "AccountingFolderId": 0,
  • "RulesHistory": [
    ]
}

Get matching Rules For a List of raw data

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Request Body schema:

List of raw datas

Array of objects or null (GetMatchingRulesQueryInput)

Responses

Request samples

Content type
{
  • "MatchingRulesQueryInputList": [
    ]
}

Response samples

Content type
{
  • "property1": {
    },
  • "property2": {
    }
}

BankStability

Triggers the stability process for entry lines on pending accounts for the provided accounting folder

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>

Accounting Folder Id

Responses

Embeddings

Get word embeddings from a list of labels. Read only method, POST verb is used to prevent url length limitations.

Authorizations:
oauth2
Request Body schema:

Labels for word embeddings computing

Array
string

Responses

Request samples

Content type
[
  • "string"
]

Response samples

Content type
[
  • {
    }
]

InterbankOperations

Get interbank operations

Authorizations:
oauth2

Responses

Response samples

Content type
[
  • {
    }
]

Force refresh for interbank operations provided by API InterbankOperationsProvider service

Authorizations:
oauth2

Responses

Response samples

Content type
true

TransactionCategories

Get the category of each transaction of a batch of 100 at most, by transaction id: the folder allocation rule first, then the bank category (optional ExternalCategoryId) translated by the folder, then the keywords. A transaction without category is absent, the response is empty for a folder outside IR BNC. Origin is Rule, Bank or Ontological.

Authorizations:
oauth2
path Parameters
accountingFolderId
required
integer <int32>
Request Body schema:
Array of objects or null (MatchTransactionCategoriesQueryInput)

Responses

Request samples

Content type
{
  • "Transactions": [
    ]
}

Response samples

Content type
{
  • "property1": {
    },
  • "property2": {
    }
}